aboutsummaryrefslogtreecommitdiffstats
path: root/mm/debug.c
diff options
context:
space:
mode:
authorTomas Glozar <[email protected]>2025-01-16 14:49:29 +0000
committerSteven Rostedt (Google) <[email protected]>2025-01-24 18:45:23 +0000
commita4dfce7559d75430c464294ddee554be2a413c4a (patch)
tree5de203fa22c5be7a337b7cb1e577fc522d829ab0 /mm/debug.c
parentrtla/timerlat_hist: Stop timerlat tracer on signal (diff)
downloadkernel-a4dfce7559d75430c464294ddee554be2a413c4a.tar.gz
kernel-a4dfce7559d75430c464294ddee554be2a413c4a.zip
rtla/timerlat_top: Stop timerlat tracer on signal
Currently, when either SIGINT from the user or SIGALRM from the duration timer is caught by rtla-timerlat, stop_tracing is set to break out of the main loop. This is not sufficient for cases where the timerlat tracer is producing more data than rtla can consume, since in that case, rtla is looping indefinitely inside tracefs_iterate_raw_events, never reaches the check of stop_tracing and hangs. In addition to setting stop_tracing, also stop the timerlat tracer on received signal (SIGINT or SIGALRM). This will stop new samples so that the existing samples may be processed and tracefs_iterate_raw_events eventually exits. Cc: [email protected] Cc: John Kacur <[email protected]> Cc: Luis Goncalves <[email protected]> Cc: Gabriele Monaco <[email protected]> Link: https://lore.kernel.org/[email protected] Fixes: a828cd18bc4a ("rtla: Add timerlat tool and timelart top mode") Signed-off-by: Tomas Glozar <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'mm/debug.c')
0 files changed, 0 insertions, 0 deletions