parse-events: Handle invalid opcode parsing gracefully
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 <4fde2c96bbb2b79984d097dee9168089855814c5@google.com>
Cc: David Sharp <d17c0a8430b0bd65a7a6ae309f7a3dc190d92668@google.com>
Signed-off-by: Vaibhav Nagarnaik <1fa667586c90bce718fd3c486c1144f98789d483@google.com>
Link: http://lkml.kernel.org/r/1310785241-3799-2-git-send-email-1fa667586c90bce718fd3c486c1144f98789d483@google.com
Signed-off-by: Steven Rostedt <43232e92d70cc7aa53504ad0397085ee47bad87f@goodmis.org>

bigzz/trace-cmd,bigzz/trace-cmd