mirror-linux/tools/tracing/rtla/src
Costa Shulyupin 6ea8a20610 rtla: Fix parse_cpu_set() bug introduced by strtoi()
The patch 'Replace atoi() with a robust strtoi()' introduced a bug
in parse_cpu_set(), which relies on partial parsing of the input string.

The function parses CPU specifications like '0-3,5' by incrementing
a pointer through the string. strtoi() rejects strings with trailing
characters, causing parse_cpu_set() to fail on any CPU list with
multiple entries.

Restore the original use of atoi() in parse_cpu_set().

Fixes: 7e9dfccf8f ("rtla: Replace atoi() with a robust strtoi()")
Signed-off-by: Costa Shulyupin <costa.shul@redhat.com>
Reviewed-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Link: https://lore.kernel.org/r/20260112192642.212848-2-costa.shul@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
2026-01-13 08:32:52 +01:00
..
Build tools/rtla: Create common_apply_config() 2025-09-27 04:52:46 -04:00
actions.c rtla: Fix NULL pointer dereference in actions_parse 2026-01-07 15:57:55 +01:00
actions.h rtla: Introduce for_each_action() helper 2026-01-07 15:57:55 +01:00
common.c rtla: Make stop_tracing variable volatile 2026-01-07 15:57:55 +01:00
common.h rtla: Make stop_tracing variable volatile 2026-01-07 15:57:55 +01:00
osnoise.c rtla: Set stop threshold after all instances are enabled 2026-01-07 15:57:15 +01:00
osnoise.h rtla: Set stop threshold after all instances are enabled 2026-01-07 15:57:15 +01:00
osnoise_hist.c rtla: Remove unused headers 2026-01-07 15:57:55 +01:00
osnoise_top.c tools/rtla: Consolidate -H/--house-keeping option parsing 2026-01-07 15:57:17 +01:00
rtla.c rtla: Add hwnoise tool 2023-02-13 23:56:46 -05:00
timerlat.bpf.c rtla/timerlat: Support tail call from BPF program 2026-01-07 15:57:15 +01:00
timerlat.c rtla: Remove unused headers 2026-01-07 15:57:55 +01:00
timerlat.h rtla/timerlat: Add --bpf-action option 2026-01-07 15:57:16 +01:00
timerlat_aa.c rtla/timerlat: Unify params struct 2025-03-04 12:35:17 -05:00
timerlat_aa.h rtla/timerlat: Give timerlat auto analysis its own instance 2023-06-13 16:31:35 -04:00
timerlat_bpf.c rtla/timerlat: Add --bpf-action option 2026-01-07 15:57:16 +01:00
timerlat_bpf.h rtla/timerlat: Add --bpf-action option 2026-01-07 15:57:16 +01:00
timerlat_hist.c tools/rtla: Consolidate -H/--house-keeping option parsing 2026-01-07 15:57:17 +01:00
timerlat_top.c rtla: Remove unused headers 2026-01-07 15:57:55 +01:00
timerlat_u.c tools/rtla: Add fatal() and replace error handling pattern 2025-11-21 10:30:27 +01:00
timerlat_u.h rtla/timerlat_top: Add timerlat user-space support 2023-06-13 16:38:51 -04:00
trace.c rtla: Remove unused headers 2026-01-07 15:57:55 +01:00
trace.h tools/rtla: Consolidate code between osnoise/timerlat and hist/top 2025-09-27 04:52:57 -04:00
utils.c rtla: Fix parse_cpu_set() bug introduced by strtoi() 2026-01-13 08:32:52 +01:00
utils.h rtla: Use standard exit codes for result enum 2026-01-07 15:57:55 +01:00