From: Steven Rostedt (Red Hat) Date: Fri, 27 Mar 2015 20:48:57 +0000 (-0400) Subject: mm: tracing: Export enums in tracepoints to user space X-Git-Tag: omap-for-v4.2/o2_dc~149^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=190f0b76ca498789b4dc6acb8c8e9a31b6548f9d;p=pandora-kernel.git 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 Tested-by: Masami Hiramatsu Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed