projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61f1fd5
)
rtla/timerlat: Exit top main loop on any non-zero wait_retval
author
Crystal Wood
<crwood@redhat.com>
Wed, 12 Nov 2025 15:25:28 +0000
(09:25 -0600)
committer
Tomas Glozar
<tglozar@redhat.com>
Fri, 21 Nov 2025 09:30:27 +0000
(10:30 +0100)
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>
tools/tracing/rtla/src/timerlat_top.c
patch
|
blob
|
history
diff --git
a/tools/tracing/rtla/src/timerlat_top.c
b/tools/tracing/rtla/src/timerlat_top.c
index
fec113c
..
29c2c1f
100644
(file)
--- 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(¶ms->common.threshold_actions);