summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2021-03-01 10:49:35 -0500
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2021-03-04 09:51:25 -0500
commitee666a185558ac9a929e53b902a568442ed62416 (patch)
tree9efeb847d912419a98b91fc382b8d2c6841598f6 /include
parentf40fc799afc598b3d130d5a0ada994c9d4fb6cf8 (diff)
downloadlinux-ee666a185558ac9a929e53b902a568442ed62416.tar.gz
tracing: Skip selftests if tracing is disabled
If tracing is disabled for some reason (traceoff_on_warning, command line,
etc), the ftrace selftests are guaranteed to fail, as their results are
defined by trace data in the ring buffers. If the ring buffers are turned
off, the tests will fail, due to lack of data.

Because tracing being disabled is for a specific reason (warning, user
decided to, etc), it does not make sense to enable tracing to run the self
tests, as the test output may corrupt the reason for the tracing to be
disabled.

Instead, simply skip the self tests and report that they are being skipped
due to tracing being disabled.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions