summaryrefslogtreecommitdiffstats
path: root/lib/locking-selftest-rsem.h
diff options
context:
space:
mode:
authorVaibhav Nagarnaik <vnagarnaik@google.com>2012-04-06 00:48:00 +0200
committerFrederic Weisbecker <fweisbec@gmail.com>2012-04-25 13:35:28 +0200
commitd69afed55be1016c2bcfcb3e00cd5365d2f557f6 (patch)
tree1c5dcb6fd48531ea1ee278fbc2a54ec613637472 /lib/locking-selftest-rsem.h
parentperf/events: Correct size given to memset (diff)
downloadlinux-d69afed55be1016c2bcfcb3e00cd5365d2f557f6.tar.xz
linux-d69afed55be1016c2bcfcb3e00cd5365d2f557f6.zip
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>
Diffstat (limited to 'lib/locking-selftest-rsem.h')
0 files changed, 0 insertions, 0 deletions