]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: add __print_symbolic to trace events
authorSteven Rostedt <srostedt@redhat.com>
Wed, 20 May 2009 23:21:47 +0000 (19:21 -0400)
committerFrederic Weisbecker <fweisbec@gmail.com>
Tue, 26 May 2009 18:31:50 +0000 (20:31 +0200)
commit437fcf9dcb0c4539d3976971d5117982059dee39
treeaf3d210c8db9adcf117580c949fb708badcb520b
parent8f57335111bbd7f913736efd34330445de5004b1
tracing: add __print_symbolic to trace events

This patch adds __print_symbolic which is similar to __print_flags but
works for an enumeration type instead. That is, there is only a one to one
mapping between the values and the symbols. When a match is made, then
it is printed, otherwise the hex value is outputed.

[ Impact: add interface for showing symbol names in events ]

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
include/linux/ftrace_event.h
include/trace/ftrace.h
kernel/trace/trace_output.c