OSDN Git Service

perf trace: Mark syscall ids that are not allocated to avoid unnecessary error messages
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 17 Jul 2019 23:21:37 +0000 (20:21 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 29 Jul 2019 21:34:42 +0000 (18:34 -0300)
commitb8b1033fcaa091d82289698d7179e84e28cbd92a
treee582854f8678a27b63d97b291cb302aa6935d0a4
parent5d2bd88975117062766a48b5f36ce31d2c1a8269
perf trace: Mark syscall ids that are not allocated to avoid unnecessary error messages

There are holes in syscall tables with IDs not associated with any
syscall, mark those when trying to read information for syscalls, which
could happen when iterating thru all syscalls from 0 to the highest
numbered syscall id.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Luis Cláudio Gonçalves <lclaudio@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-cku9mpcrcsqaiq0jepu86r68@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c