tracing: Add enum_map file to show enums that have been mapped
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Tue, 31 Mar 2015 21:23:45 +0000 (17:23 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 8 Apr 2015 14:58:35 +0000 (10:58 -0400)
commit9828413d4715d4ed12bc92b161f4ed377d777ffb
tree78c05d662c762ed127ad215b3e34b367f39bbb70
parent91df6089aa330f12f31cf4b710350a3d6e3d66e6
tracing: Add enum_map file to show enums that have been mapped

Add a enum_map file in the tracing directory to see what enums have been
saved to convert in the print fmt files.

As this requires the enum mapping to be persistent in memory, it is only
created if the new config option CONFIG_TRACE_ENUM_MAP_FILE is enabled.
This is for debugging and will increase the persistent memory footprint
of the kernel.

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>
kernel/trace/Kconfig
kernel/trace/trace.c