aboutsummaryrefslogtreecommitdiffstats
path: root/parse-events.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2011-01-20 22:48:56 -0500
committerSteven Rostedt <rostedt@goodmis.org>2011-01-20 22:49:39 -0500
commitb8b14ccd92219d98b6336069de79d5605b4e3f45 (patch)
tree09715025a55c0ce272d3e44b2c97adc86466f1b8 /parse-events.c
parente2fd3f44d10c5ac28727215d65445e7cd9342e49 (diff)
parse-events: Show where error occurred in filtering
Show a nice pointer where an error occurred in filtering: # trace-cmd report -F 'sched_switch:(next_pid==x)||)prev_pid == 1' version = 6 cpus=4 trace-cmd: No such file or directory Error filtering: sched_switch:(next_pid==x)||)prev_pid == 1 (next_pid==x)||)prev_pid == 1 ^ Expected end where ) was found Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'parse-events.c')
-rw-r--r--parse-events.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/parse-events.c b/parse-events.c
index beab8f3..99c9593 100644
--- a/parse-events.c
+++ b/parse-events.c
@@ -53,6 +53,16 @@ static void init_input_buf(const char *buf, unsigned long long size)
53 input_buf_ptr = 0; 53 input_buf_ptr = 0;
54} 54}
55 55
56const char *pevent_get_input_buf(void)
57{
58 return input_buf;
59}
60
61unsigned long long pevent_get_input_buf_ptr(void)
62{
63 return input_buf_ptr;
64}
65
56struct event_handler { 66struct event_handler {
57 struct event_handler *next; 67 struct event_handler *next;
58 int id; 68 int id;