aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/traceevent/event-parse.h
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung.kim@lge.com>2013-12-12 02:36:14 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-12-13 08:30:22 -0500
commit69c770a690422c6cdc4ea52d9edbba7c20cd1aff (patch)
treea7aa0eb0d68c931ffc0976c27aa884b8581eef3d /tools/lib/traceevent/event-parse.h
parent42d6194d133cbaf12f34cbdc4111bd8f7dc0ed2a (diff)
tools lib traceevent: Make pevent_filter_add_filter_str() return pevent_errno
Refactor the pevent_filter_add_filter_str() to return a proper error code and get rid of the third error_str argument. 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: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Steven Rostedt <rostedt@goodmis.org> Link: http://lkml.kernel.org/r/1386833777-3790-12-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib/traceevent/event-parse.h')
-rw-r--r--tools/lib/traceevent/event-parse.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/lib/traceevent/event-parse.h b/tools/lib/traceevent/event-parse.h
index da942d59cc3a..089964e56ed4 100644
--- a/tools/lib/traceevent/event-parse.h
+++ b/tools/lib/traceevent/event-parse.h
@@ -372,7 +372,8 @@ enum pevent_flag {
372 _PE(ILLEGAL_TOKEN, "illegal token"), \ 372 _PE(ILLEGAL_TOKEN, "illegal token"), \
373 _PE(INVALID_PAREN, "open parenthesis cannot come here"), \ 373 _PE(INVALID_PAREN, "open parenthesis cannot come here"), \
374 _PE(UNBALANCED_PAREN, "unbalanced number of parenthesis"), \ 374 _PE(UNBALANCED_PAREN, "unbalanced number of parenthesis"), \
375 _PE(UNKNOWN_TOKEN, "unknown token") 375 _PE(UNKNOWN_TOKEN, "unknown token"), \
376 _PE(FILTER_NOT_FOUND, "no filter found")
376 377
377#undef _PE 378#undef _PE
378#define _PE(__code, __str) PEVENT_ERRNO__ ## __code 379#define _PE(__code, __str) PEVENT_ERRNO__ ## __code
@@ -863,9 +864,8 @@ enum filter_trivial_type {
863 FILTER_TRIVIAL_BOTH, 864 FILTER_TRIVIAL_BOTH,
864}; 865};
865 866
866int pevent_filter_add_filter_str(struct event_filter *filter, 867enum pevent_errno pevent_filter_add_filter_str(struct event_filter *filter,
867 const char *filter_str, 868 const char *filter_str);
868 char **error_str);
869 869
870 870
871int pevent_filter_match(struct event_filter *filter, 871int pevent_filter_match(struct event_filter *filter,