alistair23-linux/tools/lib/traceevent
Namhyung Kim 41e12e580a tools lib traceevent: Refactor pevent_filter_match() to get rid of die()
The test_filter() function is for testing given filter is matched to a
given record.  However it doesn't handle error cases properly so add a
new argument err to save error info during the test and also pass it to
internal test functions.

The return value of pevent_filter_match() also converted to pevent_errno
to indicate an exact error case.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/1386833777-3790-13-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2013-12-13 10:30:22 -03:00
..
.gitignore tools lib traceevent: Ignore TRACEEVENT-CFLAGS file 2012-07-25 11:54:44 -03:00
event-parse.c tools lib traceevent: Report better error message on bad function args 2013-12-06 10:39:54 -03:00
event-parse.h tools lib traceevent: Refactor pevent_filter_match() to get rid of die() 2013-12-13 10:30:22 -03:00
event-plugin.c tools lib traceevent: Remove malloc_or_die from event-plugin.c 2013-12-04 15:35:48 -03:00
event-utils.h tools lib traceevent: Update FSF postal address to be URL's. 2013-01-24 16:40:17 -03:00
kbuffer-parse.c tools lib traceevent: Port kbuffer parser routines 2013-07-12 13:52:16 -03:00
kbuffer.h tools lib traceevent: Port kbuffer parser routines 2013-07-12 13:52:16 -03:00
Makefile tools lib traceevent: Add cfg80211 plugin 2013-12-04 15:35:27 -03:00
parse-filter.c tools lib traceevent: Refactor pevent_filter_match() to get rid of die() 2013-12-13 10:30:22 -03:00
parse-utils.c tools lib traceevent: Add copyright header 2013-01-24 16:40:17 -03:00
plugin_cfg80211.c tools lib traceevent: Add cfg80211 plugin 2013-12-04 15:35:27 -03:00
plugin_function.c tools lib traceevent: Remove malloc_or_die from plugin_function.c 2013-12-04 15:37:58 -03:00
plugin_hrtimer.c tools lib traceevent: Use pevent_print_func_field in hrtimer_start handler 2013-12-04 15:36:50 -03:00
plugin_jbd2.c tools lib traceevent: Use static functions in jbd2 plugin 2013-12-04 15:36:24 -03:00
plugin_kmem.c tools lib traceevent: Add kmem plugin 2013-12-04 15:26:05 -03:00
plugin_kvm.c tools lib traceevent: Update kvm plugin with is_writable_pte helper 2013-12-04 15:38:14 -03:00
plugin_mac80211.c tools lib traceevent: Add mac80211 plugin 2013-12-04 15:30:36 -03:00
plugin_sched_switch.c tools lib traceevent: Add sched_switch plugin 2013-12-04 15:31:11 -03:00
plugin_scsi.c tools lib traceevent: Add scsi plugin 2013-12-04 15:34:51 -03:00
plugin_xen.c tools lib traceevent: Add xen plugin 2013-12-04 15:34:04 -03:00
trace-seq.c tools lib traceevent: Add trace_seq_reset() 2013-07-12 13:52:12 -03:00