diff options
| author | Namhyung Kim <namhyung@kernel.org> | 2024-11-03 23:16:30 -0800 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2024-11-03 23:18:20 -0800 |
| commit | aa5c90601b531323f82ceb02b41a66974153b76f (patch) | |
| tree | 80ca2bed534b3b356bffa60eab11980c3f9a3400 /tools/perf/util/syscalltbl.c | |
| parent | perf test: Use sqrtloop workload to test bperf event (diff) | |
| parent | Linux 6.12-rc6 (diff) | |
| download | linux-aa5c90601b531323f82ceb02b41a66974153b76f.tar.gz linux-aa5c90601b531323f82ceb02b41a66974153b76f.zip | |
Merge 'origin/master' into perf-tools-next
To get the fixes in the perf-tools branch. Resolved a conflict due to
RISC-V's syscall table change.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/util/syscalltbl.c')
| -rw-r--r-- | tools/perf/util/syscalltbl.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/perf/util/syscalltbl.c b/tools/perf/util/syscalltbl.c index 349986f6e5f5..69d8dcf5cf28 100644 --- a/tools/perf/util/syscalltbl.c +++ b/tools/perf/util/syscalltbl.c @@ -50,6 +50,11 @@ static const char *const *syscalltbl_native = syscalltbl_loongarch; #include <asm/syscalls.c> const int syscalltbl_native_max_id = SYSCALLTBL_RISCV_MAX_ID; static const char *const *syscalltbl_native = syscalltbl_riscv; +#else +const int syscalltbl_native_max_id = 0; +static const char *const syscalltbl_native[] = { + [0] = "unknown", +}; #endif struct syscall { @@ -186,6 +191,11 @@ int syscalltbl__id(struct syscalltbl *tbl, const char *name) return audit_name_to_syscall(name, tbl->audit_machine); } +int syscalltbl__id_at_idx(struct syscalltbl *tbl __maybe_unused, int idx) +{ + return idx; +} + int syscalltbl__strglobmatch_next(struct syscalltbl *tbl __maybe_unused, const char *syscall_glob __maybe_unused, int *idx __maybe_unused) { |
