Skip to content

Commit c40583e

Browse files
lclaudiorostedt
authored andcommitted
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/[email protected] Cc: Masami Hiramatsu <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Cc: Jonathan Corbet <[email protected]> Suggested-by: Daniel Bristot de Oliveira <[email protected]> Reviewed-by: Clark Williams <[email protected]> Signed-off-by: Luis Claudio R. Goncalves <[email protected]> Acked-by: Daniel Bristot de Oliveira <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 22b6392 commit c40583e

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-
be used, which is currently 5 us.
111+
be used, which is currently 1 us.
112112
- osnoise/options: a set of on/off options that can be enabled by
113113
writing the option name to the file or disabled by writing the option
114114
name preceded with the 'NO\_' prefix. For example, writing

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)