diff options
author | Daniel Bristot de Oliveira <[email protected]> | 2023-06-06 17:12:26 +0200 |
---|---|---|
committer | Steven Rostedt (Google) <[email protected]> | 2023-06-22 10:39:56 -0400 |
commit | cb7ca871c883eed5132e106cda44b2b060e6f52e (patch) | |
tree | 00219327aead6dd9e7bc96f291c25bca9bb9637f /scripts | |
parent | 4998e7fda149d2392ea6aa9879299d8a32019dbe (diff) |
tracing/osnoise: Skip running osnoise if all instances are off
In the case of all tracing instances being off, sleep for the entire
period.
Q: Why not kill all threads so?
A: It is valid and useful to start the threads with tracing off.
For example, rtla disables tracing, starts the tracer, applies the
scheduling setup to the threads, e.g., sched priority and cgroup,
and then begin tracing with all set.
Skipping the period helps to speed up rtla setup and save the
trace after a stop tracing.
Link: https://lkml.kernel.org/r/aa4dd9b7e76fcb63901fe5407e15ec002b318599.1686063934.git.bristot@kernel.org
Cc: Juri Lelli <[email protected]>
Cc: William White <[email protected]>
Cc: Daniel Bristot de Oliveira <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Signed-off-by: Daniel Bristot de Oliveira <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions