summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCrystal Wood <crwood@redhat.com>2025-11-12 09:25:28 -0600
committerTomas Glozar <tglozar@redhat.com>2025-11-21 10:30:27 +0100
commit3138df6f0cd04a75f8efa5b5270ba56d00a84ae6 (patch)
tree083ccfbaf100548919e7e502a2a402ace3768db0
parent61f1fd5d69fde27cfc277d1f68a1e6e4f7265b4b (diff)
rtla/timerlat: Exit top main loop on any non-zero wait_retval
Comparing to exactly 1 will fail if more than one ring buffer event was seen since the last call to timerlat_bpf_wait(), which can happen in some race scenarios. Signed-off-by: Crystal Wood <crwood@redhat.com> Link: https://lore.kernel.org/r/20251112152529.956778-5-crwood@redhat.com Signed-off-by: Tomas Glozar <tglozar@redhat.com>
-rw-r--r--tools/tracing/rtla/src/timerlat_top.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/tracing/rtla/src/timerlat_top.c b/tools/tracing/rtla/src/timerlat_top.c
index fec113ce370e..29c2c1f717ed 100644
--- a/tools/tracing/rtla/src/timerlat_top.c
+++ b/tools/tracing/rtla/src/timerlat_top.c
@@ -878,7 +878,7 @@ timerlat_top_bpf_main_loop(struct osnoise_tool *tool)
if (!params->common.quiet)
timerlat_print_stats(tool);
- if (wait_retval == 1) {
+ if (wait_retval != 0) {
/* Stopping requested by tracer */
actions_perform(&params->common.threshold_actions);