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>
This commit is contained in:
committed by
Steven Rostedt (Google)
parent
22b639253e
commit
c40583e19e
@@ -1444,9 +1444,9 @@ static int run_osnoise(void)
|
||||
save_osn_sample_stats(osn_var, &s);
|
||||
|
||||
/*
|
||||
* if threshold is 0, use the default value of 5 us.
|
||||
* if threshold is 0, use the default value of 1 us.
|
||||
*/
|
||||
threshold = tracing_thresh ? : 5000;
|
||||
threshold = tracing_thresh ? : 1000;
|
||||
|
||||
/*
|
||||
* Apply PREEMPT and IRQ disabled options.
|
||||
|
||||
Reference in New Issue
Block a user