Skip to content

Commit a7f660d

Browse files
kim-phillips-armacmel
authored andcommitted
perf trace arm64: 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, s390, and powerpc, which means arm64 can now pass the "Check open filename arg using perf trace + vfs_getname" test. Signed-off-by: Kim Phillips <[email protected]> Reviewed-by: Hendrik Brueckner <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Ravi Bangoria <[email protected]> Cc: Thomas Richter <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 2b58824 commit a7f660d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tools/perf/Makefile.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ endif
5454

5555
ifeq ($(SRCARCH),arm64)
5656
NO_PERF_REGS := 0
57+
NO_SYSCALL_TABLE := 0
58+
CFLAGS += -I$(OUTPUT)arch/arm64/include/generated
5759
LIBUNWIND_LIBS = -lunwind -lunwind-aarch64
5860
endif
5961

tools/perf/util/syscalltbl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ static const char **syscalltbl_native = syscalltbl_powerpc_64;
3838
#include <asm/syscalls_32.c>
3939
const int syscalltbl_native_max_id = SYSCALLTBL_POWERPC_32_MAX_ID;
4040
static const char **syscalltbl_native = syscalltbl_powerpc_32;
41+
#elif defined(__aarch64__)
42+
#include <asm/syscalls.c>
43+
const int syscalltbl_native_max_id = SYSCALLTBL_ARM64_MAX_ID;
44+
static const char **syscalltbl_native = syscalltbl_arm64;
4145
#endif
4246

4347
struct syscall {

0 commit comments

Comments
 (0)