WSL2-Linux-Kernel/kernel/trace
Li Zefan 3b8e427381 tracing: Move a printk out of ftrace_raw_reg_event_foo()
Move the printk from each ftrace_raw_reg_event_foo() to
its caller ftrace_event_enable_disable(). This avoids each
regfunc trace event callbacks to handle a same error report
that can be carried from the caller.

See how much space this saves:

   text    data     bss     dec     hex filename
5345151 1961864 7103260 14410275         dbe223 vmlinux.o.old
5331487 1961864 7103260 14396611         dbacc3 vmlinux.o

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Jason Baron <jbaron@redhat.com>
LKML-Reference: <4B1DC4AC.802@cn.fujitsu.com>
[start cmdline record before calling regfunc to avoid lost
window of pid to comm resolution]
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
2009-12-13 18:37:25 +01:00
..
Kconfig Merge branch 'tracing/hw-breakpoints' into perf/core 2009-11-21 14:07:23 +01:00
Makefile Merge branch 'tracing/hw-breakpoints' into perf/core 2009-11-21 14:07:23 +01:00
blktrace.c
ftrace.c Merge branch 'tracing-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2009-12-05 09:53:36 -08:00
kmemtrace.c
power-traces.c
ring_buffer.c ring-buffer: Move resize integrity check under reader lock 2009-12-10 23:20:52 -05:00
ring_buffer_benchmark.c ring-buffer-benchmark: Add parameters to set produce/consumer priorities 2009-11-25 14:14:15 -05:00
trace.c tracing: Remove comparing of NULL to va_list in trace_array_vprintk() 2009-12-09 14:20:08 -05:00
trace.h tracing: Add pipe_close interface 2009-12-07 12:01:35 -05:00
trace_boot.c
trace_branch.c
trace_clock.c
trace_entries.h
trace_event_profile.c tracing: Use the perf recursion protection from trace event 2009-11-22 09:03:42 +01:00
trace_events.c tracing: Move a printk out of ftrace_raw_reg_event_foo() 2009-12-13 18:37:25 +01:00
trace_events_filter.c
trace_export.c tracing: Pull up calls to trace_define_common_fields() 2009-12-13 18:34:23 +01:00
trace_functions.c
trace_functions_graph.c tracing: Fix function graph trace_pipe to properly display failed entries 2009-12-09 14:09:06 -05:00
trace_hw_branches.c
trace_irqsoff.c
trace_kprobe.c tracing: Pull up calls to trace_define_common_fields() 2009-12-13 18:34:23 +01:00
trace_ksym.c tracing: Fix wrong usage of strstrip in trace_ksyms 2009-12-11 00:01:36 +01:00
trace_mmiotrace.c
trace_nop.c
trace_output.c tracing: Add full state to trace_seq 2009-12-09 14:05:49 -05:00
trace_output.h
trace_printk.c
trace_sched_switch.c
trace_sched_wakeup.c
trace_selftest.c
trace_selftest_dynamic.c
trace_stack.c
trace_stat.c
trace_stat.h
trace_syscalls.c tracing: Move a printk out of ftrace_raw_reg_event_foo() 2009-12-13 18:37:25 +01:00
trace_sysprof.c
trace_workqueue.c