]> git.baikalelectronics.ru Git - kernel.git/commit
perf syscalltbl: Support glob matching on syscall names
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 31 Aug 2017 14:46:49 +0000 (11:46 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 1 Sep 2017 17:45:48 +0000 (14:45 -0300)
commit334acb248179aa3331878f9f7c2bfad3344a9823
tree05c3a7faa503e8d94b9e13c6a7b0d5e5339b9490
parent9efa322ca46372597e349199fbb210650efe983e
perf syscalltbl: Support glob matching on syscall names

With two new methods, one to find the first match, returning its syscall
id and its index in whatever internal database it keeps the syscall
into, then one to find the next match, if any.

Implemented only on arches where we actually read the syscall table from
the kernel sources, i.e. x86-64 for now, all the others use the libaudit
method for which this returns -1, i.e. just stubs were added, with the
actual implementation using whatever libaudit functions for matching
that may be available.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-i0sj4rxk1a63pfe9gl8z8irs@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/syscalltbl.c
tools/perf/util/syscalltbl.h