Skip to content

Commit 76b3102

Browse files
lenticularis39rostedt
authored andcommitted
rtla/timerlat: Make timerlat_hist_cpu->*_count unsigned long long
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]>
1 parent 4eba472 commit 76b3102

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tools/tracing/rtla/src/timerlat_hist.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ struct timerlat_hist_cpu {
6262
int *thread;
6363
int *user;
6464

65-
int irq_count;
66-
int thread_count;
67-
int user_count;
65+
unsigned long long irq_count;
66+
unsigned long long thread_count;
67+
unsigned long long user_count;
6868

6969
unsigned long long min_irq;
7070
unsigned long long sum_irq;
@@ -304,15 +304,15 @@ timerlat_print_summary(struct timerlat_hist_params *params,
304304
continue;
305305

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

310310
if (!params->no_thread)
311-
trace_seq_printf(trace->seq, "%9d ",
311+
trace_seq_printf(trace->seq, "%9llu ",
312312
data->hist[cpu].thread_count);
313313

314314
if (params->user_hist)
315-
trace_seq_printf(trace->seq, "%9d ",
315+
trace_seq_printf(trace->seq, "%9llu ",
316316
data->hist[cpu].user_count);
317317
}
318318
trace_seq_printf(trace->seq, "\n");
@@ -488,15 +488,15 @@ timerlat_print_stats_all(struct timerlat_hist_params *params,
488488
trace_seq_printf(trace->seq, "count:");
489489

490490
if (!params->no_irq)
491-
trace_seq_printf(trace->seq, "%9d ",
491+
trace_seq_printf(trace->seq, "%9llu ",
492492
sum.irq_count);
493493

494494
if (!params->no_thread)
495-
trace_seq_printf(trace->seq, "%9d ",
495+
trace_seq_printf(trace->seq, "%9llu ",
496496
sum.thread_count);
497497

498498
if (params->user_hist)
499-
trace_seq_printf(trace->seq, "%9d ",
499+
trace_seq_printf(trace->seq, "%9llu ",
500500
sum.user_count);
501501

502502
trace_seq_printf(trace->seq, "\n");

0 commit comments

Comments
 (0)