perf trace: Generalize the syscall_fmt find routines
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 1 Oct 2019 18:27:55 +0000 (15:27 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 7 Oct 2019 15:22:17 +0000 (12:22 -0300)
commitbcddbfc5c8c952175e9a5f1a4186685fa0338a14
tree9fc02249aefc784e504feba9aeb46a8bace2de52
parent9b2036cd329924082acfa5dec58deec12fa1f5e8
perf trace: Generalize the syscall_fmt find routines

To allow them to be used with other stuff, such as tracepoints.

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-od3gzg77ppqgnnrxqv40fvgx@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c