Skip to content

Commit 4281da2

Browse files
Ravi Bangoriaacmel
authored andcommitted
perf trace powerpc: Use generated syscall table
This should speed up accessing new system calls introduced with the kernel rather than waiting for libaudit updates to include them. It also enables users to specify wildcards, for example, perf trace -e 'open*', just like was already possible on x86 and s390. Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Hendrik Brueckner <brueckner@linux.vnet.ibm.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Thomas Richter <tmricht@linux.vnet.ibm.com> Cc: linuxppc-dev@lists.ozlabs.org Link: http://lkml.kernel.org/r/20180129083417.31240-4-ravi.bangoria@linux.vnet.ibm.com [ Do it for ppc32 as well ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 8e2ff72 commit 4281da2

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎tools/perf/Makefile.config‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ NO_SYSCALL_TABLE := 1
2727
# Additional ARCH settings for ppc
2828
ifeq ($(SRCARCH),powerpc)
2929
NO_PERF_REGS := 0
30+
NO_SYSCALL_TABLE := 0
31+
CFLAGS += -I$(OUTPUT)arch/powerpc/include/generated
3032
LIBUNWIND_LIBS := -lunwind -lunwind-ppc64
3133
endif
3234

‎tools/perf/util/syscalltbl.c‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ static const char **syscalltbl_native = syscalltbl_x86_64;
3030
#include <asm/syscalls_64.c>
3131
const int syscalltbl_native_max_id = SYSCALLTBL_S390_64_MAX_ID;
3232
static const char **syscalltbl_native = syscalltbl_s390_64;
33+
#elif defined(__powerpc64__)
34+
#include <asm/syscalls_64.c>
35+
const int syscalltbl_native_max_id = SYSCALLTBL_POWERPC_64_MAX_ID;
36+
static const char **syscalltbl_native = syscalltbl_powerpc_64;
37+
#elif defined(__powerpc__)
38+
#include <asm/syscalls_32.c>
39+
const int syscalltbl_native_max_id = SYSCALLTBL_POWERPC_32_MAX_ID;
40+
static const char **syscalltbl_native = syscalltbl_powerpc_32;
3341
#endif
3442

3543
struct syscall {

0 commit comments

Comments
 (0)