Skip to content

Commit 3138df6

Browse files
crwood-rhlenticularis39
authored andcommitted
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>
1 parent 61f1fd5 commit 3138df6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/tracing/rtla/src/timerlat_top.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ timerlat_top_bpf_main_loop(struct osnoise_tool *tool)
878878
if (!params->common.quiet)
879879
timerlat_print_stats(tool);
880880

881-
if (wait_retval == 1) {
881+
if (wait_retval != 0) {
882882
/* Stopping requested by tracer */
883883
actions_perform(&params->common.threshold_actions);
884884

0 commit comments

Comments
 (0)