WSL2-Linux-Kernel/kernel/trace
Steven Rostedt 0c5119c1e6 tracing: disable tracing while testing ring buffer
Impact: fix to prevent hard lockup on self tests

If one of the tracers are broken and is constantly filling the ring
buffer while the test of the ring buffer is running, it will hang
the box. The reason is that the test is a consumer that will not
stop till the ring buffer is empty. But if the tracer is broken and
is constantly producing input to the buffer, this test will never
end. The result is a lockup of the box.

This happened when KALLSYMS was not defined and the dynamic ftrace
test constantly filled the ring buffer, because the filter failed
and all functions were being traced. Something was being called
that constantly filled the buffer.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
2009-02-18 22:04:01 -05:00
..
Kconfig trace: mmiotrace to the tracer menu in Kconfig 2009-02-15 20:03:28 +01:00
Makefile x86, bts, ftrace: adapt the hw-branch-tracer to the ds.c interface 2008-12-12 08:08:14 +01:00
ftrace.c tracing/function-graph-tracer: trace the idle tasks 2009-02-17 19:20:17 +01:00
ring_buffer.c ring-buffer: reset timestamps when ring buffer is reset 2009-01-22 10:31:58 +01:00
trace.c trace: set max latency variable to zero on default 2009-01-21 15:21:30 +01:00
trace.h cpumask: convert kernel trace functions further 2009-01-01 10:12:23 +10:30
trace_boot.c cpumask: convert kernel trace functions further 2009-01-01 10:12:23 +10:30
trace_branch.c ftrace: replace raw_local_irq_save with local_irq_save 2008-12-03 08:56:19 +01:00
trace_functions.c ftrace: introduce tracing_reset_online_cpus() helper 2008-12-19 16:29:34 +01:00
trace_functions_graph.c cpumask: convert kernel trace functions further 2009-01-01 10:12:23 +10:30
trace_hw_branches.c cpumask: convert kernel trace functions further 2009-01-01 10:12:23 +10:30
trace_irqsoff.c trace: set max latency variable to zero on default 2009-01-21 15:21:30 +01:00
trace_mmiotrace.c mmiotrace: count events lost due to not recording 2009-02-15 20:02:42 +01:00
trace_nop.c tracing/ftrace: make nop tracer using tracer flags 2008-11-18 11:10:59 +01:00
trace_power.c cpumask: convert kernel trace functions further 2009-01-01 10:12:23 +10:30
trace_sched_switch.c sched, trace: update trace_sched_wakeup() 2008-12-25 13:10:21 +01:00
trace_sched_wakeup.c trace: set max latency variable to zero on default 2009-01-21 15:21:30 +01:00
trace_selftest.c tracing: disable tracing while testing ring buffer 2009-02-18 22:04:01 -05:00
trace_selftest_dynamic.c ftrace: fix dynamic ftrace selftest 2008-05-23 21:13:23 +02:00
trace_stack.c trace: better use of stack_trace_enabled for boot up code 2008-12-18 12:56:56 +01:00
trace_sysprof.c cpumask: convert kernel trace functions 2009-01-01 10:12:22 +10:30