v4l: Export enums used by tracepoints to user space
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Fri, 27 Mar 2015 21:04:45 +0000 (17:04 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 8 Apr 2015 14:58:25 +0000 (10:58 -0400)
commit43d0f71f0e3f36cc54de8e95bd8005063fa9e818
tree6a2fe6dc9bad2c959779696c8623eed69af6fe0a
parent6ba16eefcdaa8634e1c1d70d5c31b0495c99ab02
v4l: Export enums used by tracepoints to user space

Enums used by tracepoints for __print_symbolic() are shown in the
tracepoint format files with just their names and not their values.
This makes it difficult for user space tools to know how to convert the
binary data into their string representations.

By adding the use of TRACE_DEFINE_ENUM(), the enum names will be mapped
to their values and shown in the tracing file system to let tools
convert the data as necessary.

Link: http://lkml.kernel.org/r/20150403013802.220157513@goodmis.org
Acked-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
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/v4l2.h