diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2015-03-25 22:44:21 +0300 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-04-08 16:39:57 +0300 |
commit | 3673b8e4ce7237160fa31ee8d7e94a4d5a9976a1 (patch) | |
tree | dbbc779ed3883db285d243d85452a7e603120d85 /include/linux/module.h | |
parent | 0c564a538aa934ad15b2145aaf8b64f3feb0be63 (diff) | |
download | linux-3673b8e4ce7237160fa31ee8d7e94a4d5a9976a1.tar.xz |
tracing: Allow for modules to convert their enums to values
Update the infrastructure such that modules that declare TRACE_DEFINE_ENUM()
will have those enums converted into their values in the tracepoint
print fmt strings.
Link: http://lkml.kernel.org/r/87vbhjp74q.fsf@rustcorp.com.au
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
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/module.h')
-rw-r--r-- | include/linux/module.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index 42999fe2dbd0..53dc41dd5c62 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -338,6 +338,8 @@ struct module { #ifdef CONFIG_EVENT_TRACING struct ftrace_event_call **trace_events; unsigned int num_trace_events; + struct trace_enum_map **trace_enums; + unsigned int num_trace_enums; #endif #ifdef CONFIG_FTRACE_MCOUNT_RECORD unsigned int num_ftrace_callsites; |