]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tracing/filter: Define op as the enum that it is
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Wed, 26 Oct 2016 19:58:03 +0000 (15:58 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 14 Nov 2016 21:42:59 +0000 (16:42 -0500)
commit3f303fbccfc423a28765df6e1be0428fdf1aac59
tree63f89f7756f353d41af34df481afe8ee610fcd24
parentfdf5b679864b8a1165712164b8f17debeb6b10b6
tracing/filter: Define op as the enum that it is

The trace_events_file.c filter logic can be a bit complex. I copy this into
a userspace program where I can debug it a bit easier. One issue is the op
is defined in most places as an int instead of as an enum, and gdb just
gives the value when debugging. Having the actual op name shown in gdb is
more useful.

This has no functionality change, but helps in debugging when the file is
debugged in user space.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_events_filter.c