perf trace: Check and discard not only 'nr' but also '__syscall_nr'
authorTaeung Song <treeze.taeung@gmail.com>
Fri, 26 Feb 2016 13:14:25 +0000 (22:14 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 29 Feb 2016 14:34:28 +0000 (11:34 -0300)
commitc42de706dad3f39c1f65e473a1d165ea33f8b6e8
tree44d69ea6c48047adf54c387df7c0246791c3b0b6
parent67d5268908283c187e0a460048a423256c2fb288
perf trace: Check and discard not only 'nr' but also '__syscall_nr'

Format fields of a syscall have the first variable '__syscall_nr' or
'nr' that mean the syscall number.  But it isn't relevant here so drop
it.

'nr' among fields of syscall was renamed '__syscall_nr'.  So add
exception handling to drop '__syscall_nr' and modify the comment for
this excpetion handling.

Reported-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Taeung Song <treeze.taeung@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/1456492465-5946-1-git-send-email-treeze.taeung@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c