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

bigzz/trace-cmd,bigzz/trace-cmd