diff options
author | Björn Töpel <bjorn@rivosinc.com> | 2024-10-24 21:03:51 +0200 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2024-10-31 07:39:34 +0100 |
commit | 8c0d1202bad3aa6e40fb078dc08158f0bb4e03e2 (patch) | |
tree | fdeda0ab1775eb24c4ee6b8717cb93fd46b39344 /tools/perf/util/syscalltbl.c | |
parent | perf probe: Fix retrieval of source files from a debuginfod server (diff) | |
download | linux-8c0d1202bad3aa6e40fb078dc08158f0bb4e03e2.tar.xz linux-8c0d1202bad3aa6e40fb078dc08158f0bb4e03e2.zip |
perf, riscv: Wire up perf trace support for RISC-V
RISC-V does not currently support perf trace, since the system call
table is not generated.
Perform the copy/paste exercise, wiring up RISC-V system call table
generation.
Signed-off-by: Björn Töpel <bjorn@rivosinc.com>
Tested-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Cc: Anup Patel <anup@brainfault.org>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Cc: linux-riscv@lists.infradead.org
Cc: Atish Patra <atishp@rivosinc.com>
Cc: Paul Walmsley <paul.walmsley@sifive.com>
Link: https://lore.kernel.org/r/20241024190353.46737-1-bjorn@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | tools/perf/util/syscalltbl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/util/syscalltbl.c b/tools/perf/util/syscalltbl.c index 7c15dec6900d..349986f6e5f5 100644 --- a/tools/perf/util/syscalltbl.c +++ b/tools/perf/util/syscalltbl.c @@ -46,6 +46,10 @@ static const char *const *syscalltbl_native = syscalltbl_mips_n64; #include <asm/syscalls.c> const int syscalltbl_native_max_id = SYSCALLTBL_LOONGARCH_MAX_ID; static const char *const *syscalltbl_native = syscalltbl_loongarch; +#elif defined(__riscv) +#include <asm/syscalls.c> +const int syscalltbl_native_max_id = SYSCALLTBL_RISCV_MAX_ID; +static const char *const *syscalltbl_native = syscalltbl_riscv; #endif struct syscall { |