]> git.baikalelectronics.ru Git - kernel.git/commit
mm: tracing: Export enums in tracepoints to user space
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Fri, 27 Mar 2015 20:48:57 +0000 (16:48 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 8 Apr 2015 13:40:01 +0000 (09:40 -0400)
commit0d34fab3017637f5235c20c8ce8eef76c9184c92
treec3c7be3f8715e8dc6a9b003e3bbd47b7c9272f0b
parent6f3327a4cd43b4728aaf4b0f32a51550a497cee5
mm: tracing: Export enums in tracepoints to user space

The enums used in tracepoints with __print_symbolic() have their
names shown in the tracepoint format files and not their values.
This makes it difficult for user space tools to convert the binary
data to the strings as user space does not know what those enums
are about.

By having them use TRACE_DEFINE_ENUM(), the names of the enums will
be mapped to the values and shown to user space.

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/trace/events/migrate.h