aboutsummaryrefslogtreecommitdiffstats
path: root/init/main.c
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2020-02-20 15:38:01 -0500
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2020-02-20 17:43:58 -0500
commit78041c0c9e935d9ce4086feeff6c569ed88ddfd4 (patch)
treeb6d51f80ab4ae929b9f8c993914d86b8ae81bee8 /init/main.c
parenttracing: Have synthetic event test use raw_smp_processor_id() (diff)
downloadlinux-dev-78041c0c9e935d9ce4086feeff6c569ed88ddfd4.tar.xz
linux-dev-78041c0c9e935d9ce4086feeff6c569ed88ddfd4.zip
tracing: Disable trace_printk() on post poned tests
The tracing seftests checks various aspects of the tracing infrastructure, and one is filtering. If trace_printk() is active during a self test, it can cause the filtering to fail, which will disable that part of the trace. To keep the selftests from failing because of trace_printk() calls, trace_printk() checks the variable tracing_selftest_running, and if set, it does not write to the tracing buffer. As some tracers were registered earlier in boot, the selftest they triggered would fail because not all the infrastructure was set up for the full selftest. Thus, some of the tests were post poned to when their infrastructure was ready (namely file system code). The postpone code did not set the tracing_seftest_running variable, and could fail if a trace_printk() was added and executed during their run. Cc: stable@vger.kernel.org Fixes: 9afecfbb95198 ("tracing: Postpone tracer start-up tests till the system is more robust") Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions