Skip to content

Commit 022632f

Browse files
Daniel Bristot de Oliveirarostedt
authored andcommitted
tracing/osnoise: Fix duration type
The duration type is a 64 long value, not an int. This was causing some long noise to report wrong values. Change the duration to a 64 bits value. Link: https://lkml.kernel.org/r/a93d8a8378c7973e9c609de05826533c9e977939.1668692096.git.bristot@kernel.org Cc: [email protected] Cc: Daniel Bristot de Oliveira <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Masami Hiramatsu <[email protected]> Cc: Jonathan Corbet <[email protected]> Fixes: bce29ac ("trace: Add osnoise tracer") Signed-off-by: Daniel Bristot de Oliveira <[email protected]> Acked-by: Masami Hiramatsu (Google) <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent ccc6e59 commit 022632f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kernel/trace/trace_osnoise.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ void osnoise_trace_irq_entry(int id)
917917
void osnoise_trace_irq_exit(int id, const char *desc)
918918
{
919919
struct osnoise_variables *osn_var = this_cpu_osn_var();
920-
int duration;
920+
s64 duration;
921921

922922
if (!osn_var->sampling)
923923
return;
@@ -1048,7 +1048,7 @@ static void trace_softirq_entry_callback(void *data, unsigned int vec_nr)
10481048
static void trace_softirq_exit_callback(void *data, unsigned int vec_nr)
10491049
{
10501050
struct osnoise_variables *osn_var = this_cpu_osn_var();
1051-
int duration;
1051+
s64 duration;
10521052

10531053
if (!osn_var->sampling)
10541054
return;
@@ -1144,7 +1144,7 @@ thread_entry(struct osnoise_variables *osn_var, struct task_struct *t)
11441144
static void
11451145
thread_exit(struct osnoise_variables *osn_var, struct task_struct *t)
11461146
{
1147-
int duration;
1147+
s64 duration;
11481148

11491149
if (!osn_var->sampling)
11501150
return;

0 commit comments

Comments
 (0)