]> git.baikalelectronics.ru Git - kernel.git/commit
tools lib traceevent: Fix backward compatibility macros for pevent filter enums
authorSteven Rostedt <rostedt@goodmis.org>
Tue, 22 Apr 2014 02:23:46 +0000 (22:23 -0400)
committerJiri Olsa <jolsa@redhat.com>
Wed, 23 Apr 2014 11:19:23 +0000 (13:19 +0200)
commit0191a566584149ebaed694365a46a16f5bbc8a0c
tree381c3d5308d4afc4b1d3849998b056313924638a
parentac7a323165680d83c940b1321e0d432f6b3db3e4
tools lib traceevent: Fix backward compatibility macros for pevent filter enums

The return value for pevent_filter_match() is suppose to return FILTER_NONE
if the event doesn't have a filter, and FILTER_NOEXIST if there is no filter
at all. But the change 1b72d316e1b "tools lib traceevent: Refactor
pevent_filter_match() to get rid of die()" replaced the return value
with PEVENT_ERRNO__* values and added "backward compatibility" macros
that used the old names. Unfortunately, the NOEXIST and NONE macros were
swapped, and this broke users that use the old return names.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/20140421222346.0351ced4@gandalf.local.home
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
tools/lib/traceevent/event-parse.h