]> git.karo-electronics.de Git - linux-beck.git/commit
tracing: Do not do anything special with tracepoint_string when tracing is disabled
authorSteven Rostedt <rostedt@goodmis.org>
Fri, 25 Jul 2014 20:05:29 +0000 (16:05 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 8 Aug 2014 00:39:36 +0000 (20:39 -0400)
commit3c49b52b155d0f723792377e1a4480a0e7ca0ba2
tree651052ab8141bb7b0a28d23ea02624727632f311
parent19583ca584d6f574384e17fe7613dfaeadcdc4a6
tracing: Do not do anything special with tracepoint_string when tracing is disabled

When CONFIG_TRACING is not enabled, there's no reason to save the trace
strings either by the linker or as a static variable that can be
referenced later. Simply pass back the string that is given to
tracepoint_string().

Had to move the define to include/linux/tracepoint.h so that it is still
visible when CONFIG_TRACING is not set.

Link: http://lkml.kernel.org/p/1406318733-26754-2-git-send-email-nicolas.pitre@linaro.org
Suggested-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/ftrace_event.h
include/linux/tracepoint.h