Skip to content

Commit cf18620

Browse files
lenticularis39rostedt
authored andcommitted
rtla: Report missed event count
Print how many events were missed by trace buffer overflow in the main instance at the end of the run (for hist) or during the run (for top). Cc: John Kacur <[email protected]> Cc: Luis Goncalves <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Tomas Glozar <[email protected]> Tested-by: Gabriele Monaco <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 8ccd9d8 commit cf18620

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

tools/tracing/rtla/src/osnoise_hist.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ osnoise_print_stats(struct osnoise_hist_params *params, struct osnoise_tool *too
440440
trace_seq_reset(trace->seq);
441441

442442
osnoise_print_summary(params, trace, data);
443+
osnoise_report_missed_events(tool);
443444
}
444445

445446
/*

tools/tracing/rtla/src/osnoise_top.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ osnoise_print_stats(struct osnoise_top_params *params, struct osnoise_tool *top)
280280

281281
trace_seq_do_printf(trace->seq);
282282
trace_seq_reset(trace->seq);
283+
osnoise_report_missed_events(top);
283284
}
284285

285286
/*

tools/tracing/rtla/src/timerlat_hist.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,7 @@ timerlat_print_stats(struct timerlat_hist_params *params, struct osnoise_tool *t
641641

642642
timerlat_print_summary(params, trace, data);
643643
timerlat_print_stats_all(params, trace, data);
644+
osnoise_report_missed_events(tool);
644645
}
645646

646647
/*

tools/tracing/rtla/src/timerlat_top.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ timerlat_print_stats(struct timerlat_top_params *params, struct osnoise_tool *to
435435

436436
trace_seq_do_printf(trace->seq);
437437
trace_seq_reset(trace->seq);
438+
osnoise_report_missed_events(top);
438439
}
439440

440441
/*

0 commit comments

Comments
 (0)