]> Git Repo - linux.git/commitdiff
rtla: Report missed event count
authorTomas Glozar <[email protected]>
Thu, 23 Jan 2025 14:23:39 +0000 (15:23 +0100)
committerSteven Rostedt (Google) <[email protected]>
Fri, 24 Jan 2025 18:47:07 +0000 (13:47 -0500)
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]>
tools/tracing/rtla/src/osnoise_hist.c
tools/tracing/rtla/src/osnoise_top.c
tools/tracing/rtla/src/timerlat_hist.c
tools/tracing/rtla/src/timerlat_top.c

index f250f999a4eee823a7e0c2c48a0da5b3087fe954..b4930b835b0a1253e3e4fc6dde1143994aaccf22 100644 (file)
@@ -440,6 +440,7 @@ osnoise_print_stats(struct osnoise_hist_params *params, struct osnoise_tool *too
        trace_seq_reset(trace->seq);
 
        osnoise_print_summary(params, trace, data);
+       osnoise_report_missed_events(tool);
 }
 
 /*
index 6d50653ae224c281418a6d231d3ba60a65c61a85..4772677ac762ce9586c254523d4ed72770310263 100644 (file)
@@ -280,6 +280,7 @@ osnoise_print_stats(struct osnoise_top_params *params, struct osnoise_tool *top)
 
        trace_seq_do_printf(trace->seq);
        trace_seq_reset(trace->seq);
+       osnoise_report_missed_events(top);
 }
 
 /*
index 91aedb44da01f059a5657c22c6d3d171161301fd..cdecc8f120dca07c7a146d62feaa1828a7ad9bc4 100644 (file)
@@ -641,6 +641,7 @@ timerlat_print_stats(struct timerlat_hist_params *params, struct osnoise_tool *t
 
        timerlat_print_summary(params, trace, data);
        timerlat_print_stats_all(params, trace, data);
+       osnoise_report_missed_events(tool);
 }
 
 /*
index 51115f92e15ea200fd14032844060f58dea23caf..05a9403b01d26155e205881daf5a79c7f3b49e84 100644 (file)
@@ -435,6 +435,7 @@ timerlat_print_stats(struct timerlat_top_params *params, struct osnoise_tool *to
 
        trace_seq_do_printf(trace->seq);
        trace_seq_reset(trace->seq);
+       osnoise_report_missed_events(top);
 }
 
 /*
This page took 0.058085 seconds and 4 git commands to generate.