Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: stable@vger.kernel.org
Cc: Daniel Bristot de Oliveira <bristot@kernel.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Fixes: bce29ac9ce0b ("trace: Add osnoise tracer")
Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>

authored by

Daniel Bristot de Oliveira and committed by
Steven Rostedt (Google)
022632f6 ccc6e590

+3 -3
+3 -3
kernel/trace/trace_osnoise.c
··· 917 917 void osnoise_trace_irq_exit(int id, const char *desc) 918 918 { 919 919 struct osnoise_variables *osn_var = this_cpu_osn_var(); 920 - int duration; 920 + s64 duration; 921 921 922 922 if (!osn_var->sampling) 923 923 return; ··· 1048 1048 static void trace_softirq_exit_callback(void *data, unsigned int vec_nr) 1049 1049 { 1050 1050 struct osnoise_variables *osn_var = this_cpu_osn_var(); 1051 - int duration; 1051 + s64 duration; 1052 1052 1053 1053 if (!osn_var->sampling) 1054 1054 return; ··· 1144 1144 static void 1145 1145 thread_exit(struct osnoise_variables *osn_var, struct task_struct *t) 1146 1146 { 1147 - int duration; 1147 + s64 duration; 1148 1148 1149 1149 if (!osn_var->sampling) 1150 1150 return;