]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Give system name a pointer
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Tue, 31 Mar 2015 18:37:12 +0000 (14:37 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 8 Apr 2015 13:39:55 +0000 (09:39 -0400)
commitd069b396b2f103ec20d2841a1fc0439198642cb8
tree98b1345299c3ea060b8297b35465d4dc92e4ea1d
parent02a1171c29325c0890e5f70400d027d60f504cb7
tracing: Give system name a pointer

Normally the compiler will use the same pointer for a string throughout
the file. But there's no guarantee of that happening. Later changes will
require that all events have the same pointer to the system string.

Name the system string and have all events point to it.

Testing this, it did not increases the size of the text, except for the
notes section, which should not harm the real size any.

Link: http://lkml.kernel.org/r/20150403013802.220157513@goodmis.org
Reviewed-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Tested-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/ftrace_event.h
include/trace/ftrace.h