Skip to content

Commit c171ce3

Browse files
committed
rtla/osnoise: set the default threshold to 1us
JIRA: https://issues.redhat.com/browse/RHEL-50869 Conflicts: Documentation/trace/osnoise-tracer.rst commit c40583e Author: Luis Claudio R. Goncalves <lgoncalv@redhat.com> Date: Mon Jun 10 10:23:14 2024 -0300 rtla/osnoise: set the default threshold to 1us Change the default threshold for osnoise to 1us, so that any noise equal or above this value is recorded. Let the user set a higher threshold if necessary. Link: https://lore.kernel.org/linux-trace-kernel/Zmb-QhiiiI6jM9To@uudg.org Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Jonathan Corbet <corbet@lwn.net> Suggested-by: Daniel Bristot de Oliveira <bristot@kernel.org> Reviewed-by: Clark Williams <williams@redhat.com> Signed-off-by: Luis Claudio R. Goncalves <lgoncalv@redhat.com> Acked-by: Daniel Bristot de Oliveira <bristot@kernel.org> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org> Signed-off-by: Luis Claudio R. Goncalves <lgoncalv@redhat.com>
1 parent e1f2372 commit c171ce3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Documentation/trace/osnoise-tracer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ The tracer has a set of options inside the osnoise directory, they are:
108108
option.
109109
- tracing_threshold: the minimum delta between two time() reads to be
110110
considered as noise, in us. When set to 0, the default value will
111-
will be used, which is currently 5 us.
111+
be used, which is currently 1 us.
112112

113113
Additional Tracing
114114
------------------

kernel/trace/trace_osnoise.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,9 +1444,9 @@ static int run_osnoise(void)
14441444
save_osn_sample_stats(osn_var, &s);
14451445

14461446
/*
1447-
* if threshold is 0, use the default value of 5 us.
1447+
* if threshold is 0, use the default value of 1 us.
14481448
*/
1449-
threshold = tracing_thresh ? : 5000;
1449+
threshold = tracing_thresh ? : 1000;
14501450

14511451
/*
14521452
* Apply PREEMPT and IRQ disabled options.

0 commit comments

Comments
 (0)