WSL2-Linux-Kernel/kernel/trace
Steven Rostedt 12ef7d4486 ftrace: CPU buffer start annotation clean ups
Impact: better handling of CPU buffer start annotation

Because of the confusion with the per CPU buffers wrapping where
one CPU might be more active at the end of the trace than the other
CPUs causing that one CPU to have a shorter history. Kernel
developers were confused by the "missing" data of that one CPU
at the beginning of the trace output. An annotation was added to
the trace output to show that the buffer had started:

 # tracer: function
 #
 #           TASK-PID    CPU#    TIMESTAMP  FUNCTION
 #              | |       |          |         |
 ##### CPU 3 buffer started ####
          <idle>-0     [003]   158.192959: smp_apic_timer_interrupt
 [...]
           <idle>-0     [003]   161.556520: default_idle
 ##### CPU 1 buffer started ####
           <idle>-0     [001]   161.592494: hrtimer_force_reprogram
 [etc]

But this annotation gets a bit messy when tracers do not fill the
buffers. This patch does a couple of things:

 One) it adds a flag to trace_options to disable these annotations

 Two) it does not annotate if the tracer did not overflow its buffer.

This makes the output much cleaner.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-11-13 09:49:24 +01:00
..
Kconfig trace: rename unlikely profiler to branch profiler 2008-11-12 22:27:58 +01:00
Makefile ftrace: rename trace_unlikely.c file 2008-11-12 22:28:40 +01:00
ftrace.c Merge branch 'tracing/function-return-tracer' into tracing/fastboot 2008-11-12 10:17:09 +01:00
ring_buffer.c Merge branches 'tracing/branch-tracer', 'tracing/fastboot', 'tracing/function-return-tracer' and 'tracing/urgent' into tracing/core 2008-11-13 09:48:03 +01:00
trace.c ftrace: CPU buffer start annotation clean ups 2008-11-13 09:49:24 +01:00
trace.h ftrace: CPU buffer start annotation clean ups 2008-11-13 09:49:24 +01:00
trace_boot.c tracing/fastboot: Use the ring-buffer timestamp for initcall entries 2008-11-12 10:17:19 +01:00
trace_branch.c ftrace: rename trace_unlikely.c file 2008-11-12 22:28:40 +01:00
trace_functions.c ftrace: remove trace array ctrl 2008-11-08 09:51:39 +01:00
trace_functions_return.c tracing: add a tracer to catch execution time of kernel functions 2008-11-11 10:29:12 +01:00
trace_irqsoff.c ftrace: remove trace array ctrl 2008-11-08 09:51:39 +01:00
trace_mmiotrace.c ftrace: remove trace array ctrl 2008-11-08 09:51:39 +01:00
trace_nop.c ftrace: remove trace array ctrl 2008-11-08 09:51:39 +01:00
trace_sched_switch.c ftrace: remove trace array ctrl 2008-11-08 09:51:39 +01:00
trace_sched_wakeup.c ftrace: remove trace array ctrl 2008-11-08 09:51:39 +01:00
trace_selftest.c ftrace: add tracer called branch 2008-11-12 22:28:25 +01:00
trace_selftest_dynamic.c ftrace: fix dynamic ftrace selftest 2008-05-23 21:13:23 +02:00
trace_stack.c ftrace: insert in the ftrace_preempt_disable()/enable() functions 2008-11-04 10:09:49 +01:00
trace_sysprof.c ftrace: remove trace array ctrl 2008-11-08 09:51:39 +01:00