]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf tools: Create generic syscall table support
authorCharlie Jenkins <charlie@rivosinc.com>
Thu, 9 Jan 2025 02:36:16 +0000 (18:36 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 9 Jan 2025 15:49:49 +0000 (12:49 -0300)
commit4a73aff8c5e2a156bb841f022df51c27e8104ac8
treec66ff74dce66bdc6750fa8ce8bdeaed3ac76925f
parent6bfb4c571b8896df479e6b82a241ea7055ec4b55
perf tools: Create generic syscall table support

Currently each architecture in perf independently generates syscall
headers.

Adapt the work that has gone into unifying syscall header
implementations in the kernel to work with perf tools.

Introduce this framework with riscv at first. riscv previously relied on
libaudit, but with this change, perf tools for riscv no longer needs
this external dependency.

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-1-7543b5293098@rivosinc.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
13 files changed:
tools/build/Build.include
tools/perf/Makefile.config
tools/perf/Makefile.perf
tools/perf/arch/riscv/Makefile
tools/perf/arch/riscv/entry/syscalls/Kbuild [new file with mode: 0644]
tools/perf/arch/riscv/entry/syscalls/Makefile.syscalls [new file with mode: 0644]
tools/perf/arch/riscv/entry/syscalls/mksyscalltbl [deleted file]
tools/perf/arch/riscv/include/syscall_table.h [new file with mode: 0644]
tools/perf/check-headers.sh
tools/perf/scripts/Makefile.syscalls [new file with mode: 0644]
tools/perf/scripts/syscalltbl.sh [new file with mode: 0755]
tools/perf/util/syscalltbl.c
tools/scripts/syscall.tbl [new file with mode: 0644]