mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 22:34:33 +01:00
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Tomas Glozar <[email protected]>
This commit is contained in:
1 parent
61f1fd5d69
commit
3138df6f0c
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user