diff options
| author | Ian Rogers <[email protected]> | 2025-03-19 05:07:30 +0000 |
|---|---|---|
| committer | Namhyung Kim <[email protected]> | 2025-03-21 05:57:35 +0000 |
| commit | af472d3c4454c720300c2e0c4e87c8a7ca2a3012 (patch) | |
| tree | f13949a90a9e81b5db51720d86a81cfef15f3f94 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | perf dso: kernel-doc for enum dso_binary_type (diff) | |
| download | kernel-af472d3c4454c720300c2e0c4e87c8a7ca2a3012.tar.gz kernel-af472d3c4454c720300c2e0c4e87c8a7ca2a3012.zip | |
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 <[email protected]>
Reviewed-by: Howard Chu <[email protected]>
Reviewed-by: Charlie Jenkins <[email protected]>
Reviewed-by: Namhyung Kim <[email protected]>
Acked-by: Arnaldo Carvalho de Melo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions
