Skip to content

Commit af472d3

Browse files
captain5050namhyung
authored andcommitted
perf syscalltbl: Remove syscall_table.h
The definition of "static const char *const syscalltbl[] = {" is done in a generated syscalls_32.h or syscalls_64.h that is architecture dependent. In order to include the appropriate file a syscall_table.h is found via the perf include path and it includes the syscalls_32.h or syscalls_64.h as appropriate. To support having multiple syscall tables, one for 32-bit and one for 64-bit, or for different architectures, an include path cannot be used. Remove syscall_table.h because of this and inline what it does into syscalltbl.c. For architectures without a syscall_table.h this will cause a failure to include either syscalls_32.h or syscalls_64.h rather than a failure to include syscall_table.h. For architectures that only included one or other, the behavior matches BITS_PER_LONG as previously done on architectures supporting both syscalls_32.h and syscalls_64.h. Signed-off-by: Ian Rogers <irogers@google.com> Reviewed-by: Howard Chu <howardchu95@gmail.com> Reviewed-by: Charlie Jenkins <charlie@rivosinc.com> Reviewed-by: Namhyung Kim <namhyung@kernel.org> Acked-by: Arnaldo Carvalho de Melo <acme@kernel.org> Link: https://lore.kernel.org/r/20250319050741.269828-4-irogers@google.com Signed-off-by: Namhyung Kim <namhyung@kernel.org>
1 parent 4773175 commit af472d3

16 files changed

Lines changed: 7 additions & 67 deletions

File tree

tools/perf/arch/alpha/include/syscall_table.h

Lines changed: 0 additions & 2 deletions
This file was deleted.

tools/perf/arch/arc/include/syscall_table.h

Lines changed: 0 additions & 2 deletions
This file was deleted.

tools/perf/arch/arm/include/syscall_table.h

Lines changed: 0 additions & 2 deletions
This file was deleted.

tools/perf/arch/arm64/include/syscall_table.h

Lines changed: 0 additions & 8 deletions
This file was deleted.

tools/perf/arch/csky/include/syscall_table.h

Lines changed: 0 additions & 2 deletions
This file was deleted.

tools/perf/arch/loongarch/include/syscall_table.h

Lines changed: 0 additions & 2 deletions
This file was deleted.

tools/perf/arch/mips/include/syscall_table.h

Lines changed: 0 additions & 2 deletions
This file was deleted.

tools/perf/arch/parisc/include/syscall_table.h

Lines changed: 0 additions & 8 deletions
This file was deleted.

tools/perf/arch/powerpc/include/syscall_table.h

Lines changed: 0 additions & 8 deletions
This file was deleted.

tools/perf/arch/riscv/include/syscall_table.h

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)