diff options
author | Vaibhav Nagarnaik <[email protected]> | 2012-04-06 00:48:00 +0200 |
---|---|---|
committer | Frederic Weisbecker <[email protected]> | 2012-04-25 13:35:28 +0200 |
commit | d69afed55be1016c2bcfcb3e00cd5365d2f557f6 (patch) | |
tree | 1c5dcb6fd48531ea1ee278fbc2a54ec613637472 /tools/perf/util/scripting-engines/trace-event-perl.c | |
parent | 54a3625829c9de60f4acbd0efe3ec4201b174fd6 (diff) |
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 <[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