mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 02:24:24 +02:00
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 <charlie@rivosinc.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Christian Brauner <brauner@kernel.org> Cc: Guo Ren <guoren@kernel.org> Cc: Günther Noack <gnoack@google.com> Cc: Ian Rogers <irogers@google.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: James Clark <james.clark@linaro.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: John Garry <john.g.garry@oracle.com> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Leo Yan <leo.yan@linux.dev> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Mickaël Salaün <mic@digikod.net> Cc: Mike Leach <mike.leach@linaro.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Palmer Dabbelt <palmer@dabbelt.com> Cc: Paul Walmsley <paul.walmsley@sifive.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Will Deacon <will@kernel.org> Link: https://lore.kernel.org/r/20250108-perf_syscalltbl-v6-2-7543b5293098@rivosinc.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
4a73aff8c5
commit
26db672256
|
|
@ -36,7 +36,7 @@ ifneq ($(NO_SYSCALL_TABLE),1)
|
|||
endif
|
||||
|
||||
# architectures that use the generic syscall table scripts
|
||||
ifeq ($(SRCARCH),riscv)
|
||||
ifneq ($(filter $(SRCARCH), $(generic_syscall_table_archs)),)
|
||||
NO_SYSCALL_TABLE := 0
|
||||
CFLAGS += -DGENERIC_SYSCALL_TABLE
|
||||
CFLAGS += -I$(OUTPUT)arch/$(SRCARCH)/include/generated
|
||||
|
|
|
|||
|
|
@ -311,7 +311,8 @@ FEATURE_TESTS := all
|
|||
endif
|
||||
endif
|
||||
# architectures that use the generic syscall table
|
||||
ifeq ($(SRCARCH),riscv)
|
||||
generic_syscall_table_archs := riscv arc
|
||||
ifneq ($(filter $(SRCARCH), $(generic_syscall_table_archs)),)
|
||||
include $(srctree)/tools/perf/scripts/Makefile.syscalls
|
||||
endif
|
||||
include Makefile.config
|
||||
|
|
|
|||
2
tools/perf/arch/arc/entry/syscalls/Kbuild
Normal file
2
tools/perf/arch/arc/entry/syscalls/Kbuild
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
syscall-y += syscalls_32.h
|
||||
3
tools/perf/arch/arc/entry/syscalls/Makefile.syscalls
Normal file
3
tools/perf/arch/arc/entry/syscalls/Makefile.syscalls
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
syscall_abis_32 += arc time32 renameat stat64 rlimit
|
||||
2
tools/perf/arch/arc/include/syscall_table.h
Normal file
2
tools/perf/arch/arc/include/syscall_table.h
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#include <asm/syscalls_32.h>
|
||||
Loading…
Reference in New Issue
Block a user