]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Add tp_printk cmdline to have tracepoints go to printk()
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Sat, 13 Dec 2014 03:27:10 +0000 (22:27 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 15 Dec 2014 15:17:38 +0000 (10:17 -0500)
commit7f91887c7a8ff1903e9188e0cfac911c08a8280c
tree8bea68f7bbeab6521c11c01f55b5660082eeedf6
parente6fc59332262362fed0323482d0aafbb5deff3ef
tracing: Add tp_printk cmdline to have tracepoints go to printk()

Add the kernel command line tp_printk option that will have tracepoints
that are active sent to printk() as well as to the trace buffer.

Passing "tp_printk" will activate this. To turn it off, the sysctl
/proc/sys/kernel/tracepoint_printk can have '0' echoed into it. Note,
this only works if the cmdline option is used. Echoing 1 into the sysctl
file without the cmdline option will have no affect.

Note, this is a dangerous option. Having high frequency tracepoints send
their data to printk() can possibly cause a live lock. This is another
reason why this is only active if the command line option is used.

Link: http://lkml.kernel.org/r/alpine.DEB.2.11.1412121539300.16494@nanos
Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Documentation/kernel-parameters.txt
include/linux/ftrace.h
kernel/sysctl.c
kernel/trace/trace.c
kernel/trace/trace.h
kernel/trace/trace_events.c