Skip to content

Commit a574145

Browse files
lenticularis39gregkh
authored andcommitted
rtla/timerlat: Make timerlat_hist_cpu->*_count unsigned long long
commit 76b3102 upstream. Do the same fix as in previous commit also for timerlat-hist. Link: https://lore.kernel.org/[email protected] Reported-by: Attila Fazekas <[email protected]> Signed-off-by: Tomas Glozar <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]> [ Drop hunk fixing printf in timerlat_print_stats_all since that is not in 6.6 ] Signed-off-by: Tomas Glozar <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent dbec5b4 commit a574145

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tools/tracing/rtla/src/timerlat_hist.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ struct timerlat_hist_cpu {
5858
int *thread;
5959
int *user;
6060

61-
int irq_count;
62-
int thread_count;
63-
int user_count;
61+
unsigned long long irq_count;
62+
unsigned long long thread_count;
63+
unsigned long long user_count;
6464

6565
unsigned long long min_irq;
6666
unsigned long long sum_irq;
@@ -300,15 +300,15 @@ timerlat_print_summary(struct timerlat_hist_params *params,
300300
continue;
301301

302302
if (!params->no_irq)
303-
trace_seq_printf(trace->seq, "%9d ",
303+
trace_seq_printf(trace->seq, "%9llu ",
304304
data->hist[cpu].irq_count);
305305

306306
if (!params->no_thread)
307-
trace_seq_printf(trace->seq, "%9d ",
307+
trace_seq_printf(trace->seq, "%9llu ",
308308
data->hist[cpu].thread_count);
309309

310310
if (params->user_hist)
311-
trace_seq_printf(trace->seq, "%9d ",
311+
trace_seq_printf(trace->seq, "%9llu ",
312312
data->hist[cpu].user_count);
313313
}
314314
trace_seq_printf(trace->seq, "\n");

0 commit comments

Comments
 (0)