linux/tools/tracing/rtla/src
Tomas Glozar 4d8e3a746b rtla/timerlat_top: Abort event processing on second signal
[ Upstream commit 80967b354a ]

If either SIGINT is received twice, or after a SIGALRM (that is, after
timerlat was supposed to stop), abort processing events currently left
in the tracefs buffer and exit immediately.

This allows the user to exit rtla without waiting for processing all
events, should that take longer than wanted, at the cost of not
processing all samples.

Cc: John Kacur <jkacur@redhat.com>
Cc: Luis Goncalves <lgoncalv@redhat.com>
Cc: Gabriele Monaco <gmonaco@redhat.com>
Link: https://lore.kernel.org/20250116144931.649593-6-tglozar@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-02-21 14:01:25 +01:00
..
Build tools/rtla: Use tools/build makefiles to build rtla 2024-03-20 05:39:06 +01:00
osnoise.c rtla/osnoise: Distinguish missing workload option 2025-02-17 10:05:42 +01:00
osnoise.h rtla/timerlat_top: Add timerlat user-space support 2023-06-13 16:38:51 -04:00
osnoise_hist.c rtla/osnoise: Better report when histogram is empty 2024-06-21 10:19:53 +02:00
osnoise_top.c rtla: Fix the help text in osnoise and timerlat top tools 2024-10-03 16:43:22 -04:00
rtla.c rtla: Add hwnoise tool 2023-02-13 23:56:46 -05:00
timerlat.c rtla: Fix exit status when returning from calls to usage() 2022-12-09 18:06:24 -05:00
timerlat.h rtla/timerlat: Add timerlat hist mode 2022-01-13 17:02:43 -05:00
timerlat_aa.c rtla/auto-analysis: Replace \t with spaces 2024-05-15 15:13:56 +02:00
timerlat_aa.h rtla/timerlat: Give timerlat auto analysis its own instance 2023-06-13 16:31:35 -04:00
timerlat_hist.c rtla/timerlat_hist: Abort event processing on second signal 2025-02-21 14:01:25 +01:00
timerlat_top.c rtla/timerlat_top: Abort event processing on second signal 2025-02-21 14:01:25 +01:00
timerlat_u.c rtla/timerlat: Do not stop user-space if a cpu is offline 2023-09-22 14:43:46 +02:00
timerlat_u.h rtla/timerlat_top: Add timerlat user-space support 2023-06-13 16:38:51 -04:00
trace.c rtla: Add trace_instance_stop 2025-02-17 10:05:43 +01:00
trace.h rtla: Add trace_instance_stop 2025-02-17 10:05:43 +01:00
utils.c tools/rtla: fix collision with glibc sched_attr/sched_set_attr 2024-12-14 20:03:58 +01:00
utils.h tools/rtla: fix collision with glibc sched_attr/sched_set_attr 2024-12-14 20:03:58 +01:00