diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2015-03-31 21:37:12 +0300 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-04-08 16:39:55 +0300 |
commit | acd388fd3af350ab24c6ab6f19b83fc4a4f3aa60 (patch) | |
tree | 98b1345299c3ea060b8297b35465d4dc92e4ea1d /include/linux/ftrace_event.h | |
parent | 6e9dd8ddbdbb3b7aeba7fd9b987579534cfc260b (diff) | |
download | linux-acd388fd3af350ab24c6ab6f19b83fc4a4f3aa60.tar.xz |
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>
Diffstat (limited to 'include/linux/ftrace_event.h')
-rw-r--r-- | include/linux/ftrace_event.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h index c674ee8f7fca..62b8fac7ded5 100644 --- a/include/linux/ftrace_event.h +++ b/include/linux/ftrace_event.h @@ -202,7 +202,7 @@ enum trace_reg { struct ftrace_event_call; struct ftrace_event_class { - char *system; + const char *system; void *probe; #ifdef CONFIG_PERF_EVENTS void *perf_probe; |