linux/tools/lib/traceevent
Vaibhav Nagarnaik d69afed55b parse-events: Handle invalid opcode parsing gracefully
If an invalid opcode is encountered, trace-cmd exits with an error.
Instead it can be treated as a soft error where the event's print format
is not parsed and its binary data is dumped out.

This patch adds a return value to arg_num_eval() function to indicate if
the parsing was successful. If not, then the error is considered soft
and the parsing of the offending event fails.

Cc: Michael Rubin <mrubin@google.com>
Cc: David Sharp <dhsharp@google.com>
Signed-off-by: Vaibhav Nagarnaik <vnagarnaik@google.com>
Link: http://lkml.kernel.org/r/1310785241-3799-2-git-send-email-vnagarnaik@google.com
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Arun Sharma <asharma@fb.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
2012-04-25 13:35:28 +02:00
..
event-parse.c parse-events: Handle invalid opcode parsing gracefully 2012-04-25 13:35:28 +02:00
event-parse.h perf/events: Add flag to produce nsec output 2012-04-25 13:35:18 +02:00
event-utils.h events: Update tools/lib/traceevent to work with perf 2012-04-25 13:12:26 +02:00
Makefile
parse-filter.c events: Update tools/lib/traceevent to work with perf 2012-04-25 13:12:26 +02:00
parse-utils.c
trace-seq.c events: Update tools/lib/traceevent to work with perf 2012-04-25 13:12:26 +02:00