diff options
author | Vaibhav Nagarnaik <[email protected]> | 2012-04-06 00:48:01 +0200 |
---|---|---|
committer | Frederic Weisbecker <[email protected]> | 2012-04-25 13:35:32 +0200 |
commit | 14ffde0e966efab6724e2de3ab470b78d4e01109 (patch) | |
tree | 37ab19cc24cf0b2e17bd6d2ba6218f5eb077ed6f /tools/perf/util/scripting-engines/trace-event-perl.c | |
parent | d69afed55be1016c2bcfcb3e00cd5365d2f557f6 (diff) |
parse-events: Handle opcode parsing error
If an invalid opcode is encountered in parsing event print format, the
trace-cmd calls exit() without parsing any other events.
This patch adds handling for such an error where the get_op_prio() is
called. If the return value is -1, then the event print format parsing
is skipped and parsing continues.
Cc: Michael Rubin <[email protected]>
Cc: David Sharp <[email protected]>
Signed-off-by: Vaibhav Nagarnaik <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Steven Rostedt <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Arun Sharma <[email protected]>
Cc: Namhyung Kim <[email protected]>
Signed-off-by: Frederic Weisbecker <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions