Skip to content

Commit 26db672

Browse files
charlie-rivosacmel
authored andcommitted
perf tools arc: Support generic syscall headers
Arc uses the generic syscall table, use that in perf instead of requiring libaudit. Signed-off-by: Charlie Jenkins <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Christian Brauner <[email protected]> Cc: Guo Ren <[email protected]> Cc: Günther Noack <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: James Clark <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: John Garry <[email protected]> Cc: Jonathan Corbet <[email protected]> Cc: Leo Yan <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Mickaël Salaün <[email protected]> Cc: Mike Leach <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Palmer Dabbelt <[email protected]> Cc: Paul Walmsley <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Will Deacon <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 4a73aff commit 26db672

File tree

5 files changed

+10
-2
lines changed

5 files changed

+10
-2
lines changed

tools/perf/Makefile.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ ifneq ($(NO_SYSCALL_TABLE),1)
3636
endif
3737

3838
# architectures that use the generic syscall table scripts
39-
ifeq ($(SRCARCH),riscv)
39+
ifneq ($(filter $(SRCARCH), $(generic_syscall_table_archs)),)
4040
NO_SYSCALL_TABLE := 0
4141
CFLAGS += -DGENERIC_SYSCALL_TABLE
4242
CFLAGS += -I$(OUTPUT)arch/$(SRCARCH)/include/generated

tools/perf/Makefile.perf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,8 @@ FEATURE_TESTS := all
311311
endif
312312
endif
313313
# architectures that use the generic syscall table
314-
ifeq ($(SRCARCH),riscv)
314+
generic_syscall_table_archs := riscv arc
315+
ifneq ($(filter $(SRCARCH), $(generic_syscall_table_archs)),)
315316
include $(srctree)/tools/perf/scripts/Makefile.syscalls
316317
endif
317318
include Makefile.config
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
syscall-y += syscalls_32.h
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
3+
syscall_abis_32 += arc time32 renameat stat64 rlimit
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/* SPDX-License-Identifier: GPL-2.0 */
2+
#include <asm/syscalls_32.h>

0 commit comments

Comments
 (0)