]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: do not translate event helper macros in print format
authorSteven Rostedt <srostedt@redhat.com>
Wed, 10 Jun 2009 18:28:34 +0000 (14:28 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 10 Jun 2009 18:28:34 +0000 (14:28 -0400)
commited96296f61671d44d48a44c96a02e934d02371fb
tree1ca1b9a0aff32f1542a9dc3d2f5ccac7ab8a52e3
parent43ff31e1040c1077e5a6e15b6f34d25640205920
tracing: do not translate event helper macros in print format

By moving the macro that creates the print format code above the
defining of the event macro helpers (__get_str, __print_symbolic,
and __get_dynamic_array), we get a little cleaner print format.

Instead of:

  (char *)((void *)REC + REC->__data_loc_name)

we get:

   __get_str(name)

Instead of:

   ({ static const struct trace_print_flags symbols[] = { { HI_SOFTIRQ, "HI" }, {

we get:

   __print_symbolic(REC->vec, { HI_SOFTIRQ, "HI" }, {

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/trace/ftrace.h