perf-tools changes for v6.14
There are a lot of changes in the perf tools in this cycle. build ----- * Use generic syscall table to generate syscall numbers on supported archs. * This also enables to get rid of libaudit which was used for syscall numbers. * Remove python2 support as it's deprecated for years. * Fix issues on static build with libzstd. perf record ----------- * Intel-PT supports "aux-action" config term to pause or resume tracing in the aux-buffer. Users can start the intel_pt event as "started-paused" and configure other events to control the Intel-PT tracing. # perf record --kcore -e intel_pt/aux-action=start-paused/ \ -e syscalls:sys_enter_newuname/aux-action=resume/ \ -e syscalls:sys_exit_newuname/aux-action=pause/ -- uname This requires the kernel support (which was added in v6.13). perf lock --------- * 'perf lock contention' command has an ability to symbolize locks in dynamically allocated objects using slab cache name when it runs with BPF. Those dynamic locks would have "&" prefix in the name to distinguish them from ordinary (static) locks. # perf lock con -abl -E 5 sleep 1 contended total wait max wait avg wait address symbol 2 1.95 us 1.77 us 975 ns ffff9d5e852d3498 &task_struct (mutex) 1 1.18 us 1.18 us 1.18 us ffff9d5e852d3538 &task_struct (mutex) 4 1.12 us 354 ns 279 ns ffff9d5e841ca800 &kmalloc-cg-512 (mutex) 2 859 ns 617 ns 429 ns ffffffffa41c3620 delayed_uprobe_lock (mutex) 3 691 ns 388 ns 230 ns ffffffffa41c0940 pack_mutex (mutex) This also requires the kernel/BPF support (which was added in v6.13). perf ftrace ----------- * 'perf ftrace latency' command gets a couple of options to support linear buckets instead of exponential. Also it's possible to specify max and min latency for the linear buckets. # perf ftrace latency -abn -T switch_mm_irqs_off --bucket-range=100 \ --min-latency=200 --max-latency=800 -- sleep 1 # DURATION | COUNT | GRAPH | 0 - 200 ns | 186 | ### | 200 - 300 ns | 256 | ##### | 300 - 400 ns | 364 | ####### | 400 - 500 ns | 223 | #### | 500 - 600 ns | 111 | ## | 600 - 700 ns | 41 | | 700 - 800 ns | 141 | ## | 800 - ... ns | 169 | ### | # statistics (in nsec) total time: 2162212 avg time: 967 max time: 16817 min time: 132 count: 2236 * As you can see in the above example, it nows shows the statistics at the end so that users can see the avg/max/min latencies easily. * 'perf ftrace profile' command has --graph-opts option like 'perf ftrace trace' so that it can control the tracing behaviors in the same way. For example, it can limit the function call depth or threshold. perf script ----------- * Improve physical memory resolution in 'mem-phys-addr' script by parsing /proc/iomem file. # perf script mem-phys-addr -- find / ... Event: mem_inst_retired.all_loads:P Memory type count percentage ---------------------------------------- ---------- ---------- 100000000-85f7fffff : System RAM 8929 69.7 547600000-54785d23f : Kernel data 1240 9.7 546a00000-5474bdfff : Kernel rodata 490 3.8 5480ce000-5485fffff : Kernel bss 121 0.9 0-fff : Reserved 3860 30.1 100000-89c01fff : System RAM 18 0.1 8a22c000-8df6efff : System RAM 5 0.0 Others ------ * 'perf test' gets --runs-per-test option to run the test cases repeatedly. This would be helpful to see if it's flaky. * Add 'parse_events' method to Python perf extension module, so that users can use the same event parsing logic in the python code. One more step towards implementing perf tools in Python. :) * Support opening tracepoint events without libtraceevent. This will be helpful if it won't use the tracing data like in 'perf stat'. * Update ARM Neoverse N2/V2 JSON events and metrics Signed-off-by: Namhyung Kim <namhyung@kernel.org> -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQSo2x5BnqMqsoHtzsmMstVUGiXMgwUCZ5AgiQAKCRCMstVUGiXM g0WhAP43Dpfatrm1jicTyAogk5D/JrIMOgjGtrJJi5RXG/r0gwD8DSWFzLppS9xy KGtjLHrN6v6BqR4DCubdlZmRfh9Qjgg= =M0Kz -----END PGP SIGNATURE----- Merge tag 'perf-tools-for-v6.14-2025-01-21' of git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools Pull perf-tools updates from Namhyung Kim: "There are a lot of changes in the perf tools in this cycle. build: - Use generic syscall table to generate syscall numbers on supported archs - This also enables to get rid of libaudit which was used for syscall numbers - Remove python2 support as it's deprecated for years - Fix issues on static build with libzstd perf record: - Intel-PT supports "aux-action" config term to pause or resume tracing in the aux-buffer. Users can start the intel_pt event as "started-paused" and configure other events to control the Intel-PT tracing: # perf record --kcore -e intel_pt/aux-action=start-paused/ \ -e syscalls:sys_enter_newuname/aux-action=resume/ \ -e syscalls:sys_exit_newuname/aux-action=pause/ -- uname This requires kernel support (which was added in v6.13) perf lock: - 'perf lock contention' command has an ability to symbolize locks in dynamically allocated objects using slab cache name when it runs with BPF. Those dynamic locks would have "&" prefix in the name to distinguish them from ordinary (static) locks # perf lock con -abl -E 5 sleep 1 contended total wait max wait avg wait address symbol 2 1.95 us 1.77 us 975 ns ffff9d5e852d3498 &task_struct (mutex) 1 1.18 us 1.18 us 1.18 us ffff9d5e852d3538 &task_struct (mutex) 4 1.12 us 354 ns 279 ns ffff9d5e841ca800 &kmalloc-cg-512 (mutex) 2 859 ns 617 ns 429 ns ffffffffa41c3620 delayed_uprobe_lock (mutex) 3 691 ns 388 ns 230 ns ffffffffa41c0940 pack_mutex (mutex) This also requires kernel/BPF support (which was added in v6.13) perf ftrace: - 'perf ftrace latency' command gets a couple of options to support linear buckets instead of exponential. Also it's possible to specify max and min latency for the linear buckets: # perf ftrace latency -abn -T switch_mm_irqs_off --bucket-range=100 \ --min-latency=200 --max-latency=800 -- sleep 1 # DURATION | COUNT | GRAPH | 0 - 200 ns | 186 | ### | 200 - 300 ns | 256 | ##### | 300 - 400 ns | 364 | ####### | 400 - 500 ns | 223 | #### | 500 - 600 ns | 111 | ## | 600 - 700 ns | 41 | | 700 - 800 ns | 141 | ## | 800 - ... ns | 169 | ### | # statistics (in nsec) total time: 2162212 avg time: 967 max time: 16817 min time: 132 count: 2236 - As you can see in the above example, it nows shows the statistics at the end so that users can see the avg/max/min latencies easily - 'perf ftrace profile' command has --graph-opts option like 'perf ftrace trace' so that it can control the tracing behaviors in the same way. For example, it can limit the function call depth or threshold perf script: - Improve physical memory resolution in 'mem-phys-addr' script by parsing /proc/iomem file # perf script mem-phys-addr -- find / ... Event: mem_inst_retired.all_loads:P Memory type count percentage ---------------------------------------- ---------- ---------- 100000000-85f7fffff : System RAM 8929 69.7 547600000-54785d23f : Kernel data 1240 9.7 546a00000-5474bdfff : Kernel rodata 490 3.8 5480ce000-5485fffff : Kernel bss 121 0.9 0-fff : Reserved 3860 30.1 100000-89c01fff : System RAM 18 0.1 8a22c000-8df6efff : System RAM 5 0.0 Others: - 'perf test' gets --runs-per-test option to run the test cases repeatedly. This would be helpful to see if it's flaky - Add 'parse_events' method to Python perf extension module, so that users can use the same event parsing logic in the python code. One more step towards implementing perf tools in Python. :) - Support opening tracepoint events without libtraceevent. This will be helpful if it won't use the tracing data like in 'perf stat' - Update ARM Neoverse N2/V2 JSON events and metrics" * tag 'perf-tools-for-v6.14-2025-01-21' of git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools: (176 commits) perf test: Update event_groups test to use instructions perf bench: Fix undefined behavior in cmpworker() perf annotate: Prefer passing evsel to evsel->core.idx perf lock: Rename fields in lock_type_table perf lock: Add percpu-rwsem for type filter perf lock: Fix parse_lock_type which only retrieve one lock flag perf lock: Fix return code for functions in __cmd_contention perf hist: Fix width calculation in hpp__fmt() perf hist: Fix bogus profiles when filters are enabled perf hist: Deduplicate cmp/sort/collapse code perf test: Improve verbose documentation perf test: Add a runs-per-test flag perf test: Fix parallel/sequential option documentation perf test: Send list output to stdout rather than stderr perf test: Rename functions and variables for better clarity perf tools: Expose quiet/verbose variables in Makefile.perf perf config: Add a function to set one variable in .perfconfig perf test perftool_testsuite: Return correct value for skipping perf test perftool_testsuite: Add missing description perf test record+probe_libc_inet_pton: Make test resilient ...
This commit is contained in:
commit
7685b334d1
293 changed files with 11045 additions and 2977 deletions
24
Documentation/ABI/testing/sysfs-bus-event_source-devices
Normal file
24
Documentation/ABI/testing/sysfs-bus-event_source-devices
Normal file
|
@ -0,0 +1,24 @@
|
|||
What: /sys/bus/event_source/devices/<pmu>
|
||||
Date: 2014/02/24
|
||||
Contact: Linux kernel mailing list <linux-kernel@vger.kernel.org>
|
||||
Description: Performance Monitoring Unit (<pmu>)
|
||||
|
||||
Each <pmu> directory, for a PMU device, is a name
|
||||
optionally followed by an underscore and then either a
|
||||
decimal or hexadecimal number. For example, cpu is a
|
||||
PMU name without a suffix as is intel_bts,
|
||||
uncore_imc_0 is a PMU name with a 0 numeric suffix,
|
||||
ddr_pmu_87e1b0000000 is a PMU name with a hex
|
||||
suffix. The hex suffix must be more than two
|
||||
characters long to avoid ambiguity with PMUs like the
|
||||
S390 cpum_cf.
|
||||
|
||||
Tools can treat PMUs with the same name that differ by
|
||||
suffix as instances of the same PMU for the sake of,
|
||||
for example, opening an event. For example, the PMUs
|
||||
uncore_imc_free_running_0 and
|
||||
uncore_imc_free_running_1 have an event data_read;
|
||||
opening the data_read event on a PMU specified as
|
||||
uncore_imc_free_running should be treated as opening
|
||||
the data_read event on PMU uncore_imc_free_running_0
|
||||
and PMU uncore_imc_free_running_1.
|
|
@ -37,11 +37,13 @@ Description: Per-pmu performance monitoring events specific to the running syste
|
|||
performance monitoring event supported by the <pmu>. The name
|
||||
of the file is the name of the event.
|
||||
|
||||
As performance monitoring event names are case
|
||||
insensitive in the perf tool, the perf tool only looks
|
||||
for lower or upper case event names in sysfs to avoid
|
||||
As performance monitoring event names are case insensitive
|
||||
in the perf tool, the perf tool only looks for all lower
|
||||
case or all upper case event names in sysfs to avoid
|
||||
scanning the directory. It is therefore required the
|
||||
name of the event here is either lower or upper case.
|
||||
name of the event here is either completely lower or upper
|
||||
case, with no mixed-case characters. Numbers, '.', '_', and
|
||||
'-' are also allowed.
|
||||
|
||||
File contents:
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@ scripts/ver_linux is a good way to check if your system already has
|
|||
the necessary tools::
|
||||
|
||||
sudo apt-get build-essentials flex bison yacc
|
||||
sudo apt install libelf-dev systemtap-sdt-dev libaudit-dev libslang2-dev libperl-dev libdw-dev
|
||||
sudo apt install libelf-dev systemtap-sdt-dev libslang2-dev libperl-dev libdw-dev
|
||||
|
||||
cscope is a good tool to browse kernel sources. Let's install it now::
|
||||
|
||||
|
|
|
@ -106,6 +106,7 @@ FEATURE_TESTS += libbfd-liberty
|
|||
FEATURE_TESTS += libbfd-liberty-z
|
||||
FEATURE_TESTS += disassembler-four-args
|
||||
FEATURE_TESTS += disassembler-init-styled
|
||||
FEATURE_TESTS += libelf-zstd
|
||||
|
||||
FEATURE_DISPLAY := clang-bpf-co-re
|
||||
FEATURE_DISPLAY += llvm
|
||||
|
@ -132,6 +133,12 @@ endif
|
|||
|
||||
LIBS = $(LIBBPF) -lelf -lz
|
||||
LIBS_BOOTSTRAP = $(LIBBPF_BOOTSTRAP) -lelf -lz
|
||||
|
||||
ifeq ($(feature-libelf-zstd),1)
|
||||
LIBS += -lzstd
|
||||
LIBS_BOOTSTRAP += -lzstd
|
||||
endif
|
||||
|
||||
ifeq ($(feature-libcap), 1)
|
||||
CFLAGS += -DUSE_LIBCAP
|
||||
LIBS += -lcap
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
comma := ,
|
||||
squote := '
|
||||
pound := \#
|
||||
empty :=
|
||||
space := $(empty) $(empty)
|
||||
|
||||
###
|
||||
# Name of target with a '.' as filename prefix. foo/bar.o => foo/.bar.o
|
||||
|
|
|
@ -12,26 +12,6 @@
|
|||
PHONY := __build
|
||||
__build:
|
||||
|
||||
ifeq ($(V),1)
|
||||
quiet =
|
||||
Q =
|
||||
else
|
||||
quiet=quiet_
|
||||
Q=@
|
||||
endif
|
||||
|
||||
# If the user is running make -s (silent mode), suppress echoing of commands
|
||||
# make-4.0 (and later) keep single letter options in the 1st word of MAKEFLAGS.
|
||||
ifeq ($(filter 3.%,$(MAKE_VERSION)),)
|
||||
short-opts := $(firstword -$(MAKEFLAGS))
|
||||
else
|
||||
short-opts := $(filter-out --%,$(MAKEFLAGS))
|
||||
endif
|
||||
|
||||
ifneq ($(findstring s,$(short-opts)),)
|
||||
quiet=silent_
|
||||
endif
|
||||
|
||||
build-dir := $(srctree)/tools/build
|
||||
|
||||
# Define $(fixdep) for dep-cmd function
|
||||
|
|
|
@ -28,6 +28,41 @@ endef
|
|||
# the rule that uses them - an example for that is the 'bionic'
|
||||
# feature check. ]
|
||||
#
|
||||
# These + the ones in FEATURE_TESTS_EXTRA are included in
|
||||
# tools/build/feature/test-all.c and we try to build it all together
|
||||
# then setting all those features to '1' meaning they are all enabled.
|
||||
#
|
||||
# There are things like fortify-source that will be set to 1 because test-all
|
||||
# is built with the flags needed to test if its enabled, resulting in
|
||||
#
|
||||
# $ rm -rf /tmp/b ; mkdir /tmp/b ; make -C tools/perf O=/tmp/b feature-dump
|
||||
# $ grep fortify-source /tmp/b/FEATURE-DUMP
|
||||
# feature-fortify-source=1
|
||||
# $
|
||||
#
|
||||
# All the others should have lines in tools/build/feature/test-all.c like:
|
||||
#
|
||||
# #define main main_test_disassembler_init_styled
|
||||
# # include "test-disassembler-init-styled.c"
|
||||
# #undef main
|
||||
#
|
||||
# #define main main_test_libzstd
|
||||
# # include "test-libzstd.c"
|
||||
# #undef main
|
||||
#
|
||||
# int main(int argc, char *argv[])
|
||||
# {
|
||||
# main_test_disassembler_four_args();
|
||||
# main_test_libzstd();
|
||||
# return 0;
|
||||
# }
|
||||
#
|
||||
# If the sample above works, then we end up with these lines in the FEATURE-DUMP
|
||||
# file:
|
||||
#
|
||||
# feature-disassembler-four-args=1
|
||||
# feature-libzstd=1
|
||||
#
|
||||
FEATURE_TESTS_BASIC := \
|
||||
backtrace \
|
||||
libdw \
|
||||
|
@ -38,17 +73,16 @@ FEATURE_TESTS_BASIC := \
|
|||
glibc \
|
||||
libbfd \
|
||||
libbfd-buildid \
|
||||
libcap \
|
||||
libelf \
|
||||
libelf-getphdrnum \
|
||||
libelf-gelf_getnote \
|
||||
libelf-getshdrstrndx \
|
||||
libelf-zstd \
|
||||
libnuma \
|
||||
numa_num_possible_cpus \
|
||||
libperl \
|
||||
libpython \
|
||||
libslang \
|
||||
libslang-include-subdir \
|
||||
libtraceevent \
|
||||
libtracefs \
|
||||
libcpupower \
|
||||
|
@ -89,13 +123,6 @@ FEATURE_TESTS_EXTRA := \
|
|||
libbfd-liberty \
|
||||
libbfd-liberty-z \
|
||||
libopencsd \
|
||||
libunwind-x86 \
|
||||
libunwind-x86_64 \
|
||||
libunwind-arm \
|
||||
libunwind-aarch64 \
|
||||
libunwind-debug-frame \
|
||||
libunwind-debug-frame-arm \
|
||||
libunwind-debug-frame-aarch64 \
|
||||
cxx \
|
||||
llvm \
|
||||
clang \
|
||||
|
@ -122,7 +149,6 @@ FEATURE_DISPLAY ?= \
|
|||
glibc \
|
||||
libbfd \
|
||||
libbfd-buildid \
|
||||
libcap \
|
||||
libelf \
|
||||
libnuma \
|
||||
numa_num_possible_cpus \
|
||||
|
|
|
@ -13,7 +13,6 @@ FILES= \
|
|||
test-gtk2.bin \
|
||||
test-gtk2-infobar.bin \
|
||||
test-hello.bin \
|
||||
test-libaudit.bin \
|
||||
test-libbfd.bin \
|
||||
test-libbfd-buildid.bin \
|
||||
test-disassembler-four-args.bin \
|
||||
|
@ -28,6 +27,7 @@ FILES= \
|
|||
test-libelf-getphdrnum.bin \
|
||||
test-libelf-gelf_getnote.bin \
|
||||
test-libelf-getshdrstrndx.bin \
|
||||
test-libelf-zstd.bin \
|
||||
test-libdebuginfod.bin \
|
||||
test-libnuma.bin \
|
||||
test-numa_num_possible_cpus.bin \
|
||||
|
@ -110,7 +110,7 @@ all: $(FILES)
|
|||
__BUILD = $(CC) $(CFLAGS) -MD -Wall -Werror -o $@ $(patsubst %.bin,%.c,$(@F)) $(LDFLAGS)
|
||||
BUILD = $(__BUILD) > $(@:.bin=.make.output) 2>&1
|
||||
BUILD_BFD = $(BUILD) -DPACKAGE='"perf"' -lbfd -ldl
|
||||
BUILD_ALL = $(BUILD) -fstack-protector-all -O2 -D_FORTIFY_SOURCE=2 -ldw -lelf -lnuma -lelf -lslang $(FLAGS_PERL_EMBED) $(FLAGS_PYTHON_EMBED) -DPACKAGE='"perf"' -lbfd -ldl -lz -llzma -lzstd -lcap
|
||||
BUILD_ALL = $(BUILD) -fstack-protector-all -O2 -D_FORTIFY_SOURCE=2 -ldw -lelf -lnuma -lelf -lslang $(FLAGS_PERL_EMBED) $(FLAGS_PYTHON_EMBED) -DPACKAGE='"perf"' -lbfd -ldl -lz -llzma -lzstd
|
||||
|
||||
__BUILDXX = $(CXX) $(CXXFLAGS) -MD -Wall -Werror -o $@ $(patsubst %.bin,%.cpp,$(@F)) $(LDFLAGS)
|
||||
BUILDXX = $(__BUILDXX) > $(@:.bin=.make.output) 2>&1
|
||||
|
@ -196,6 +196,9 @@ $(OUTPUT)test-libelf-gelf_getnote.bin:
|
|||
$(OUTPUT)test-libelf-getshdrstrndx.bin:
|
||||
$(BUILD) -lelf
|
||||
|
||||
$(OUTPUT)test-libelf-zstd.bin:
|
||||
$(BUILD) -lelf -lz -lzstd
|
||||
|
||||
$(OUTPUT)test-libdebuginfod.bin:
|
||||
$(BUILD) -ldebuginfod
|
||||
|
||||
|
@ -228,9 +231,6 @@ $(OUTPUT)test-libunwind-debug-frame-arm.bin:
|
|||
$(OUTPUT)test-libunwind-debug-frame-aarch64.bin:
|
||||
$(BUILD) -lelf -llzma -lunwind-aarch64
|
||||
|
||||
$(OUTPUT)test-libaudit.bin:
|
||||
$(BUILD) -laudit
|
||||
|
||||
$(OUTPUT)test-libslang.bin:
|
||||
$(BUILD) -lslang
|
||||
|
||||
|
|
|
@ -58,8 +58,8 @@
|
|||
# include "test-libelf-getshdrstrndx.c"
|
||||
#undef main
|
||||
|
||||
#define main main_test_libunwind
|
||||
# include "test-libunwind.c"
|
||||
#define main main_test_libelf_zstd
|
||||
# include "test-libelf-zstd.c"
|
||||
#undef main
|
||||
|
||||
#define main main_test_libslang
|
||||
|
@ -170,6 +170,14 @@
|
|||
# include "test-libzstd.c"
|
||||
#undef main
|
||||
|
||||
#define main main_test_libtraceevent
|
||||
# include "test-libtraceevent.c"
|
||||
#undef main
|
||||
|
||||
#define main main_test_libtracefs
|
||||
# include "test-libtracefs.c"
|
||||
#undef main
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
main_test_libpython();
|
||||
|
@ -184,7 +192,6 @@ int main(int argc, char *argv[])
|
|||
main_test_libelf_getphdrnum();
|
||||
main_test_libelf_gelf_getnote();
|
||||
main_test_libelf_getshdrstrndx();
|
||||
main_test_libunwind();
|
||||
main_test_libslang();
|
||||
main_test_libbfd();
|
||||
main_test_libbfd_buildid();
|
||||
|
@ -208,6 +215,8 @@ int main(int argc, char *argv[])
|
|||
main_test_reallocarray();
|
||||
main_test_disassembler_four_args();
|
||||
main_test_libzstd();
|
||||
main_test_libtraceevent();
|
||||
main_test_libtracefs();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
#include <libaudit.h>
|
||||
|
||||
extern int printf(const char *format, ...);
|
||||
|
||||
int main(void)
|
||||
{
|
||||
printf("error message: %s\n", audit_errno_to_name(0));
|
||||
|
||||
return audit_open();
|
||||
}
|
9
tools/build/feature/test-libelf-zstd.c
Normal file
9
tools/build/feature/test-libelf-zstd.c
Normal file
|
@ -0,0 +1,9 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
#include <stddef.h>
|
||||
#include <libelf.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
elf_compress(NULL, ELFCOMPRESS_ZSTD, 0);
|
||||
return 0;
|
||||
}
|
|
@ -296,7 +296,7 @@ int filename__read_int(const char *filename, int *value)
|
|||
int fd = open(filename, O_RDONLY), err = -1;
|
||||
|
||||
if (fd < 0)
|
||||
return -1;
|
||||
return -errno;
|
||||
|
||||
if (read(fd, line, sizeof(line)) > 0) {
|
||||
*value = atoi(line);
|
||||
|
@ -314,7 +314,7 @@ static int filename__read_ull_base(const char *filename,
|
|||
int fd = open(filename, O_RDONLY), err = -1;
|
||||
|
||||
if (fd < 0)
|
||||
return -1;
|
||||
return -errno;
|
||||
|
||||
if (read(fd, line, sizeof(line)) > 0) {
|
||||
*value = strtoull(line, NULL, base);
|
||||
|
@ -372,7 +372,7 @@ int filename__write_int(const char *filename, int value)
|
|||
char buf[64];
|
||||
|
||||
if (fd < 0)
|
||||
return err;
|
||||
return -errno;
|
||||
|
||||
sprintf(buf, "%d", value);
|
||||
if (write(fd, buf, sizeof(buf)) == sizeof(buf))
|
||||
|
|
|
@ -39,7 +39,6 @@ SYNOPSIS
|
|||
|
||||
struct perf_cpu_map *perf_cpu_map__new_any_cpu(void);
|
||||
struct perf_cpu_map *perf_cpu_map__new(const char *cpu_list);
|
||||
struct perf_cpu_map *perf_cpu_map__read(FILE *file);
|
||||
struct perf_cpu_map *perf_cpu_map__get(struct perf_cpu_map *map);
|
||||
struct perf_cpu_map *perf_cpu_map__merge(struct perf_cpu_map *orig,
|
||||
struct perf_cpu_map *other);
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
#include <errno.h>
|
||||
#include <perf/cpumap.h>
|
||||
#include <stdlib.h>
|
||||
#include <linux/refcount.h>
|
||||
|
@ -10,6 +11,9 @@
|
|||
#include <ctype.h>
|
||||
#include <limits.h>
|
||||
#include "internal.h"
|
||||
#include <api/fs/fs.h>
|
||||
|
||||
#define MAX_NR_CPUS 4096
|
||||
|
||||
void perf_cpu_map__set_nr(struct perf_cpu_map *map, int nr_cpus)
|
||||
{
|
||||
|
@ -100,12 +104,12 @@ static struct perf_cpu_map *cpu_map__new_sysconf(void)
|
|||
static struct perf_cpu_map *cpu_map__new_sysfs_online(void)
|
||||
{
|
||||
struct perf_cpu_map *cpus = NULL;
|
||||
FILE *onlnf;
|
||||
char *buf = NULL;
|
||||
size_t buf_len;
|
||||
|
||||
onlnf = fopen("/sys/devices/system/cpu/online", "r");
|
||||
if (onlnf) {
|
||||
cpus = perf_cpu_map__read(onlnf);
|
||||
fclose(onlnf);
|
||||
if (sysfs__read_str("devices/system/cpu/online", &buf, &buf_len) >= 0) {
|
||||
cpus = perf_cpu_map__new(buf);
|
||||
free(buf);
|
||||
}
|
||||
return cpus;
|
||||
}
|
||||
|
@ -158,62 +162,6 @@ static struct perf_cpu_map *cpu_map__trim_new(int nr_cpus, const struct perf_cpu
|
|||
return cpus;
|
||||
}
|
||||
|
||||
struct perf_cpu_map *perf_cpu_map__read(FILE *file)
|
||||
{
|
||||
struct perf_cpu_map *cpus = NULL;
|
||||
int nr_cpus = 0;
|
||||
struct perf_cpu *tmp_cpus = NULL, *tmp;
|
||||
int max_entries = 0;
|
||||
int n, cpu, prev;
|
||||
char sep;
|
||||
|
||||
sep = 0;
|
||||
prev = -1;
|
||||
for (;;) {
|
||||
n = fscanf(file, "%u%c", &cpu, &sep);
|
||||
if (n <= 0)
|
||||
break;
|
||||
if (prev >= 0) {
|
||||
int new_max = nr_cpus + cpu - prev - 1;
|
||||
|
||||
WARN_ONCE(new_max >= MAX_NR_CPUS, "Perf can support %d CPUs. "
|
||||
"Consider raising MAX_NR_CPUS\n", MAX_NR_CPUS);
|
||||
|
||||
if (new_max >= max_entries) {
|
||||
max_entries = new_max + MAX_NR_CPUS / 2;
|
||||
tmp = realloc(tmp_cpus, max_entries * sizeof(struct perf_cpu));
|
||||
if (tmp == NULL)
|
||||
goto out_free_tmp;
|
||||
tmp_cpus = tmp;
|
||||
}
|
||||
|
||||
while (++prev < cpu)
|
||||
tmp_cpus[nr_cpus++].cpu = prev;
|
||||
}
|
||||
if (nr_cpus == max_entries) {
|
||||
max_entries += MAX_NR_CPUS;
|
||||
tmp = realloc(tmp_cpus, max_entries * sizeof(struct perf_cpu));
|
||||
if (tmp == NULL)
|
||||
goto out_free_tmp;
|
||||
tmp_cpus = tmp;
|
||||
}
|
||||
|
||||
tmp_cpus[nr_cpus++].cpu = cpu;
|
||||
if (n == 2 && sep == '-')
|
||||
prev = cpu;
|
||||
else
|
||||
prev = -1;
|
||||
if (n == 1 || sep == '\n')
|
||||
break;
|
||||
}
|
||||
|
||||
if (nr_cpus > 0)
|
||||
cpus = cpu_map__trim_new(nr_cpus, tmp_cpus);
|
||||
out_free_tmp:
|
||||
free(tmp_cpus);
|
||||
return cpus;
|
||||
}
|
||||
|
||||
struct perf_cpu_map *perf_cpu_map__new(const char *cpu_list)
|
||||
{
|
||||
struct perf_cpu_map *cpus = NULL;
|
||||
|
@ -238,7 +186,7 @@ struct perf_cpu_map *perf_cpu_map__new(const char *cpu_list)
|
|||
p = NULL;
|
||||
start_cpu = strtoul(cpu_list, &p, 0);
|
||||
if (start_cpu >= INT_MAX
|
||||
|| (*p != '\0' && *p != ',' && *p != '-'))
|
||||
|| (*p != '\0' && *p != ',' && *p != '-' && *p != '\n'))
|
||||
goto invalid;
|
||||
|
||||
if (*p == '-') {
|
||||
|
@ -246,7 +194,7 @@ struct perf_cpu_map *perf_cpu_map__new(const char *cpu_list)
|
|||
p = NULL;
|
||||
end_cpu = strtoul(cpu_list, &p, 0);
|
||||
|
||||
if (end_cpu >= INT_MAX || (*p != '\0' && *p != ','))
|
||||
if (end_cpu >= INT_MAX || (*p != '\0' && *p != ',' && *p != '\n'))
|
||||
goto invalid;
|
||||
|
||||
if (end_cpu < start_cpu)
|
||||
|
@ -265,7 +213,7 @@ struct perf_cpu_map *perf_cpu_map__new(const char *cpu_list)
|
|||
goto invalid;
|
||||
|
||||
if (nr_cpus == max_entries) {
|
||||
max_entries += MAX_NR_CPUS;
|
||||
max_entries += max(end_cpu - start_cpu + 1, 16UL);
|
||||
tmp = realloc(tmp_cpus, max_entries * sizeof(struct perf_cpu));
|
||||
if (tmp == NULL)
|
||||
goto invalid;
|
||||
|
@ -279,14 +227,15 @@ struct perf_cpu_map *perf_cpu_map__new(const char *cpu_list)
|
|||
cpu_list = p;
|
||||
}
|
||||
|
||||
if (nr_cpus > 0)
|
||||
if (nr_cpus > 0) {
|
||||
cpus = cpu_map__trim_new(nr_cpus, tmp_cpus);
|
||||
else if (*cpu_list != '\0') {
|
||||
} else if (*cpu_list != '\0') {
|
||||
pr_warning("Unexpected characters at end of cpu list ('%s'), using online CPUs.",
|
||||
cpu_list);
|
||||
cpus = perf_cpu_map__new_online_cpus();
|
||||
} else
|
||||
} else {
|
||||
cpus = perf_cpu_map__new_any_cpu();
|
||||
}
|
||||
invalid:
|
||||
free(tmp_cpus);
|
||||
out:
|
||||
|
@ -436,46 +385,49 @@ bool perf_cpu_map__is_subset(const struct perf_cpu_map *a, const struct perf_cpu
|
|||
}
|
||||
|
||||
/*
|
||||
* Merge two cpumaps
|
||||
* Merge two cpumaps.
|
||||
*
|
||||
* orig either gets freed and replaced with a new map, or reused
|
||||
* with no reference count change (similar to "realloc")
|
||||
* other has its reference count increased.
|
||||
* If 'other' is subset of '*orig', '*orig' keeps itself with no reference count
|
||||
* change (similar to "realloc").
|
||||
*
|
||||
* If '*orig' is subset of 'other', '*orig' reuses 'other' with its reference
|
||||
* count increased.
|
||||
*
|
||||
* Otherwise, '*orig' gets freed and replaced with a new map.
|
||||
*/
|
||||
|
||||
struct perf_cpu_map *perf_cpu_map__merge(struct perf_cpu_map *orig,
|
||||
struct perf_cpu_map *other)
|
||||
int perf_cpu_map__merge(struct perf_cpu_map **orig, struct perf_cpu_map *other)
|
||||
{
|
||||
struct perf_cpu *tmp_cpus;
|
||||
int tmp_len;
|
||||
int i, j, k;
|
||||
struct perf_cpu_map *merged;
|
||||
|
||||
if (perf_cpu_map__is_subset(orig, other))
|
||||
return orig;
|
||||
if (perf_cpu_map__is_subset(other, orig)) {
|
||||
perf_cpu_map__put(orig);
|
||||
return perf_cpu_map__get(other);
|
||||
if (perf_cpu_map__is_subset(*orig, other))
|
||||
return 0;
|
||||
if (perf_cpu_map__is_subset(other, *orig)) {
|
||||
perf_cpu_map__put(*orig);
|
||||
*orig = perf_cpu_map__get(other);
|
||||
return 0;
|
||||
}
|
||||
|
||||
tmp_len = __perf_cpu_map__nr(orig) + __perf_cpu_map__nr(other);
|
||||
tmp_len = __perf_cpu_map__nr(*orig) + __perf_cpu_map__nr(other);
|
||||
tmp_cpus = malloc(tmp_len * sizeof(struct perf_cpu));
|
||||
if (!tmp_cpus)
|
||||
return NULL;
|
||||
return -ENOMEM;
|
||||
|
||||
/* Standard merge algorithm from wikipedia */
|
||||
i = j = k = 0;
|
||||
while (i < __perf_cpu_map__nr(orig) && j < __perf_cpu_map__nr(other)) {
|
||||
if (__perf_cpu_map__cpu(orig, i).cpu <= __perf_cpu_map__cpu(other, j).cpu) {
|
||||
if (__perf_cpu_map__cpu(orig, i).cpu == __perf_cpu_map__cpu(other, j).cpu)
|
||||
while (i < __perf_cpu_map__nr(*orig) && j < __perf_cpu_map__nr(other)) {
|
||||
if (__perf_cpu_map__cpu(*orig, i).cpu <= __perf_cpu_map__cpu(other, j).cpu) {
|
||||
if (__perf_cpu_map__cpu(*orig, i).cpu == __perf_cpu_map__cpu(other, j).cpu)
|
||||
j++;
|
||||
tmp_cpus[k++] = __perf_cpu_map__cpu(orig, i++);
|
||||
tmp_cpus[k++] = __perf_cpu_map__cpu(*orig, i++);
|
||||
} else
|
||||
tmp_cpus[k++] = __perf_cpu_map__cpu(other, j++);
|
||||
}
|
||||
|
||||
while (i < __perf_cpu_map__nr(orig))
|
||||
tmp_cpus[k++] = __perf_cpu_map__cpu(orig, i++);
|
||||
while (i < __perf_cpu_map__nr(*orig))
|
||||
tmp_cpus[k++] = __perf_cpu_map__cpu(*orig, i++);
|
||||
|
||||
while (j < __perf_cpu_map__nr(other))
|
||||
tmp_cpus[k++] = __perf_cpu_map__cpu(other, j++);
|
||||
|
@ -483,8 +435,9 @@ struct perf_cpu_map *perf_cpu_map__merge(struct perf_cpu_map *orig,
|
|||
|
||||
merged = cpu_map__trim_new(k, tmp_cpus);
|
||||
free(tmp_cpus);
|
||||
perf_cpu_map__put(orig);
|
||||
return merged;
|
||||
perf_cpu_map__put(*orig);
|
||||
*orig = merged;
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct perf_cpu_map *perf_cpu_map__intersect(struct perf_cpu_map *orig,
|
||||
|
|
|
@ -89,7 +89,7 @@ static void __perf_evlist__propagate_maps(struct perf_evlist *evlist,
|
|||
evsel->threads = perf_thread_map__get(evlist->threads);
|
||||
}
|
||||
|
||||
evlist->all_cpus = perf_cpu_map__merge(evlist->all_cpus, evsel->cpus);
|
||||
perf_cpu_map__merge(&evlist->all_cpus, evsel->cpus);
|
||||
}
|
||||
|
||||
static void perf_evlist__propagate_maps(struct perf_evlist *evlist)
|
||||
|
|
|
@ -21,10 +21,6 @@ DECLARE_RC_STRUCT(perf_cpu_map) {
|
|||
struct perf_cpu map[];
|
||||
};
|
||||
|
||||
#ifndef MAX_NR_CPUS
|
||||
#define MAX_NR_CPUS 2048
|
||||
#endif
|
||||
|
||||
struct perf_cpu_map *perf_cpu_map__alloc(int nr_cpus);
|
||||
int perf_cpu_map__idx(const struct perf_cpu_map *cpus, struct perf_cpu cpu);
|
||||
bool perf_cpu_map__is_subset(const struct perf_cpu_map *a, const struct perf_cpu_map *b);
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#define __LIBPERF_CPUMAP_H
|
||||
|
||||
#include <perf/core.h>
|
||||
#include <stdio.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
/** A wrapper around a CPU to avoid confusion with the perf_cpu_map's map's indices. */
|
||||
|
@ -37,10 +36,9 @@ LIBPERF_API struct perf_cpu_map *perf_cpu_map__new_online_cpus(void);
|
|||
* perf_cpu_map__new_online_cpus is returned.
|
||||
*/
|
||||
LIBPERF_API struct perf_cpu_map *perf_cpu_map__new(const char *cpu_list);
|
||||
LIBPERF_API struct perf_cpu_map *perf_cpu_map__read(FILE *file);
|
||||
LIBPERF_API struct perf_cpu_map *perf_cpu_map__get(struct perf_cpu_map *map);
|
||||
LIBPERF_API struct perf_cpu_map *perf_cpu_map__merge(struct perf_cpu_map *orig,
|
||||
struct perf_cpu_map *other);
|
||||
LIBPERF_API int perf_cpu_map__merge(struct perf_cpu_map **orig,
|
||||
struct perf_cpu_map *other);
|
||||
LIBPERF_API struct perf_cpu_map *perf_cpu_map__intersect(struct perf_cpu_map *orig,
|
||||
struct perf_cpu_map *other);
|
||||
LIBPERF_API void perf_cpu_map__put(struct perf_cpu_map *map);
|
||||
|
|
|
@ -6,7 +6,6 @@ LIBPERF_0.0.1 {
|
|||
perf_cpu_map__get;
|
||||
perf_cpu_map__put;
|
||||
perf_cpu_map__new;
|
||||
perf_cpu_map__read;
|
||||
perf_cpu_map__nr;
|
||||
perf_cpu_map__cpu;
|
||||
perf_cpu_map__has_any_cpu_or_is_empty;
|
||||
|
|
|
@ -51,7 +51,6 @@ feature::
|
|||
dwarf_getlocations / HAVE_LIBDW_SUPPORT
|
||||
dwarf-unwind / HAVE_DWARF_UNWIND_SUPPORT
|
||||
auxtrace / HAVE_AUXTRACE_SUPPORT
|
||||
libaudit / HAVE_LIBAUDIT_SUPPORT
|
||||
libbfd / HAVE_LIBBFD_SUPPORT
|
||||
libcapstone / HAVE_LIBCAPSTONE_SUPPORT
|
||||
libcrypto / HAVE_LIBCRYPTO_SUPPORT
|
||||
|
@ -67,7 +66,6 @@ feature::
|
|||
libunwind / HAVE_LIBUNWIND_SUPPORT
|
||||
lzma / HAVE_LZMA_SUPPORT
|
||||
numa_num_possible_cpus / HAVE_LIBNUMA_SUPPORT
|
||||
syscall_table / HAVE_SYSCALL_TABLE_SUPPORT
|
||||
zlib / HAVE_ZLIB_SUPPORT
|
||||
zstd / HAVE_ZSTD_SUPPORT
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ The '$HOME/.perfconfig' file is used to store a per-user configuration.
|
|||
The file '$(sysconfdir)/perfconfig' can be used to
|
||||
store a system-wide default configuration.
|
||||
|
||||
One an disable reading config files by setting the PERF_CONFIG environment
|
||||
One can disable reading config files by setting the PERF_CONFIG environment
|
||||
variable to /dev/null, or provide an alternate config file by setting that
|
||||
variable.
|
||||
|
||||
|
|
|
@ -148,6 +148,17 @@ OPTIONS for 'perf ftrace latency'
|
|||
--use-nsec::
|
||||
Use nano-second instead of micro-second as a base unit of the histogram.
|
||||
|
||||
--bucket-range=::
|
||||
Bucket range in ms or ns (according to -n/--use-nsec), default is log2() mode.
|
||||
|
||||
--min-latency=::
|
||||
Minimum latency for the start of the first bucket, in ms or ns (according to
|
||||
-n/--use-nsec).
|
||||
|
||||
--max-latency=::
|
||||
Maximum latency for the start of the last bucket, in ms or ns (according to
|
||||
-n/--use-nsec). The setting is ignored if the value results in more than
|
||||
22 buckets.
|
||||
|
||||
OPTIONS for 'perf ftrace profile'
|
||||
---------------------------------
|
||||
|
@ -190,6 +201,14 @@ OPTIONS for 'perf ftrace profile'
|
|||
Sort the result by the given field. Available values are:
|
||||
total, avg, max, count, name. Default is 'total'.
|
||||
|
||||
--graph-opts::
|
||||
List of options allowed to set:
|
||||
|
||||
- nosleep-time - Measure on-CPU time only for function_graph tracer.
|
||||
- noirqs - Ignore functions that happen inside interrupt.
|
||||
- thresh=<n> - Setup trace duration threshold in microseconds.
|
||||
- depth=<n> - Set max depth for function graph tracer to follow.
|
||||
|
||||
|
||||
SEE ALSO
|
||||
--------
|
||||
|
|
|
@ -151,7 +151,7 @@ displayed as follows:
|
|||
There are two ways that instructions-per-cycle (IPC) can be calculated depending
|
||||
on the recording.
|
||||
|
||||
If the 'cyc' config term (see config terms section below) was used, then IPC
|
||||
If the 'cyc' config term (see <<_config_terms,config terms>> section below) was used, then IPC
|
||||
and cycle events are calculated using the cycle count from CYC packets, otherwise
|
||||
MTC packets are used - refer to the 'mtc' config term. When MTC is used, however,
|
||||
the values are less accurate because the timing is less accurate.
|
||||
|
@ -239,7 +239,7 @@ which is the same as
|
|||
|
||||
-e intel_pt/tsc=1,noretcomp=0/
|
||||
|
||||
Note there are now new config terms - see section 'config terms' further below.
|
||||
Note there are other config terms - see section <<_config_terms,config terms>> further below.
|
||||
|
||||
The config terms are listed in /sys/devices/intel_pt/format. They are bit
|
||||
fields within the config member of the struct perf_event_attr which is
|
||||
|
@ -311,218 +311,271 @@ perf_event_attr is displayed if the -vv option is used e.g.
|
|||
config terms
|
||||
~~~~~~~~~~~~
|
||||
|
||||
The June 2015 version of Intel 64 and IA-32 Architectures Software Developer
|
||||
Manuals, Chapter 36 Intel Processor Trace, defined new Intel PT features.
|
||||
Some of the features are reflect in new config terms. All the config terms are
|
||||
described below.
|
||||
|
||||
tsc Always supported. Produces TSC timestamp packets to provide
|
||||
timing information. In some cases it is possible to decode
|
||||
without timing information, for example a per-thread context
|
||||
that does not overlap executable memory maps.
|
||||
|
||||
The default config selects tsc (i.e. tsc=1).
|
||||
|
||||
noretcomp Always supported. Disables "return compression" so a TIP packet
|
||||
is produced when a function returns. Causes more packets to be
|
||||
produced but might make decoding more reliable.
|
||||
|
||||
The default config does not select noretcomp (i.e. noretcomp=0).
|
||||
|
||||
psb_period Allows the frequency of PSB packets to be specified.
|
||||
|
||||
The PSB packet is a synchronization packet that provides a
|
||||
starting point for decoding or recovery from errors.
|
||||
|
||||
Support for psb_period is indicated by:
|
||||
|
||||
/sys/bus/event_source/devices/intel_pt/caps/psb_cyc
|
||||
|
||||
which contains "1" if the feature is supported and "0"
|
||||
otherwise.
|
||||
|
||||
Valid values are given by:
|
||||
|
||||
/sys/bus/event_source/devices/intel_pt/caps/psb_periods
|
||||
|
||||
which contains a hexadecimal value, the bits of which represent
|
||||
valid values e.g. bit 2 set means value 2 is valid.
|
||||
|
||||
The psb_period value is converted to the approximate number of
|
||||
trace bytes between PSB packets as:
|
||||
|
||||
2 ^ (value + 11)
|
||||
|
||||
e.g. value 3 means 16KiB bytes between PSBs
|
||||
|
||||
If an invalid value is entered, the error message
|
||||
will give a list of valid values e.g.
|
||||
|
||||
$ perf record -e intel_pt/psb_period=15/u uname
|
||||
Invalid psb_period for intel_pt. Valid values are: 0-5
|
||||
|
||||
If MTC packets are selected, the default config selects a value
|
||||
of 3 (i.e. psb_period=3) or the nearest lower value that is
|
||||
supported (0 is always supported). Otherwise the default is 0.
|
||||
|
||||
If decoding is expected to be reliable and the buffer is large
|
||||
then a large PSB period can be used.
|
||||
|
||||
Because a TSC packet is produced with PSB, the PSB period can
|
||||
also affect the granularity to timing information in the absence
|
||||
of MTC or CYC.
|
||||
|
||||
mtc Produces MTC timing packets.
|
||||
|
||||
MTC packets provide finer grain timestamp information than TSC
|
||||
packets. MTC packets record time using the hardware crystal
|
||||
clock (CTC) which is related to TSC packets using a TMA packet.
|
||||
|
||||
Support for this feature is indicated by:
|
||||
|
||||
/sys/bus/event_source/devices/intel_pt/caps/mtc
|
||||
|
||||
which contains "1" if the feature is supported and
|
||||
"0" otherwise.
|
||||
|
||||
The frequency of MTC packets can also be specified - see
|
||||
mtc_period below.
|
||||
|
||||
mtc_period Specifies how frequently MTC packets are produced - see mtc
|
||||
above for how to determine if MTC packets are supported.
|
||||
|
||||
Valid values are given by:
|
||||
|
||||
/sys/bus/event_source/devices/intel_pt/caps/mtc_periods
|
||||
|
||||
which contains a hexadecimal value, the bits of which represent
|
||||
valid values e.g. bit 2 set means value 2 is valid.
|
||||
|
||||
The mtc_period value is converted to the MTC frequency as:
|
||||
|
||||
CTC-frequency / (2 ^ value)
|
||||
|
||||
e.g. value 3 means one eighth of CTC-frequency
|
||||
|
||||
Where CTC is the hardware crystal clock, the frequency of which
|
||||
can be related to TSC via values provided in cpuid leaf 0x15.
|
||||
|
||||
If an invalid value is entered, the error message
|
||||
will give a list of valid values e.g.
|
||||
|
||||
$ perf record -e intel_pt/mtc_period=15/u uname
|
||||
Invalid mtc_period for intel_pt. Valid values are: 0,3,6,9
|
||||
|
||||
The default value is 3 or the nearest lower value
|
||||
that is supported (0 is always supported).
|
||||
|
||||
cyc Produces CYC timing packets.
|
||||
|
||||
CYC packets provide even finer grain timestamp information than
|
||||
MTC and TSC packets. A CYC packet contains the number of CPU
|
||||
cycles since the last CYC packet. Unlike MTC and TSC packets,
|
||||
CYC packets are only sent when another packet is also sent.
|
||||
|
||||
Support for this feature is indicated by:
|
||||
|
||||
/sys/bus/event_source/devices/intel_pt/caps/psb_cyc
|
||||
|
||||
which contains "1" if the feature is supported and
|
||||
"0" otherwise.
|
||||
|
||||
The number of CYC packets produced can be reduced by specifying
|
||||
a threshold - see cyc_thresh below.
|
||||
|
||||
cyc_thresh Specifies how frequently CYC packets are produced - see cyc
|
||||
above for how to determine if CYC packets are supported.
|
||||
|
||||
Valid cyc_thresh values are given by:
|
||||
|
||||
/sys/bus/event_source/devices/intel_pt/caps/cycle_thresholds
|
||||
|
||||
which contains a hexadecimal value, the bits of which represent
|
||||
valid values e.g. bit 2 set means value 2 is valid.
|
||||
|
||||
The cyc_thresh value represents the minimum number of CPU cycles
|
||||
that must have passed before a CYC packet can be sent. The
|
||||
number of CPU cycles is:
|
||||
|
||||
2 ^ (value - 1)
|
||||
|
||||
e.g. value 4 means 8 CPU cycles must pass before a CYC packet
|
||||
can be sent. Note a CYC packet is still only sent when another
|
||||
packet is sent, not at, e.g. every 8 CPU cycles.
|
||||
|
||||
If an invalid value is entered, the error message
|
||||
will give a list of valid values e.g.
|
||||
|
||||
$ perf record -e intel_pt/cyc,cyc_thresh=15/u uname
|
||||
Invalid cyc_thresh for intel_pt. Valid values are: 0-12
|
||||
|
||||
CYC packets are not requested by default.
|
||||
|
||||
pt Specifies pass-through which enables the 'branch' config term.
|
||||
|
||||
The default config selects 'pt' if it is available, so a user will
|
||||
never need to specify this term.
|
||||
|
||||
branch Enable branch tracing. Branch tracing is enabled by default so to
|
||||
disable branch tracing use 'branch=0'.
|
||||
|
||||
The default config selects 'branch' if it is available.
|
||||
|
||||
ptw Enable PTWRITE packets which are produced when a ptwrite instruction
|
||||
is executed.
|
||||
|
||||
Support for this feature is indicated by:
|
||||
|
||||
/sys/bus/event_source/devices/intel_pt/caps/ptwrite
|
||||
|
||||
which contains "1" if the feature is supported and
|
||||
"0" otherwise.
|
||||
|
||||
As an alternative, refer to "Emulated PTWRITE" further below.
|
||||
|
||||
fup_on_ptw Enable a FUP packet to follow the PTWRITE packet. The FUP packet
|
||||
provides the address of the ptwrite instruction. In the absence of
|
||||
fup_on_ptw, the decoder will use the address of the previous branch
|
||||
if branch tracing is enabled, otherwise the address will be zero.
|
||||
Note that fup_on_ptw will work even when branch tracing is disabled.
|
||||
|
||||
pwr_evt Enable power events. The power events provide information about
|
||||
changes to the CPU C-state.
|
||||
|
||||
Support for this feature is indicated by:
|
||||
|
||||
/sys/bus/event_source/devices/intel_pt/caps/power_event_trace
|
||||
|
||||
which contains "1" if the feature is supported and
|
||||
"0" otherwise.
|
||||
|
||||
event Enable Event Trace. The events provide information about asynchronous
|
||||
events.
|
||||
|
||||
Support for this feature is indicated by:
|
||||
|
||||
/sys/bus/event_source/devices/intel_pt/caps/event_trace
|
||||
|
||||
which contains "1" if the feature is supported and
|
||||
"0" otherwise.
|
||||
|
||||
notnt Disable TNT packets. Without TNT packets, it is not possible to walk
|
||||
executable code to reconstruct control flow, however FUP, TIP, TIP.PGE
|
||||
and TIP.PGD packets still indicate asynchronous control flow, and (if
|
||||
return compression is disabled - see noretcomp) return statements.
|
||||
The advantage of eliminating TNT packets is reducing the size of the
|
||||
trace and corresponding tracing overhead.
|
||||
|
||||
Support for this feature is indicated by:
|
||||
|
||||
/sys/bus/event_source/devices/intel_pt/caps/tnt_disable
|
||||
|
||||
which contains "1" if the feature is supported and
|
||||
"0" otherwise.
|
||||
|
||||
Config terms are parameters specified with the -e intel_pt// event option,
|
||||
for example:
|
||||
|
||||
-e intel_pt/cyc/
|
||||
|
||||
which selects cycle accurate mode. Each config term can have a value which
|
||||
defaults to 1, so the above is the same as:
|
||||
|
||||
-e intel_pt/cyc=1/
|
||||
|
||||
Some terms are set by default, so must be set to 0 to turn them off. For
|
||||
example, to turn off branch tracing:
|
||||
|
||||
-e intel_pt/branch=0/
|
||||
|
||||
Multiple config terms are separated by commas, for example:
|
||||
|
||||
-e intel_pt/cyc,mtc_period=9/
|
||||
|
||||
There are also common config terms, see linkperf:perf-record[1] documentation.
|
||||
|
||||
Intel PT config terms are described below.
|
||||
|
||||
*tsc*::
|
||||
Always supported. Produces TSC timestamp packets to provide
|
||||
timing information. In some cases it is possible to decode
|
||||
without timing information, for example a per-thread context
|
||||
that does not overlap executable memory maps.
|
||||
+
|
||||
The default config selects tsc (i.e. tsc=1).
|
||||
|
||||
*noretcomp*::
|
||||
Always supported. Disables "return compression" so a TIP packet
|
||||
is produced when a function returns. Causes more packets to be
|
||||
produced but might make decoding more reliable.
|
||||
+
|
||||
The default config does not select noretcomp (i.e. noretcomp=0).
|
||||
|
||||
*psb_period*::
|
||||
Allows the frequency of PSB packets to be specified.
|
||||
+
|
||||
The PSB packet is a synchronization packet that provides a
|
||||
starting point for decoding or recovery from errors.
|
||||
+
|
||||
Support for psb_period is indicated by:
|
||||
+
|
||||
/sys/bus/event_source/devices/intel_pt/caps/psb_cyc
|
||||
+
|
||||
which contains "1" if the feature is supported and "0"
|
||||
otherwise.
|
||||
+
|
||||
Valid values are given by:
|
||||
+
|
||||
/sys/bus/event_source/devices/intel_pt/caps/psb_periods
|
||||
+
|
||||
which contains a hexadecimal value, the bits of which represent
|
||||
valid values e.g. bit 2 set means value 2 is valid.
|
||||
+
|
||||
The psb_period value is converted to the approximate number of
|
||||
trace bytes between PSB packets as:
|
||||
+
|
||||
2 ^ (value + 11)
|
||||
+
|
||||
e.g. value 3 means 16KiB bytes between PSBs
|
||||
+
|
||||
If an invalid value is entered, the error message
|
||||
will give a list of valid values e.g.
|
||||
+
|
||||
$ perf record -e intel_pt/psb_period=15/u uname
|
||||
Invalid psb_period for intel_pt. Valid values are: 0-5
|
||||
+
|
||||
If MTC packets are selected, the default config selects a value
|
||||
of 3 (i.e. psb_period=3) or the nearest lower value that is
|
||||
supported (0 is always supported). Otherwise the default is 0.
|
||||
+
|
||||
If decoding is expected to be reliable and the buffer is large
|
||||
then a large PSB period can be used.
|
||||
+
|
||||
Because a TSC packet is produced with PSB, the PSB period can
|
||||
also affect the granularity to timing information in the absence
|
||||
of MTC or CYC.
|
||||
|
||||
*mtc*::
|
||||
Produces MTC timing packets.
|
||||
+
|
||||
MTC packets provide finer grain timestamp information than TSC
|
||||
packets. MTC packets record time using the hardware crystal
|
||||
clock (CTC) which is related to TSC packets using a TMA packet.
|
||||
+
|
||||
Support for this feature is indicated by:
|
||||
+
|
||||
/sys/bus/event_source/devices/intel_pt/caps/mtc
|
||||
+
|
||||
which contains "1" if the feature is supported and
|
||||
"0" otherwise.
|
||||
+
|
||||
The frequency of MTC packets can also be specified - see
|
||||
mtc_period below.
|
||||
|
||||
*mtc_period*::
|
||||
Specifies how frequently MTC packets are produced - see mtc
|
||||
above for how to determine if MTC packets are supported.
|
||||
+
|
||||
Valid values are given by:
|
||||
+
|
||||
/sys/bus/event_source/devices/intel_pt/caps/mtc_periods
|
||||
+
|
||||
which contains a hexadecimal value, the bits of which represent
|
||||
valid values e.g. bit 2 set means value 2 is valid.
|
||||
+
|
||||
The mtc_period value is converted to the MTC frequency as:
|
||||
|
||||
CTC-frequency / (2 ^ value)
|
||||
+
|
||||
e.g. value 3 means one eighth of CTC-frequency
|
||||
+
|
||||
Where CTC is the hardware crystal clock, the frequency of which
|
||||
can be related to TSC via values provided in cpuid leaf 0x15.
|
||||
+
|
||||
If an invalid value is entered, the error message
|
||||
will give a list of valid values e.g.
|
||||
+
|
||||
$ perf record -e intel_pt/mtc_period=15/u uname
|
||||
Invalid mtc_period for intel_pt. Valid values are: 0,3,6,9
|
||||
+
|
||||
The default value is 3 or the nearest lower value
|
||||
that is supported (0 is always supported).
|
||||
|
||||
*cyc*::
|
||||
Produces CYC timing packets.
|
||||
+
|
||||
CYC packets provide even finer grain timestamp information than
|
||||
MTC and TSC packets. A CYC packet contains the number of CPU
|
||||
cycles since the last CYC packet. Unlike MTC and TSC packets,
|
||||
CYC packets are only sent when another packet is also sent.
|
||||
+
|
||||
Support for this feature is indicated by:
|
||||
+
|
||||
/sys/bus/event_source/devices/intel_pt/caps/psb_cyc
|
||||
+
|
||||
which contains "1" if the feature is supported and
|
||||
"0" otherwise.
|
||||
+
|
||||
The number of CYC packets produced can be reduced by specifying
|
||||
a threshold - see cyc_thresh below.
|
||||
|
||||
*cyc_thresh*::
|
||||
Specifies how frequently CYC packets are produced - see cyc
|
||||
above for how to determine if CYC packets are supported.
|
||||
+
|
||||
Valid cyc_thresh values are given by:
|
||||
+
|
||||
/sys/bus/event_source/devices/intel_pt/caps/cycle_thresholds
|
||||
+
|
||||
which contains a hexadecimal value, the bits of which represent
|
||||
valid values e.g. bit 2 set means value 2 is valid.
|
||||
+
|
||||
The cyc_thresh value represents the minimum number of CPU cycles
|
||||
that must have passed before a CYC packet can be sent. The
|
||||
number of CPU cycles is:
|
||||
+
|
||||
2 ^ (value - 1)
|
||||
+
|
||||
e.g. value 4 means 8 CPU cycles must pass before a CYC packet
|
||||
can be sent. Note a CYC packet is still only sent when another
|
||||
packet is sent, not at, e.g. every 8 CPU cycles.
|
||||
+
|
||||
If an invalid value is entered, the error message
|
||||
will give a list of valid values e.g.
|
||||
+
|
||||
$ perf record -e intel_pt/cyc,cyc_thresh=15/u uname
|
||||
Invalid cyc_thresh for intel_pt. Valid values are: 0-12
|
||||
+
|
||||
CYC packets are not requested by default.
|
||||
|
||||
*pt*::
|
||||
Specifies pass-through which enables the 'branch' config term.
|
||||
+
|
||||
The default config selects 'pt' if it is available, so a user will
|
||||
never need to specify this term.
|
||||
|
||||
*branch*::
|
||||
Enable branch tracing. Branch tracing is enabled by default so to
|
||||
disable branch tracing use 'branch=0'.
|
||||
+
|
||||
The default config selects 'branch' if it is available.
|
||||
|
||||
*ptw*::
|
||||
Enable PTWRITE packets which are produced when a ptwrite instruction
|
||||
is executed.
|
||||
+
|
||||
Support for this feature is indicated by:
|
||||
+
|
||||
/sys/bus/event_source/devices/intel_pt/caps/ptwrite
|
||||
+
|
||||
which contains "1" if the feature is supported and
|
||||
"0" otherwise.
|
||||
+
|
||||
As an alternative, refer to "Emulated PTWRITE" further below.
|
||||
|
||||
*fup_on_ptw*::
|
||||
Enable a FUP packet to follow the PTWRITE packet. The FUP packet
|
||||
provides the address of the ptwrite instruction. In the absence of
|
||||
fup_on_ptw, the decoder will use the address of the previous branch
|
||||
if branch tracing is enabled, otherwise the address will be zero.
|
||||
Note that fup_on_ptw will work even when branch tracing is disabled.
|
||||
|
||||
*pwr_evt*::
|
||||
Enable power events. The power events provide information about
|
||||
changes to the CPU C-state.
|
||||
+
|
||||
Support for this feature is indicated by:
|
||||
+
|
||||
/sys/bus/event_source/devices/intel_pt/caps/power_event_trace
|
||||
+
|
||||
which contains "1" if the feature is supported and
|
||||
"0" otherwise.
|
||||
|
||||
*event*::
|
||||
Enable Event Trace. The events provide information about asynchronous
|
||||
events.
|
||||
+
|
||||
Support for this feature is indicated by:
|
||||
+
|
||||
/sys/bus/event_source/devices/intel_pt/caps/event_trace
|
||||
+
|
||||
which contains "1" if the feature is supported and
|
||||
"0" otherwise.
|
||||
|
||||
*notnt*::
|
||||
Disable TNT packets. Without TNT packets, it is not possible to walk
|
||||
executable code to reconstruct control flow, however FUP, TIP, TIP.PGE
|
||||
and TIP.PGD packets still indicate asynchronous control flow, and (if
|
||||
return compression is disabled - see noretcomp) return statements.
|
||||
The advantage of eliminating TNT packets is reducing the size of the
|
||||
trace and corresponding tracing overhead.
|
||||
+
|
||||
Support for this feature is indicated by:
|
||||
+
|
||||
/sys/bus/event_source/devices/intel_pt/caps/tnt_disable
|
||||
+
|
||||
which contains "1" if the feature is supported and
|
||||
"0" otherwise.
|
||||
|
||||
*aux-action=start-paused*::
|
||||
Start tracing paused, refer to the section <<_pause_or_resume_tracing,Pause or Resume Tracing>>
|
||||
|
||||
|
||||
config terms on other events
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Some Intel PT features work with other events, features such as AUX area sampling
|
||||
and PEBS-via-PT. In those cases, the other events can have config terms below:
|
||||
|
||||
*aux-sample-size*::
|
||||
Used to set the AUX area sample size, refer to the section
|
||||
<<_aux_area_sampling_option,AUX area sampling option>>
|
||||
|
||||
*aux-output*::
|
||||
Used to select PEBS-via-PT, refer to the
|
||||
section <<_pebs_via_intel_pt,PEBS via Intel PT>>
|
||||
|
||||
*aux-action*::
|
||||
Used to pause or resume tracing, refer to the section
|
||||
<<_pause_or_resume_tracing,Pause or Resume Tracing>>
|
||||
|
||||
AUX area sampling option
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
@ -596,7 +649,8 @@ The default snapshot size is the auxtrace mmap size. If neither auxtrace mmap s
|
|||
nor snapshot size is specified, then the default is 4MiB for privileged users
|
||||
(or if /proc/sys/kernel/perf_event_paranoid < 0), 128KiB for unprivileged users.
|
||||
If an unprivileged user does not specify mmap pages, the mmap pages will be
|
||||
reduced as described in the 'new auxtrace mmap size option' section below.
|
||||
reduced as described in the <<_new_auxtrace_mmap_size_option,new auxtrace mmap size option>>
|
||||
section below.
|
||||
|
||||
The snapshot size is displayed if the option -vv is used e.g.
|
||||
|
||||
|
@ -952,11 +1006,11 @@ transaction start, commit or abort.
|
|||
|
||||
Note that "instructions", "cycles", "branches" and "transactions" events
|
||||
depend on code flow packets which can be disabled by using the config term
|
||||
"branch=0". Refer to the config terms section above.
|
||||
"branch=0". Refer to the <<_config_terms,config terms>> section above.
|
||||
|
||||
"ptwrite" events record the payload of the ptwrite instruction and whether
|
||||
"fup_on_ptw" was used. "ptwrite" events depend on PTWRITE packets which are
|
||||
recorded only if the "ptw" config term was used. Refer to the config terms
|
||||
recorded only if the "ptw" config term was used. Refer to the <<_config_terms,config terms>>
|
||||
section above. perf script "synth" field displays "ptwrite" information like
|
||||
this: "ip: 0 payload: 0x123456789abcdef0" where "ip" is 1 if "fup_on_ptw" was
|
||||
used.
|
||||
|
@ -964,7 +1018,7 @@ used.
|
|||
"Power" events correspond to power event packets and CBR (core-to-bus ratio)
|
||||
packets. While CBR packets are always recorded when tracing is enabled, power
|
||||
event packets are recorded only if the "pwr_evt" config term was used. Refer to
|
||||
the config terms section above. The power events record information about
|
||||
the <<_config_terms,config terms>> section above. The power events record information about
|
||||
C-state changes, whereas CBR is indicative of CPU frequency. perf script
|
||||
"event,synth" fields display information like this:
|
||||
|
||||
|
@ -1120,7 +1174,7 @@ What *will* be decoded with the (single) q option:
|
|||
- asynchronous branches such as interrupts
|
||||
- indirect branches
|
||||
- function return target address *if* the noretcomp config term (refer
|
||||
config terms section) was used
|
||||
<<_config_terms,config terms>> section) was used
|
||||
- start of (control-flow) tracing
|
||||
- end of (control-flow) tracing, if it is not out of context
|
||||
- power events, ptwrite, transaction start and abort
|
||||
|
@ -1133,7 +1187,7 @@ Repeating the q option (double-q i.e. qq) results in even faster decoding and ev
|
|||
less detail. The decoder decodes only extended PSB (PSB+) packets, getting the
|
||||
instruction pointer if there is a FUP packet within PSB+ (i.e. between PSB and
|
||||
PSBEND). Note PSB packets occur regularly in the trace based on the psb_period
|
||||
config term (refer config terms section). There will be a FUP packet if the
|
||||
config term (refer <<_config_terms,config terms>> section). There will be a FUP packet if the
|
||||
PSB+ occurs while control flow is being traced.
|
||||
|
||||
What will *not* be decoded with the qq option:
|
||||
|
@ -1867,6 +1921,108 @@ For pipe mode, the order of events and timestamps can presumably
|
|||
be messed up.
|
||||
|
||||
|
||||
Pause or Resume Tracing
|
||||
-----------------------
|
||||
|
||||
With newer Kernels, it is possible to use other selected events to pause
|
||||
or resume Intel PT tracing. This is configured by using the "aux-action"
|
||||
config term:
|
||||
|
||||
"aux-action=pause" is used with events that are to pause Intel PT tracing.
|
||||
|
||||
"aux-action=resume" is used with events that are to resume Intel PT tracing.
|
||||
|
||||
"aux-action=start-paused" is used with the Intel PT event to start in a
|
||||
paused state.
|
||||
|
||||
For example, to trace only the uname system call (sys_newuname) when running the
|
||||
command line utility uname:
|
||||
|
||||
$ perf record --kcore -e intel_pt/aux-action=start-paused/k,syscalls:sys_enter_newuname/aux-action=resume/,syscalls:sys_exit_newuname/aux-action=pause/ uname
|
||||
Linux
|
||||
[ perf record: Woken up 1 times to write data ]
|
||||
[ perf record: Captured and wrote 0.043 MB perf.data ]
|
||||
$ perf script --call-trace
|
||||
uname 30805 [000] 24001.058782799: name: 0x7ffc9c1865b0
|
||||
uname 30805 [000] 24001.058784424: psb offs: 0
|
||||
uname 30805 [000] 24001.058784424: cbr: 39 freq: 3904 MHz (139%)
|
||||
uname 30805 [000] 24001.058784629: ([kernel.kallsyms]) debug_smp_processor_id
|
||||
uname 30805 [000] 24001.058784629: ([kernel.kallsyms]) __x64_sys_newuname
|
||||
uname 30805 [000] 24001.058784629: ([kernel.kallsyms]) down_read
|
||||
uname 30805 [000] 24001.058784629: ([kernel.kallsyms]) __cond_resched
|
||||
uname 30805 [000] 24001.058784629: ([kernel.kallsyms]) preempt_count_add
|
||||
uname 30805 [000] 24001.058784629: ([kernel.kallsyms]) in_lock_functions
|
||||
uname 30805 [000] 24001.058784629: ([kernel.kallsyms]) preempt_count_sub
|
||||
uname 30805 [000] 24001.058784629: ([kernel.kallsyms]) up_read
|
||||
uname 30805 [000] 24001.058784629: ([kernel.kallsyms]) preempt_count_add
|
||||
uname 30805 [000] 24001.058784838: ([kernel.kallsyms]) in_lock_functions
|
||||
uname 30805 [000] 24001.058784838: ([kernel.kallsyms]) preempt_count_sub
|
||||
uname 30805 [000] 24001.058784838: ([kernel.kallsyms]) _copy_to_user
|
||||
uname 30805 [000] 24001.058784838: ([kernel.kallsyms]) syscall_exit_to_user_mode
|
||||
uname 30805 [000] 24001.058784838: ([kernel.kallsyms]) syscall_exit_work
|
||||
uname 30805 [000] 24001.058784838: ([kernel.kallsyms]) perf_syscall_exit
|
||||
uname 30805 [000] 24001.058784838: ([kernel.kallsyms]) debug_smp_processor_id
|
||||
uname 30805 [000] 24001.058785046: ([kernel.kallsyms]) perf_trace_buf_alloc
|
||||
uname 30805 [000] 24001.058785046: ([kernel.kallsyms]) perf_swevent_get_recursion_context
|
||||
uname 30805 [000] 24001.058785046: ([kernel.kallsyms]) debug_smp_processor_id
|
||||
uname 30805 [000] 24001.058785046: ([kernel.kallsyms]) debug_smp_processor_id
|
||||
uname 30805 [000] 24001.058785046: ([kernel.kallsyms]) perf_tp_event
|
||||
uname 30805 [000] 24001.058785046: ([kernel.kallsyms]) perf_trace_buf_update
|
||||
uname 30805 [000] 24001.058785046: ([kernel.kallsyms]) tracing_gen_ctx_irq_test
|
||||
uname 30805 [000] 24001.058785046: ([kernel.kallsyms]) perf_swevent_event
|
||||
uname 30805 [000] 24001.058785046: ([kernel.kallsyms]) __perf_event_account_interrupt
|
||||
uname 30805 [000] 24001.058785046: ([kernel.kallsyms]) __this_cpu_preempt_check
|
||||
uname 30805 [000] 24001.058785046: ([kernel.kallsyms]) perf_event_output_forward
|
||||
uname 30805 [000] 24001.058785046: ([kernel.kallsyms]) perf_event_aux_pause
|
||||
uname 30805 [000] 24001.058785046: ([kernel.kallsyms]) ring_buffer_get
|
||||
uname 30805 [000] 24001.058785046: ([kernel.kallsyms]) __rcu_read_lock
|
||||
uname 30805 [000] 24001.058785046: ([kernel.kallsyms]) __rcu_read_unlock
|
||||
uname 30805 [000] 24001.058785254: ([kernel.kallsyms]) pt_event_stop
|
||||
uname 30805 [000] 24001.058785254: ([kernel.kallsyms]) debug_smp_processor_id
|
||||
uname 30805 [000] 24001.058785254: ([kernel.kallsyms]) debug_smp_processor_id
|
||||
uname 30805 [000] 24001.058785254: ([kernel.kallsyms]) native_write_msr
|
||||
uname 30805 [000] 24001.058785463: ([kernel.kallsyms]) native_write_msr
|
||||
uname 30805 [000] 24001.058785639: 0x0
|
||||
|
||||
The example above uses tracepoints, but any kind of sampled event can be used.
|
||||
|
||||
For example:
|
||||
|
||||
Tracing between arch_cpu_idle_enter() and arch_cpu_idle_exit() using breakpoint events:
|
||||
|
||||
$ sudo cat /proc/kallsyms | sort | grep ' arch_cpu_idle_enter\| arch_cpu_idle_exit'
|
||||
ffffffffb605bf60 T arch_cpu_idle_enter
|
||||
ffffffffb614d8a0 W arch_cpu_idle_exit
|
||||
$ sudo perf record --kcore -a -e intel_pt/aux-action=start-paused/k -e mem:0xffffffffb605bf60:x/aux-action=resume/ -e mem:0xffffffffb614d8a0:x/aux-action=pause/ -- sleep 1
|
||||
[ perf record: Woken up 1 times to write data ]
|
||||
[ perf record: Captured and wrote 1.387 MB perf.data ]
|
||||
|
||||
Tracing __alloc_pages() using kprobes:
|
||||
|
||||
$ sudo perf probe --add '__alloc_pages order'
|
||||
Added new event: probe:__alloc_pages (on __alloc_pages with order)
|
||||
$ sudo perf probe --add __alloc_pages%return
|
||||
Added new event: probe:__alloc_pages__return (on __alloc_pages%return)
|
||||
$ sudo perf record --kcore -aR -e intel_pt/aux-action=start-paused/k -e probe:__alloc_pages/aux-action=resume/ -e probe:__alloc_pages__return/aux-action=pause/ -- sleep 1
|
||||
[ perf record: Woken up 1 times to write data ]
|
||||
[ perf record: Captured and wrote 1.490 MB perf.data ]
|
||||
|
||||
Tracing starting at main() using a uprobe event:
|
||||
|
||||
$ sudo perf probe -x /usr/bin/uname main
|
||||
Added new event: probe_uname:main (on main in /usr/bin/uname)
|
||||
$ sudo perf record -e intel_pt/-aux-action=start-paused/u -e probe_uname:main/aux-action=resume/ -- uname
|
||||
Linux
|
||||
[ perf record: Woken up 1 times to write data ]
|
||||
[ perf record: Captured and wrote 0.031 MB perf.data ]
|
||||
|
||||
Tracing occasionally using cycles events with different periods:
|
||||
|
||||
$ perf record --kcore -a -m,64M -e intel_pt/aux-action=start-paused/k -e cycles/aux-action=pause,period=1000000/Pk -e cycles/aux-action=resume,period=10500000/Pk -- firefox
|
||||
[ perf record: Woken up 19 times to write data ]
|
||||
[ perf record: Captured and wrote 16.561 MB perf.data ]
|
||||
|
||||
|
||||
EXAMPLE
|
||||
-------
|
||||
|
||||
|
|
|
@ -187,8 +187,8 @@ CONTENTION OPTIONS
|
|||
Show lock contention only for given lock types (comma separated list).
|
||||
Available values are:
|
||||
semaphore, spinlock, rwlock, rwlock:R, rwlock:W, rwsem, rwsem:R, rwsem:W,
|
||||
rtmutex, rwlock-rt, rwlock-rt:R, rwlock-rt:W, pcpu-sem, pcpu-sem:R, pcpu-sem:W,
|
||||
mutex
|
||||
rtmutex, rwlock-rt, rwlock-rt:R, rwlock-rt:W, percpu-rwmem, pcpu-sem,
|
||||
pcpu-sem:R, pcpu-sem:W, mutex
|
||||
|
||||
Note that RW-variant of locks have :R and :W suffix. Names without the
|
||||
suffix are shortcuts for the both variants. Ex) rwsem = rwsem:R + rwsem:W.
|
||||
|
|
|
@ -68,6 +68,10 @@ OPTIONS
|
|||
like this: name=\'CPU_CLK_UNHALTED.THREAD:cmask=0x1\'.
|
||||
- 'aux-output': Generate AUX records instead of events. This requires
|
||||
that an AUX area event is also provided.
|
||||
- 'aux-action': "pause" or "resume" to pause or resume an AUX
|
||||
area event (the group leader) when this event occurs.
|
||||
"start-paused" on an AUX area event itself, will
|
||||
start in a paused state.
|
||||
- 'aux-sample-size': Set sample size for AUX area sampling. If the
|
||||
'--aux-sample' option has been used, set aux-sample-size=0 to disable
|
||||
AUX area sampling for the event.
|
||||
|
|
|
@ -28,18 +28,22 @@ OPTIONS
|
|||
Tests to skip (comma separated numeric list).
|
||||
|
||||
-v::
|
||||
-vv::
|
||||
-vvv::
|
||||
--verbose::
|
||||
Be more verbose.
|
||||
With a single '-v', verbose level 1, only failing test output
|
||||
is displayed. With '-vv' and higher all test output is shown.
|
||||
|
||||
-S::
|
||||
--sequential::
|
||||
Run tests one after the other, this is the default mode.
|
||||
Run all tests one after the other. By default "exclusive"
|
||||
tests are run sequentially, but other tests are run in
|
||||
parallel to speed execution.
|
||||
|
||||
-p::
|
||||
--parallel::
|
||||
Run tests in parallel, speeds up the whole process but is not safe with
|
||||
the current infrastructure, where some tests that compete for some resources,
|
||||
for instance, 'perf probe' tests that add/remove probes or clean all probes, etc.
|
||||
-r::
|
||||
--runs-per-test::
|
||||
Run each test the given number of times, by default once. This
|
||||
option can be useful to determine if a test is flaky.
|
||||
|
||||
-F::
|
||||
--dont-fork::
|
||||
|
|
|
@ -241,6 +241,11 @@ the thread executes on the designated CPUs. Default is to monitor all CPUs.
|
|||
printing using the existing 'perf trace' syscall arg beautifiers to map integer
|
||||
arguments to strings (pid to comm, syscall id to syscall name, etc).
|
||||
|
||||
--force-btf::
|
||||
Use btf_dump to pretty print syscall argument data, instead of using hand-crafted pretty
|
||||
printers. This option is intended for testing BTF integration in perf trace. btf_dump-based
|
||||
pretty-printing serves as a fallback to hand-crafted pretty printers, as the latter can
|
||||
better pretty-print integer flags and struct pointers.
|
||||
|
||||
PAGEFAULTS
|
||||
----------
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
COPYING
|
||||
LICENSES/preferred/GPL-2.0
|
||||
arch/arm64/tools/gen-sysreg.awk
|
||||
arch/arm64/tools/sysreg
|
||||
arch/*/include/uapi/asm/bpf_perf_event.h
|
||||
tools/perf
|
||||
tools/arch
|
||||
tools/scripts
|
||||
|
|
|
@ -28,63 +28,58 @@ include $(srctree)/tools/scripts/Makefile.arch
|
|||
|
||||
$(call detected_var,SRCARCH)
|
||||
|
||||
ifneq ($(NO_SYSCALL_TABLE),1)
|
||||
NO_SYSCALL_TABLE := 1
|
||||
|
||||
ifeq ($(SRCARCH),$(filter $(SRCARCH),x86 powerpc arm64 s390 mips loongarch riscv))
|
||||
NO_SYSCALL_TABLE := 0
|
||||
endif
|
||||
|
||||
ifneq ($(NO_SYSCALL_TABLE),1)
|
||||
CFLAGS += -DHAVE_SYSCALL_TABLE_SUPPORT
|
||||
endif
|
||||
endif
|
||||
CFLAGS += -I$(OUTPUT)arch/$(SRCARCH)/include/generated
|
||||
|
||||
# Additional ARCH settings for ppc
|
||||
ifeq ($(SRCARCH),powerpc)
|
||||
CFLAGS += -I$(OUTPUT)arch/powerpc/include/generated
|
||||
LIBUNWIND_LIBS := -lunwind -lunwind-ppc64
|
||||
ifndef NO_LIBUNWIND
|
||||
LIBUNWIND_LIBS := -lunwind -lunwind-ppc64
|
||||
endif
|
||||
endif
|
||||
|
||||
# Additional ARCH settings for x86
|
||||
ifeq ($(SRCARCH),x86)
|
||||
$(call detected,CONFIG_X86)
|
||||
CFLAGS += -I$(OUTPUT)arch/x86/include/generated
|
||||
ifeq (${IS_64_BIT}, 1)
|
||||
CFLAGS += -DHAVE_ARCH_X86_64_SUPPORT
|
||||
ARCH_INCLUDE = ../../arch/x86/lib/memcpy_64.S ../../arch/x86/lib/memset_64.S
|
||||
LIBUNWIND_LIBS = -lunwind-x86_64 -lunwind -llzma
|
||||
ifndef NO_LIBUNWIND
|
||||
LIBUNWIND_LIBS = -lunwind-x86_64 -lunwind -llzma
|
||||
endif
|
||||
$(call detected,CONFIG_X86_64)
|
||||
else
|
||||
LIBUNWIND_LIBS = -lunwind-x86 -llzma -lunwind
|
||||
ifndef NO_LIBUNWIND
|
||||
LIBUNWIND_LIBS = -lunwind-x86 -llzma -lunwind
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(SRCARCH),arm)
|
||||
LIBUNWIND_LIBS = -lunwind -lunwind-arm
|
||||
ifndef NO_LIBUNWIND
|
||||
LIBUNWIND_LIBS = -lunwind -lunwind-arm
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(SRCARCH),arm64)
|
||||
CFLAGS += -I$(OUTPUT)arch/arm64/include/generated
|
||||
LIBUNWIND_LIBS = -lunwind -lunwind-aarch64
|
||||
ifndef NO_LIBUNWIND
|
||||
LIBUNWIND_LIBS = -lunwind -lunwind-aarch64
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(SRCARCH),loongarch)
|
||||
CFLAGS += -I$(OUTPUT)arch/loongarch/include/generated
|
||||
LIBUNWIND_LIBS = -lunwind -lunwind-loongarch64
|
||||
ifndef NO_LIBUNWIND
|
||||
LIBUNWIND_LIBS = -lunwind -lunwind-loongarch64
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(ARCH),s390)
|
||||
CFLAGS += -fPIC -I$(OUTPUT)arch/s390/include/generated
|
||||
CFLAGS += -fPIC
|
||||
endif
|
||||
|
||||
ifeq ($(ARCH),mips)
|
||||
CFLAGS += -I$(OUTPUT)arch/mips/include/generated
|
||||
LIBUNWIND_LIBS = -lunwind -lunwind-mips
|
||||
endif
|
||||
|
||||
ifeq ($(ARCH),riscv)
|
||||
CFLAGS += -I$(OUTPUT)arch/riscv/include/generated
|
||||
ifndef NO_LIBUNWIND
|
||||
LIBUNWIND_LIBS = -lunwind -lunwind-mips
|
||||
endif
|
||||
endif
|
||||
|
||||
# So far there's only x86 and arm libdw unwind support merged in perf.
|
||||
|
@ -121,16 +116,18 @@ ifdef LIBUNWIND_DIR
|
|||
$(foreach libunwind_arch,$(LIBUNWIND_ARCHS),$(call libunwind_arch_set_flags,$(libunwind_arch)))
|
||||
endif
|
||||
|
||||
# Set per-feature check compilation flags
|
||||
FEATURE_CHECK_CFLAGS-libunwind = $(LIBUNWIND_CFLAGS)
|
||||
FEATURE_CHECK_LDFLAGS-libunwind = $(LIBUNWIND_LDFLAGS) $(LIBUNWIND_LIBS)
|
||||
FEATURE_CHECK_CFLAGS-libunwind-debug-frame = $(LIBUNWIND_CFLAGS)
|
||||
FEATURE_CHECK_LDFLAGS-libunwind-debug-frame = $(LIBUNWIND_LDFLAGS) $(LIBUNWIND_LIBS)
|
||||
|
||||
FEATURE_CHECK_LDFLAGS-libunwind-arm += -lunwind -lunwind-arm
|
||||
FEATURE_CHECK_LDFLAGS-libunwind-aarch64 += -lunwind -lunwind-aarch64
|
||||
FEATURE_CHECK_LDFLAGS-libunwind-x86 += -lunwind -llzma -lunwind-x86
|
||||
FEATURE_CHECK_LDFLAGS-libunwind-x86_64 += -lunwind -llzma -lunwind-x86_64
|
||||
ifndef NO_LIBUNWIND
|
||||
# Set per-feature check compilation flags
|
||||
FEATURE_CHECK_CFLAGS-libunwind = $(LIBUNWIND_CFLAGS)
|
||||
FEATURE_CHECK_LDFLAGS-libunwind = $(LIBUNWIND_LDFLAGS) $(LIBUNWIND_LIBS)
|
||||
FEATURE_CHECK_CFLAGS-libunwind-debug-frame = $(LIBUNWIND_CFLAGS)
|
||||
FEATURE_CHECK_LDFLAGS-libunwind-debug-frame = $(LIBUNWIND_LDFLAGS) $(LIBUNWIND_LIBS)
|
||||
|
||||
FEATURE_CHECK_LDFLAGS-libunwind-arm += -lunwind -lunwind-arm
|
||||
FEATURE_CHECK_LDFLAGS-libunwind-aarch64 += -lunwind -lunwind-aarch64
|
||||
FEATURE_CHECK_LDFLAGS-libunwind-x86 += -lunwind -llzma -lunwind-x86
|
||||
FEATURE_CHECK_LDFLAGS-libunwind-x86_64 += -lunwind -llzma -lunwind-x86_64
|
||||
endif
|
||||
|
||||
FEATURE_CHECK_LDFLAGS-libcrypto = -lcrypto
|
||||
|
||||
|
@ -155,7 +152,7 @@ ifdef LIBDW_DIR
|
|||
endif
|
||||
DWARFLIBS := -ldw
|
||||
ifeq ($(findstring -static,${LDFLAGS}),-static)
|
||||
DWARFLIBS += -lelf -lz -llzma -lbz2 -lzstd
|
||||
DWARFLIBS += -lelf -lz -llzma -lbz2
|
||||
|
||||
LIBDW_VERSION := $(shell $(PKG_CONFIG) --modversion libdw).0.0
|
||||
LIBDW_VERSION_1 := $(word 1, $(subst ., ,$(LIBDW_VERSION)))
|
||||
|
@ -550,6 +547,12 @@ ifndef NO_LIBELF
|
|||
CFLAGS += -DHAVE_ELF_GETSHDRSTRNDX_SUPPORT
|
||||
endif
|
||||
|
||||
ifeq ($(feature-libelf-zstd), 1)
|
||||
ifdef NO_LIBZSTD
|
||||
$(error Error: libzstd is required by libelf, please do not set NO_LIBZSTD)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef NO_LIBDEBUGINFOD
|
||||
$(call feature_check,libdebuginfod)
|
||||
ifeq ($(feature-libdebuginfod), 1)
|
||||
|
@ -734,26 +737,25 @@ ifeq ($(dwarf-post-unwind),1)
|
|||
$(call detected,CONFIG_DWARF_UNWIND)
|
||||
endif
|
||||
|
||||
ifndef NO_LOCAL_LIBUNWIND
|
||||
ifeq ($(SRCARCH),$(filter $(SRCARCH),arm arm64))
|
||||
$(call feature_check,libunwind-debug-frame)
|
||||
ifneq ($(feature-libunwind-debug-frame), 1)
|
||||
$(warning No debug_frame support found in libunwind)
|
||||
ifndef NO_LIBUNWIND
|
||||
ifndef NO_LOCAL_LIBUNWIND
|
||||
ifeq ($(SRCARCH),$(filter $(SRCARCH),arm arm64))
|
||||
$(call feature_check,libunwind-debug-frame)
|
||||
ifneq ($(feature-libunwind-debug-frame), 1)
|
||||
$(warning No debug_frame support found in libunwind)
|
||||
CFLAGS += -DNO_LIBUNWIND_DEBUG_FRAME
|
||||
endif
|
||||
else
|
||||
# non-ARM has no dwarf_find_debug_frame() function:
|
||||
CFLAGS += -DNO_LIBUNWIND_DEBUG_FRAME
|
||||
endif
|
||||
else
|
||||
# non-ARM has no dwarf_find_debug_frame() function:
|
||||
CFLAGS += -DNO_LIBUNWIND_DEBUG_FRAME
|
||||
EXTLIBS += $(LIBUNWIND_LIBS)
|
||||
LDFLAGS += $(LIBUNWIND_LIBS)
|
||||
endif
|
||||
ifeq ($(findstring -static,${LDFLAGS}),-static)
|
||||
# gcc -static links libgcc_eh which contans piece of libunwind
|
||||
LIBUNWIND_LDFLAGS += -Wl,--allow-multiple-definition
|
||||
endif
|
||||
EXTLIBS += $(LIBUNWIND_LIBS)
|
||||
LDFLAGS += $(LIBUNWIND_LIBS)
|
||||
endif
|
||||
ifeq ($(findstring -static,${LDFLAGS}),-static)
|
||||
# gcc -static links libgcc_eh which contans piece of libunwind
|
||||
LIBUNWIND_LDFLAGS += -Wl,--allow-multiple-definition
|
||||
endif
|
||||
|
||||
ifndef NO_LIBUNWIND
|
||||
CFLAGS += -DHAVE_LIBUNWIND_SUPPORT
|
||||
CFLAGS += $(LIBUNWIND_CFLAGS)
|
||||
LDFLAGS += $(LIBUNWIND_LDFLAGS)
|
||||
|
@ -761,21 +763,7 @@ ifndef NO_LIBUNWIND
|
|||
endif
|
||||
|
||||
ifneq ($(NO_LIBTRACEEVENT),1)
|
||||
ifeq ($(NO_SYSCALL_TABLE),0)
|
||||
$(call detected,CONFIG_TRACE)
|
||||
else
|
||||
ifndef NO_LIBAUDIT
|
||||
$(call feature_check,libaudit)
|
||||
ifneq ($(feature-libaudit), 1)
|
||||
$(warning No libaudit.h found, disables 'trace' tool, please install audit-libs-devel or libaudit-dev)
|
||||
NO_LIBAUDIT := 1
|
||||
else
|
||||
CFLAGS += -DHAVE_LIBAUDIT_SUPPORT
|
||||
EXTLIBS += -laudit
|
||||
$(call detected,CONFIG_TRACE)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
$(call detected,CONFIG_TRACE)
|
||||
endif
|
||||
|
||||
ifndef NO_LIBCRYPTO
|
||||
|
@ -1172,7 +1160,6 @@ endif
|
|||
|
||||
# libtraceevent is a recommended dependency picked up from the system.
|
||||
ifneq ($(NO_LIBTRACEEVENT),1)
|
||||
$(call feature_check,libtraceevent)
|
||||
ifeq ($(feature-libtraceevent), 1)
|
||||
CFLAGS += -DHAVE_LIBTRACEEVENT $(shell $(PKG_CONFIG) --cflags libtraceevent)
|
||||
LDFLAGS += $(shell $(PKG_CONFIG) --libs-only-L libtraceevent)
|
||||
|
@ -1188,7 +1175,6 @@ ifneq ($(NO_LIBTRACEEVENT),1)
|
|||
$(error ERROR: libtraceevent is missing. Please install libtraceevent-dev/libtraceevent-devel and/or set LIBTRACEEVENT_DIR or build with NO_LIBTRACEEVENT=1)
|
||||
endif
|
||||
|
||||
$(call feature_check,libtracefs)
|
||||
ifeq ($(feature-libtracefs), 1)
|
||||
CFLAGS += $(shell $(PKG_CONFIG) --cflags libtracefs)
|
||||
LDFLAGS += $(shell $(PKG_CONFIG) --libs-only-L libtracefs)
|
||||
|
|
|
@ -59,8 +59,6 @@ include ../scripts/utilities.mak
|
|||
#
|
||||
# Define NO_LIBNUMA if you do not want numa perf benchmark
|
||||
#
|
||||
# Define NO_LIBAUDIT if you do not want libaudit support
|
||||
#
|
||||
# Define NO_LIBBIONIC if you do not want bionic support
|
||||
#
|
||||
# Define NO_LIBCRYPTO if you do not want libcrypto (openssl) support
|
||||
|
@ -119,10 +117,6 @@ include ../scripts/utilities.mak
|
|||
#
|
||||
# Define LIBBPF_DYNAMIC to enable libbpf dynamic linking.
|
||||
#
|
||||
# Define NO_SYSCALL_TABLE=1 to disable the use of syscall id to/from name tables
|
||||
# generated from the kernel .tbl or unistd.h files and use, if available, libaudit
|
||||
# for doing the conversions to/from strings/id.
|
||||
#
|
||||
# Define NO_LIBPFM4 to disable libpfm4 events extension.
|
||||
#
|
||||
# Define NO_LIBDEBUGINFOD if you do not want support debuginfod
|
||||
|
@ -167,12 +161,47 @@ export VPATH
|
|||
SOURCE := $(shell ln -sf $(srctree)/tools/perf $(OUTPUT)/source)
|
||||
endif
|
||||
|
||||
# Beautify output
|
||||
# ---------------------------------------------------------------------------
|
||||
#
|
||||
# Most of build commands in Kbuild start with "cmd_". You can optionally define
|
||||
# "quiet_cmd_*". If defined, the short log is printed. Otherwise, no log from
|
||||
# that command is printed by default.
|
||||
#
|
||||
# e.g.)
|
||||
# quiet_cmd_depmod = DEPMOD $(MODLIB)
|
||||
# cmd_depmod = $(srctree)/scripts/depmod.sh $(DEPMOD) $(KERNELRELEASE)
|
||||
#
|
||||
# A simple variant is to prefix commands with $(Q) - that's useful
|
||||
# for commands that shall be hidden in non-verbose mode.
|
||||
#
|
||||
# $(Q)$(MAKE) $(build)=scripts/basic
|
||||
#
|
||||
# To put more focus on warnings, be less verbose as default
|
||||
# Use 'make V=1' to see the full commands
|
||||
|
||||
ifeq ($(V),1)
|
||||
quiet =
|
||||
Q =
|
||||
else
|
||||
Q = @
|
||||
quiet=quiet_
|
||||
Q=@
|
||||
endif
|
||||
|
||||
# If the user is running make -s (silent mode), suppress echoing of commands
|
||||
# make-4.0 (and later) keep single letter options in the 1st word of MAKEFLAGS.
|
||||
ifeq ($(filter 3.%,$(MAKE_VERSION)),)
|
||||
short-opts := $(firstword -$(MAKEFLAGS))
|
||||
else
|
||||
short-opts := $(filter-out --%,$(MAKEFLAGS))
|
||||
endif
|
||||
|
||||
ifneq ($(findstring s,$(short-opts)),)
|
||||
quiet=silent_
|
||||
endif
|
||||
|
||||
export quiet Q
|
||||
|
||||
# Do not use make's built-in rules
|
||||
# (this improves performance and avoids hard-to-debug behaviour);
|
||||
MAKEFLAGS += -r
|
||||
|
@ -310,6 +339,7 @@ ifeq ($(filter feature-dump,$(MAKECMDGOALS)),feature-dump)
|
|||
FEATURE_TESTS := all
|
||||
endif
|
||||
endif
|
||||
include $(srctree)/tools/perf/scripts/Makefile.syscalls
|
||||
include Makefile.config
|
||||
endif
|
||||
|
||||
|
@ -487,6 +517,9 @@ endif
|
|||
EXTLIBS := $(call filter-out,$(EXCLUDE_EXTLIBS),$(EXTLIBS))
|
||||
LIBS = -Wl,--whole-archive $(PERFLIBS) $(EXTRA_PERFLIBS) -Wl,--no-whole-archive -Wl,--start-group $(EXTLIBS) -Wl,--end-group
|
||||
|
||||
PERFLIBS_PY := $(call filter-out,$(LIBPERF_BENCH) $(LIBPERF_TEST),$(PERFLIBS))
|
||||
LIBS_PY = -Wl,--whole-archive $(PERFLIBS_PY) $(EXTRA_PERFLIBS) -Wl,--no-whole-archive -Wl,--start-group $(EXTLIBS) -Wl,--end-group
|
||||
|
||||
export INSTALL SHELL_PATH
|
||||
|
||||
### Build rules
|
||||
|
@ -735,9 +768,9 @@ all: shell_compatibility_test $(ALL_PROGRAMS) $(LANG_BINDINGS) $(OTHER_PROGRAMS)
|
|||
# Create python binding output directory if not already present
|
||||
$(shell [ -d '$(OUTPUT)python' ] || mkdir -p '$(OUTPUT)python')
|
||||
|
||||
$(OUTPUT)python/perf$(PYTHON_EXTENSION_SUFFIX): util/python.c util/setup.py $(PERFLIBS)
|
||||
$(OUTPUT)python/perf$(PYTHON_EXTENSION_SUFFIX): util/python.c util/setup.py $(PERFLIBS_PY)
|
||||
$(QUIET_GEN)LDSHARED="$(CC) -pthread -shared" \
|
||||
CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS) $(LIBS)' \
|
||||
CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS) $(LIBS_PY)' \
|
||||
$(PYTHON_WORD) util/setup.py \
|
||||
--quiet build_ext; \
|
||||
cp $(PYTHON_EXTBUILD_LIB)perf*.so $(OUTPUT)python/
|
||||
|
@ -1094,11 +1127,6 @@ endif
|
|||
$(INSTALL) $(OUTPUT)perf-archive -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)'
|
||||
$(call QUIET_INSTALL, perf-iostat) \
|
||||
$(INSTALL) $(OUTPUT)perf-iostat -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)'
|
||||
ifndef NO_LIBAUDIT
|
||||
$(call QUIET_INSTALL, strace/groups) \
|
||||
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(STRACE_GROUPS_INSTDIR_SQ)'; \
|
||||
$(INSTALL) trace/strace/groups/* -m 644 -t '$(DESTDIR_SQ)$(STRACE_GROUPS_INSTDIR_SQ)'
|
||||
endif
|
||||
ifndef NO_LIBPERL
|
||||
$(call QUIET_INSTALL, perl-scripts) \
|
||||
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/perl/Perf-Trace-Util/lib/Perf/Trace'; \
|
||||
|
|
2
tools/perf/arch/alpha/entry/syscalls/Kbuild
Normal file
2
tools/perf/arch/alpha/entry/syscalls/Kbuild
Normal file
|
@ -0,0 +1,2 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
syscall-y += syscalls_64.h
|
5
tools/perf/arch/alpha/entry/syscalls/Makefile.syscalls
Normal file
5
tools/perf/arch/alpha/entry/syscalls/Makefile.syscalls
Normal file
|
@ -0,0 +1,5 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
syscall_abis_64 +=
|
||||
|
||||
syscalltbl = $(srctree)/tools/perf/arch/alpha/entry/syscalls/syscall.tbl
|
504
tools/perf/arch/alpha/entry/syscalls/syscall.tbl
Normal file
504
tools/perf/arch/alpha/entry/syscalls/syscall.tbl
Normal file
|
@ -0,0 +1,504 @@
|
|||
# SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
|
||||
#
|
||||
# system call numbers and entry vectors for alpha
|
||||
#
|
||||
# The format is:
|
||||
# <number> <abi> <name> <entry point>
|
||||
#
|
||||
# The <abi> is always "common" for this file
|
||||
#
|
||||
0 common osf_syscall alpha_syscall_zero
|
||||
1 common exit sys_exit
|
||||
2 common fork alpha_fork
|
||||
3 common read sys_read
|
||||
4 common write sys_write
|
||||
5 common osf_old_open sys_ni_syscall
|
||||
6 common close sys_close
|
||||
7 common osf_wait4 sys_osf_wait4
|
||||
8 common osf_old_creat sys_ni_syscall
|
||||
9 common link sys_link
|
||||
10 common unlink sys_unlink
|
||||
11 common osf_execve sys_ni_syscall
|
||||
12 common chdir sys_chdir
|
||||
13 common fchdir sys_fchdir
|
||||
14 common mknod sys_mknod
|
||||
15 common chmod sys_chmod
|
||||
16 common chown sys_chown
|
||||
17 common brk sys_osf_brk
|
||||
18 common osf_getfsstat sys_ni_syscall
|
||||
19 common lseek sys_lseek
|
||||
20 common getxpid sys_getxpid
|
||||
21 common osf_mount sys_osf_mount
|
||||
22 common umount2 sys_umount
|
||||
23 common setuid sys_setuid
|
||||
24 common getxuid sys_getxuid
|
||||
25 common exec_with_loader sys_ni_syscall
|
||||
26 common ptrace sys_ptrace
|
||||
27 common osf_nrecvmsg sys_ni_syscall
|
||||
28 common osf_nsendmsg sys_ni_syscall
|
||||
29 common osf_nrecvfrom sys_ni_syscall
|
||||
30 common osf_naccept sys_ni_syscall
|
||||
31 common osf_ngetpeername sys_ni_syscall
|
||||
32 common osf_ngetsockname sys_ni_syscall
|
||||
33 common access sys_access
|
||||
34 common osf_chflags sys_ni_syscall
|
||||
35 common osf_fchflags sys_ni_syscall
|
||||
36 common sync sys_sync
|
||||
37 common kill sys_kill
|
||||
38 common osf_old_stat sys_ni_syscall
|
||||
39 common setpgid sys_setpgid
|
||||
40 common osf_old_lstat sys_ni_syscall
|
||||
41 common dup sys_dup
|
||||
42 common pipe sys_alpha_pipe
|
||||
43 common osf_set_program_attributes sys_osf_set_program_attributes
|
||||
44 common osf_profil sys_ni_syscall
|
||||
45 common open sys_open
|
||||
46 common osf_old_sigaction sys_ni_syscall
|
||||
47 common getxgid sys_getxgid
|
||||
48 common osf_sigprocmask sys_osf_sigprocmask
|
||||
49 common osf_getlogin sys_ni_syscall
|
||||
50 common osf_setlogin sys_ni_syscall
|
||||
51 common acct sys_acct
|
||||
52 common sigpending sys_sigpending
|
||||
54 common ioctl sys_ioctl
|
||||
55 common osf_reboot sys_ni_syscall
|
||||
56 common osf_revoke sys_ni_syscall
|
||||
57 common symlink sys_symlink
|
||||
58 common readlink sys_readlink
|
||||
59 common execve sys_execve
|
||||
60 common umask sys_umask
|
||||
61 common chroot sys_chroot
|
||||
62 common osf_old_fstat sys_ni_syscall
|
||||
63 common getpgrp sys_getpgrp
|
||||
64 common getpagesize sys_getpagesize
|
||||
65 common osf_mremap sys_ni_syscall
|
||||
66 common vfork alpha_vfork
|
||||
67 common stat sys_newstat
|
||||
68 common lstat sys_newlstat
|
||||
69 common osf_sbrk sys_ni_syscall
|
||||
70 common osf_sstk sys_ni_syscall
|
||||
71 common mmap sys_osf_mmap
|
||||
72 common osf_old_vadvise sys_ni_syscall
|
||||
73 common munmap sys_munmap
|
||||
74 common mprotect sys_mprotect
|
||||
75 common madvise sys_madvise
|
||||
76 common vhangup sys_vhangup
|
||||
77 common osf_kmodcall sys_ni_syscall
|
||||
78 common osf_mincore sys_ni_syscall
|
||||
79 common getgroups sys_getgroups
|
||||
80 common setgroups sys_setgroups
|
||||
81 common osf_old_getpgrp sys_ni_syscall
|
||||
82 common setpgrp sys_setpgid
|
||||
83 common osf_setitimer compat_sys_setitimer
|
||||
84 common osf_old_wait sys_ni_syscall
|
||||
85 common osf_table sys_ni_syscall
|
||||
86 common osf_getitimer compat_sys_getitimer
|
||||
87 common gethostname sys_gethostname
|
||||
88 common sethostname sys_sethostname
|
||||
89 common getdtablesize sys_getdtablesize
|
||||
90 common dup2 sys_dup2
|
||||
91 common fstat sys_newfstat
|
||||
92 common fcntl sys_fcntl
|
||||
93 common osf_select sys_osf_select
|
||||
94 common poll sys_poll
|
||||
95 common fsync sys_fsync
|
||||
96 common setpriority sys_setpriority
|
||||
97 common socket sys_socket
|
||||
98 common connect sys_connect
|
||||
99 common accept sys_accept
|
||||
100 common getpriority sys_osf_getpriority
|
||||
101 common send sys_send
|
||||
102 common recv sys_recv
|
||||
103 common sigreturn sys_sigreturn
|
||||
104 common bind sys_bind
|
||||
105 common setsockopt sys_setsockopt
|
||||
106 common listen sys_listen
|
||||
107 common osf_plock sys_ni_syscall
|
||||
108 common osf_old_sigvec sys_ni_syscall
|
||||
109 common osf_old_sigblock sys_ni_syscall
|
||||
110 common osf_old_sigsetmask sys_ni_syscall
|
||||
111 common sigsuspend sys_sigsuspend
|
||||
112 common osf_sigstack sys_osf_sigstack
|
||||
113 common recvmsg sys_recvmsg
|
||||
114 common sendmsg sys_sendmsg
|
||||
115 common osf_old_vtrace sys_ni_syscall
|
||||
116 common osf_gettimeofday sys_osf_gettimeofday
|
||||
117 common osf_getrusage sys_osf_getrusage
|
||||
118 common getsockopt sys_getsockopt
|
||||
120 common readv sys_readv
|
||||
121 common writev sys_writev
|
||||
122 common osf_settimeofday sys_osf_settimeofday
|
||||
123 common fchown sys_fchown
|
||||
124 common fchmod sys_fchmod
|
||||
125 common recvfrom sys_recvfrom
|
||||
126 common setreuid sys_setreuid
|
||||
127 common setregid sys_setregid
|
||||
128 common rename sys_rename
|
||||
129 common truncate sys_truncate
|
||||
130 common ftruncate sys_ftruncate
|
||||
131 common flock sys_flock
|
||||
132 common setgid sys_setgid
|
||||
133 common sendto sys_sendto
|
||||
134 common shutdown sys_shutdown
|
||||
135 common socketpair sys_socketpair
|
||||
136 common mkdir sys_mkdir
|
||||
137 common rmdir sys_rmdir
|
||||
138 common osf_utimes sys_osf_utimes
|
||||
139 common osf_old_sigreturn sys_ni_syscall
|
||||
140 common osf_adjtime sys_ni_syscall
|
||||
141 common getpeername sys_getpeername
|
||||
142 common osf_gethostid sys_ni_syscall
|
||||
143 common osf_sethostid sys_ni_syscall
|
||||
144 common getrlimit sys_getrlimit
|
||||
145 common setrlimit sys_setrlimit
|
||||
146 common osf_old_killpg sys_ni_syscall
|
||||
147 common setsid sys_setsid
|
||||
148 common quotactl sys_quotactl
|
||||
149 common osf_oldquota sys_ni_syscall
|
||||
150 common getsockname sys_getsockname
|
||||
153 common osf_pid_block sys_ni_syscall
|
||||
154 common osf_pid_unblock sys_ni_syscall
|
||||
156 common sigaction sys_osf_sigaction
|
||||
157 common osf_sigwaitprim sys_ni_syscall
|
||||
158 common osf_nfssvc sys_ni_syscall
|
||||
159 common osf_getdirentries sys_osf_getdirentries
|
||||
160 common osf_statfs sys_osf_statfs
|
||||
161 common osf_fstatfs sys_osf_fstatfs
|
||||
163 common osf_asynch_daemon sys_ni_syscall
|
||||
164 common osf_getfh sys_ni_syscall
|
||||
165 common osf_getdomainname sys_osf_getdomainname
|
||||
166 common setdomainname sys_setdomainname
|
||||
169 common osf_exportfs sys_ni_syscall
|
||||
181 common osf_alt_plock sys_ni_syscall
|
||||
184 common osf_getmnt sys_ni_syscall
|
||||
187 common osf_alt_sigpending sys_ni_syscall
|
||||
188 common osf_alt_setsid sys_ni_syscall
|
||||
199 common osf_swapon sys_swapon
|
||||
200 common msgctl sys_old_msgctl
|
||||
201 common msgget sys_msgget
|
||||
202 common msgrcv sys_msgrcv
|
||||
203 common msgsnd sys_msgsnd
|
||||
204 common semctl sys_old_semctl
|
||||
205 common semget sys_semget
|
||||
206 common semop sys_semop
|
||||
207 common osf_utsname sys_osf_utsname
|
||||
208 common lchown sys_lchown
|
||||
209 common shmat sys_shmat
|
||||
210 common shmctl sys_old_shmctl
|
||||
211 common shmdt sys_shmdt
|
||||
212 common shmget sys_shmget
|
||||
213 common osf_mvalid sys_ni_syscall
|
||||
214 common osf_getaddressconf sys_ni_syscall
|
||||
215 common osf_msleep sys_ni_syscall
|
||||
216 common osf_mwakeup sys_ni_syscall
|
||||
217 common msync sys_msync
|
||||
218 common osf_signal sys_ni_syscall
|
||||
219 common osf_utc_gettime sys_ni_syscall
|
||||
220 common osf_utc_adjtime sys_ni_syscall
|
||||
222 common osf_security sys_ni_syscall
|
||||
223 common osf_kloadcall sys_ni_syscall
|
||||
224 common osf_stat sys_osf_stat
|
||||
225 common osf_lstat sys_osf_lstat
|
||||
226 common osf_fstat sys_osf_fstat
|
||||
227 common osf_statfs64 sys_osf_statfs64
|
||||
228 common osf_fstatfs64 sys_osf_fstatfs64
|
||||
233 common getpgid sys_getpgid
|
||||
234 common getsid sys_getsid
|
||||
235 common sigaltstack sys_sigaltstack
|
||||
236 common osf_waitid sys_ni_syscall
|
||||
237 common osf_priocntlset sys_ni_syscall
|
||||
238 common osf_sigsendset sys_ni_syscall
|
||||
239 common osf_set_speculative sys_ni_syscall
|
||||
240 common osf_msfs_syscall sys_ni_syscall
|
||||
241 common osf_sysinfo sys_osf_sysinfo
|
||||
242 common osf_uadmin sys_ni_syscall
|
||||
243 common osf_fuser sys_ni_syscall
|
||||
244 common osf_proplist_syscall sys_osf_proplist_syscall
|
||||
245 common osf_ntp_adjtime sys_ni_syscall
|
||||
246 common osf_ntp_gettime sys_ni_syscall
|
||||
247 common osf_pathconf sys_ni_syscall
|
||||
248 common osf_fpathconf sys_ni_syscall
|
||||
250 common osf_uswitch sys_ni_syscall
|
||||
251 common osf_usleep_thread sys_osf_usleep_thread
|
||||
252 common osf_audcntl sys_ni_syscall
|
||||
253 common osf_audgen sys_ni_syscall
|
||||
254 common sysfs sys_sysfs
|
||||
255 common osf_subsys_info sys_ni_syscall
|
||||
256 common osf_getsysinfo sys_osf_getsysinfo
|
||||
257 common osf_setsysinfo sys_osf_setsysinfo
|
||||
258 common osf_afs_syscall sys_ni_syscall
|
||||
259 common osf_swapctl sys_ni_syscall
|
||||
260 common osf_memcntl sys_ni_syscall
|
||||
261 common osf_fdatasync sys_ni_syscall
|
||||
300 common bdflush sys_ni_syscall
|
||||
301 common sethae sys_sethae
|
||||
302 common mount sys_mount
|
||||
303 common old_adjtimex sys_old_adjtimex
|
||||
304 common swapoff sys_swapoff
|
||||
305 common getdents sys_getdents
|
||||
306 common create_module sys_ni_syscall
|
||||
307 common init_module sys_init_module
|
||||
308 common delete_module sys_delete_module
|
||||
309 common get_kernel_syms sys_ni_syscall
|
||||
310 common syslog sys_syslog
|
||||
311 common reboot sys_reboot
|
||||
312 common clone alpha_clone
|
||||
313 common uselib sys_uselib
|
||||
314 common mlock sys_mlock
|
||||
315 common munlock sys_munlock
|
||||
316 common mlockall sys_mlockall
|
||||
317 common munlockall sys_munlockall
|
||||
318 common sysinfo sys_sysinfo
|
||||
319 common _sysctl sys_ni_syscall
|
||||
# 320 was sys_idle
|
||||
321 common oldumount sys_oldumount
|
||||
322 common swapon sys_swapon
|
||||
323 common times sys_times
|
||||
324 common personality sys_personality
|
||||
325 common setfsuid sys_setfsuid
|
||||
326 common setfsgid sys_setfsgid
|
||||
327 common ustat sys_ustat
|
||||
328 common statfs sys_statfs
|
||||
329 common fstatfs sys_fstatfs
|
||||
330 common sched_setparam sys_sched_setparam
|
||||
331 common sched_getparam sys_sched_getparam
|
||||
332 common sched_setscheduler sys_sched_setscheduler
|
||||
333 common sched_getscheduler sys_sched_getscheduler
|
||||
334 common sched_yield sys_sched_yield
|
||||
335 common sched_get_priority_max sys_sched_get_priority_max
|
||||
336 common sched_get_priority_min sys_sched_get_priority_min
|
||||
337 common sched_rr_get_interval sys_sched_rr_get_interval
|
||||
338 common afs_syscall sys_ni_syscall
|
||||
339 common uname sys_newuname
|
||||
340 common nanosleep sys_nanosleep
|
||||
341 common mremap sys_mremap
|
||||
342 common nfsservctl sys_ni_syscall
|
||||
343 common setresuid sys_setresuid
|
||||
344 common getresuid sys_getresuid
|
||||
345 common pciconfig_read sys_pciconfig_read
|
||||
346 common pciconfig_write sys_pciconfig_write
|
||||
347 common query_module sys_ni_syscall
|
||||
348 common prctl sys_prctl
|
||||
349 common pread64 sys_pread64
|
||||
350 common pwrite64 sys_pwrite64
|
||||
351 common rt_sigreturn sys_rt_sigreturn
|
||||
352 common rt_sigaction sys_rt_sigaction
|
||||
353 common rt_sigprocmask sys_rt_sigprocmask
|
||||
354 common rt_sigpending sys_rt_sigpending
|
||||
355 common rt_sigtimedwait sys_rt_sigtimedwait
|
||||
356 common rt_sigqueueinfo sys_rt_sigqueueinfo
|
||||
357 common rt_sigsuspend sys_rt_sigsuspend
|
||||
358 common select sys_select
|
||||
359 common gettimeofday sys_gettimeofday
|
||||
360 common settimeofday sys_settimeofday
|
||||
361 common getitimer sys_getitimer
|
||||
362 common setitimer sys_setitimer
|
||||
363 common utimes sys_utimes
|
||||
364 common getrusage sys_getrusage
|
||||
365 common wait4 sys_wait4
|
||||
366 common adjtimex sys_adjtimex
|
||||
367 common getcwd sys_getcwd
|
||||
368 common capget sys_capget
|
||||
369 common capset sys_capset
|
||||
370 common sendfile sys_sendfile64
|
||||
371 common setresgid sys_setresgid
|
||||
372 common getresgid sys_getresgid
|
||||
373 common dipc sys_ni_syscall
|
||||
374 common pivot_root sys_pivot_root
|
||||
375 common mincore sys_mincore
|
||||
376 common pciconfig_iobase sys_pciconfig_iobase
|
||||
377 common getdents64 sys_getdents64
|
||||
378 common gettid sys_gettid
|
||||
379 common readahead sys_readahead
|
||||
# 380 is unused
|
||||
381 common tkill sys_tkill
|
||||
382 common setxattr sys_setxattr
|
||||
383 common lsetxattr sys_lsetxattr
|
||||
384 common fsetxattr sys_fsetxattr
|
||||
385 common getxattr sys_getxattr
|
||||
386 common lgetxattr sys_lgetxattr
|
||||
387 common fgetxattr sys_fgetxattr
|
||||
388 common listxattr sys_listxattr
|
||||
389 common llistxattr sys_llistxattr
|
||||
390 common flistxattr sys_flistxattr
|
||||
391 common removexattr sys_removexattr
|
||||
392 common lremovexattr sys_lremovexattr
|
||||
393 common fremovexattr sys_fremovexattr
|
||||
394 common futex sys_futex
|
||||
395 common sched_setaffinity sys_sched_setaffinity
|
||||
396 common sched_getaffinity sys_sched_getaffinity
|
||||
397 common tuxcall sys_ni_syscall
|
||||
398 common io_setup sys_io_setup
|
||||
399 common io_destroy sys_io_destroy
|
||||
400 common io_getevents sys_io_getevents
|
||||
401 common io_submit sys_io_submit
|
||||
402 common io_cancel sys_io_cancel
|
||||
405 common exit_group sys_exit_group
|
||||
406 common lookup_dcookie sys_ni_syscall
|
||||
407 common epoll_create sys_epoll_create
|
||||
408 common epoll_ctl sys_epoll_ctl
|
||||
409 common epoll_wait sys_epoll_wait
|
||||
410 common remap_file_pages sys_remap_file_pages
|
||||
411 common set_tid_address sys_set_tid_address
|
||||
412 common restart_syscall sys_restart_syscall
|
||||
413 common fadvise64 sys_fadvise64
|
||||
414 common timer_create sys_timer_create
|
||||
415 common timer_settime sys_timer_settime
|
||||
416 common timer_gettime sys_timer_gettime
|
||||
417 common timer_getoverrun sys_timer_getoverrun
|
||||
418 common timer_delete sys_timer_delete
|
||||
419 common clock_settime sys_clock_settime
|
||||
420 common clock_gettime sys_clock_gettime
|
||||
421 common clock_getres sys_clock_getres
|
||||
422 common clock_nanosleep sys_clock_nanosleep
|
||||
423 common semtimedop sys_semtimedop
|
||||
424 common tgkill sys_tgkill
|
||||
425 common stat64 sys_stat64
|
||||
426 common lstat64 sys_lstat64
|
||||
427 common fstat64 sys_fstat64
|
||||
428 common vserver sys_ni_syscall
|
||||
429 common mbind sys_ni_syscall
|
||||
430 common get_mempolicy sys_ni_syscall
|
||||
431 common set_mempolicy sys_ni_syscall
|
||||
432 common mq_open sys_mq_open
|
||||
433 common mq_unlink sys_mq_unlink
|
||||
434 common mq_timedsend sys_mq_timedsend
|
||||
435 common mq_timedreceive sys_mq_timedreceive
|
||||
436 common mq_notify sys_mq_notify
|
||||
437 common mq_getsetattr sys_mq_getsetattr
|
||||
438 common waitid sys_waitid
|
||||
439 common add_key sys_add_key
|
||||
440 common request_key sys_request_key
|
||||
441 common keyctl sys_keyctl
|
||||
442 common ioprio_set sys_ioprio_set
|
||||
443 common ioprio_get sys_ioprio_get
|
||||
444 common inotify_init sys_inotify_init
|
||||
445 common inotify_add_watch sys_inotify_add_watch
|
||||
446 common inotify_rm_watch sys_inotify_rm_watch
|
||||
447 common fdatasync sys_fdatasync
|
||||
448 common kexec_load sys_kexec_load
|
||||
449 common migrate_pages sys_migrate_pages
|
||||
450 common openat sys_openat
|
||||
451 common mkdirat sys_mkdirat
|
||||
452 common mknodat sys_mknodat
|
||||
453 common fchownat sys_fchownat
|
||||
454 common futimesat sys_futimesat
|
||||
455 common fstatat64 sys_fstatat64
|
||||
456 common unlinkat sys_unlinkat
|
||||
457 common renameat sys_renameat
|
||||
458 common linkat sys_linkat
|
||||
459 common symlinkat sys_symlinkat
|
||||
460 common readlinkat sys_readlinkat
|
||||
461 common fchmodat sys_fchmodat
|
||||
462 common faccessat sys_faccessat
|
||||
463 common pselect6 sys_pselect6
|
||||
464 common ppoll sys_ppoll
|
||||
465 common unshare sys_unshare
|
||||
466 common set_robust_list sys_set_robust_list
|
||||
467 common get_robust_list sys_get_robust_list
|
||||
468 common splice sys_splice
|
||||
469 common sync_file_range sys_sync_file_range
|
||||
470 common tee sys_tee
|
||||
471 common vmsplice sys_vmsplice
|
||||
472 common move_pages sys_move_pages
|
||||
473 common getcpu sys_getcpu
|
||||
474 common epoll_pwait sys_epoll_pwait
|
||||
475 common utimensat sys_utimensat
|
||||
476 common signalfd sys_signalfd
|
||||
477 common timerfd sys_ni_syscall
|
||||
478 common eventfd sys_eventfd
|
||||
479 common recvmmsg sys_recvmmsg
|
||||
480 common fallocate sys_fallocate
|
||||
481 common timerfd_create sys_timerfd_create
|
||||
482 common timerfd_settime sys_timerfd_settime
|
||||
483 common timerfd_gettime sys_timerfd_gettime
|
||||
484 common signalfd4 sys_signalfd4
|
||||
485 common eventfd2 sys_eventfd2
|
||||
486 common epoll_create1 sys_epoll_create1
|
||||
487 common dup3 sys_dup3
|
||||
488 common pipe2 sys_pipe2
|
||||
489 common inotify_init1 sys_inotify_init1
|
||||
490 common preadv sys_preadv
|
||||
491 common pwritev sys_pwritev
|
||||
492 common rt_tgsigqueueinfo sys_rt_tgsigqueueinfo
|
||||
493 common perf_event_open sys_perf_event_open
|
||||
494 common fanotify_init sys_fanotify_init
|
||||
495 common fanotify_mark sys_fanotify_mark
|
||||
496 common prlimit64 sys_prlimit64
|
||||
497 common name_to_handle_at sys_name_to_handle_at
|
||||
498 common open_by_handle_at sys_open_by_handle_at
|
||||
499 common clock_adjtime sys_clock_adjtime
|
||||
500 common syncfs sys_syncfs
|
||||
501 common setns sys_setns
|
||||
502 common accept4 sys_accept4
|
||||
503 common sendmmsg sys_sendmmsg
|
||||
504 common process_vm_readv sys_process_vm_readv
|
||||
505 common process_vm_writev sys_process_vm_writev
|
||||
506 common kcmp sys_kcmp
|
||||
507 common finit_module sys_finit_module
|
||||
508 common sched_setattr sys_sched_setattr
|
||||
509 common sched_getattr sys_sched_getattr
|
||||
510 common renameat2 sys_renameat2
|
||||
511 common getrandom sys_getrandom
|
||||
512 common memfd_create sys_memfd_create
|
||||
513 common execveat sys_execveat
|
||||
514 common seccomp sys_seccomp
|
||||
515 common bpf sys_bpf
|
||||
516 common userfaultfd sys_userfaultfd
|
||||
517 common membarrier sys_membarrier
|
||||
518 common mlock2 sys_mlock2
|
||||
519 common copy_file_range sys_copy_file_range
|
||||
520 common preadv2 sys_preadv2
|
||||
521 common pwritev2 sys_pwritev2
|
||||
522 common statx sys_statx
|
||||
523 common io_pgetevents sys_io_pgetevents
|
||||
524 common pkey_mprotect sys_pkey_mprotect
|
||||
525 common pkey_alloc sys_pkey_alloc
|
||||
526 common pkey_free sys_pkey_free
|
||||
527 common rseq sys_rseq
|
||||
528 common statfs64 sys_statfs64
|
||||
529 common fstatfs64 sys_fstatfs64
|
||||
530 common getegid sys_getegid
|
||||
531 common geteuid sys_geteuid
|
||||
532 common getppid sys_getppid
|
||||
# all other architectures have common numbers for new syscall, alpha
|
||||
# is the exception.
|
||||
534 common pidfd_send_signal sys_pidfd_send_signal
|
||||
535 common io_uring_setup sys_io_uring_setup
|
||||
536 common io_uring_enter sys_io_uring_enter
|
||||
537 common io_uring_register sys_io_uring_register
|
||||
538 common open_tree sys_open_tree
|
||||
539 common move_mount sys_move_mount
|
||||
540 common fsopen sys_fsopen
|
||||
541 common fsconfig sys_fsconfig
|
||||
542 common fsmount sys_fsmount
|
||||
543 common fspick sys_fspick
|
||||
544 common pidfd_open sys_pidfd_open
|
||||
545 common clone3 alpha_clone3
|
||||
546 common close_range sys_close_range
|
||||
547 common openat2 sys_openat2
|
||||
548 common pidfd_getfd sys_pidfd_getfd
|
||||
549 common faccessat2 sys_faccessat2
|
||||
550 common process_madvise sys_process_madvise
|
||||
551 common epoll_pwait2 sys_epoll_pwait2
|
||||
552 common mount_setattr sys_mount_setattr
|
||||
553 common quotactl_fd sys_quotactl_fd
|
||||
554 common landlock_create_ruleset sys_landlock_create_ruleset
|
||||
555 common landlock_add_rule sys_landlock_add_rule
|
||||
556 common landlock_restrict_self sys_landlock_restrict_self
|
||||
# 557 reserved for memfd_secret
|
||||
558 common process_mrelease sys_process_mrelease
|
||||
559 common futex_waitv sys_futex_waitv
|
||||
560 common set_mempolicy_home_node sys_ni_syscall
|
||||
561 common cachestat sys_cachestat
|
||||
562 common fchmodat2 sys_fchmodat2
|
||||
563 common map_shadow_stack sys_map_shadow_stack
|
||||
564 common futex_wake sys_futex_wake
|
||||
565 common futex_wait sys_futex_wait
|
||||
566 common futex_requeue sys_futex_requeue
|
||||
567 common statmount sys_statmount
|
||||
568 common listmount sys_listmount
|
||||
569 common lsm_get_self_attr sys_lsm_get_self_attr
|
||||
570 common lsm_set_self_attr sys_lsm_set_self_attr
|
||||
571 common lsm_list_modules sys_lsm_list_modules
|
||||
572 common mseal sys_mseal
|
2
tools/perf/arch/alpha/include/syscall_table.h
Normal file
2
tools/perf/arch/alpha/include/syscall_table.h
Normal file
|
@ -0,0 +1,2 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#include <asm/syscalls_64.h>
|
2
tools/perf/arch/arc/entry/syscalls/Kbuild
Normal file
2
tools/perf/arch/arc/entry/syscalls/Kbuild
Normal file
|
@ -0,0 +1,2 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
syscall-y += syscalls_32.h
|
3
tools/perf/arch/arc/entry/syscalls/Makefile.syscalls
Normal file
3
tools/perf/arch/arc/entry/syscalls/Makefile.syscalls
Normal file
|
@ -0,0 +1,3 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
syscall_abis_32 += arc time32 renameat stat64 rlimit
|
2
tools/perf/arch/arc/include/syscall_table.h
Normal file
2
tools/perf/arch/arc/include/syscall_table.h
Normal file
|
@ -0,0 +1,2 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#include <asm/syscalls_32.h>
|
4
tools/perf/arch/arm/entry/syscalls/Kbuild
Normal file
4
tools/perf/arch/arm/entry/syscalls/Kbuild
Normal file
|
@ -0,0 +1,4 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
syscall_abis_32 += oabi
|
||||
syscalltbl = $(srctree)/tools/perf/arch/arm/entry/syscalls/syscall.tbl
|
2
tools/perf/arch/arm/entry/syscalls/Makefile.syscalls
Normal file
2
tools/perf/arch/arm/entry/syscalls/Makefile.syscalls
Normal file
|
@ -0,0 +1,2 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
syscall-y += syscalls_32.h
|
483
tools/perf/arch/arm/entry/syscalls/syscall.tbl
Normal file
483
tools/perf/arch/arm/entry/syscalls/syscall.tbl
Normal file
|
@ -0,0 +1,483 @@
|
|||
# SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
|
||||
#
|
||||
# Linux system call numbers and entry vectors
|
||||
#
|
||||
# The format is:
|
||||
# <num> <abi> <name> [<entry point> [<oabi compat entry point>]]
|
||||
#
|
||||
# Where abi is:
|
||||
# common - for system calls shared between oabi and eabi (may have compat)
|
||||
# oabi - for oabi-only system calls (may have compat)
|
||||
# eabi - for eabi-only system calls
|
||||
#
|
||||
# For each syscall number, "common" is mutually exclusive with oabi and eabi
|
||||
#
|
||||
0 common restart_syscall sys_restart_syscall
|
||||
1 common exit sys_exit
|
||||
2 common fork sys_fork
|
||||
3 common read sys_read
|
||||
4 common write sys_write
|
||||
5 common open sys_open
|
||||
6 common close sys_close
|
||||
# 7 was sys_waitpid
|
||||
8 common creat sys_creat
|
||||
9 common link sys_link
|
||||
10 common unlink sys_unlink
|
||||
11 common execve sys_execve
|
||||
12 common chdir sys_chdir
|
||||
13 oabi time sys_time32
|
||||
14 common mknod sys_mknod
|
||||
15 common chmod sys_chmod
|
||||
16 common lchown sys_lchown16
|
||||
# 17 was sys_break
|
||||
# 18 was sys_stat
|
||||
19 common lseek sys_lseek
|
||||
20 common getpid sys_getpid
|
||||
21 common mount sys_mount
|
||||
22 oabi umount sys_oldumount
|
||||
23 common setuid sys_setuid16
|
||||
24 common getuid sys_getuid16
|
||||
25 oabi stime sys_stime32
|
||||
26 common ptrace sys_ptrace
|
||||
27 oabi alarm sys_alarm
|
||||
# 28 was sys_fstat
|
||||
29 common pause sys_pause
|
||||
30 oabi utime sys_utime32
|
||||
# 31 was sys_stty
|
||||
# 32 was sys_gtty
|
||||
33 common access sys_access
|
||||
34 common nice sys_nice
|
||||
# 35 was sys_ftime
|
||||
36 common sync sys_sync
|
||||
37 common kill sys_kill
|
||||
38 common rename sys_rename
|
||||
39 common mkdir sys_mkdir
|
||||
40 common rmdir sys_rmdir
|
||||
41 common dup sys_dup
|
||||
42 common pipe sys_pipe
|
||||
43 common times sys_times
|
||||
# 44 was sys_prof
|
||||
45 common brk sys_brk
|
||||
46 common setgid sys_setgid16
|
||||
47 common getgid sys_getgid16
|
||||
# 48 was sys_signal
|
||||
49 common geteuid sys_geteuid16
|
||||
50 common getegid sys_getegid16
|
||||
51 common acct sys_acct
|
||||
52 common umount2 sys_umount
|
||||
# 53 was sys_lock
|
||||
54 common ioctl sys_ioctl
|
||||
55 common fcntl sys_fcntl
|
||||
# 56 was sys_mpx
|
||||
57 common setpgid sys_setpgid
|
||||
# 58 was sys_ulimit
|
||||
# 59 was sys_olduname
|
||||
60 common umask sys_umask
|
||||
61 common chroot sys_chroot
|
||||
62 common ustat sys_ustat
|
||||
63 common dup2 sys_dup2
|
||||
64 common getppid sys_getppid
|
||||
65 common getpgrp sys_getpgrp
|
||||
66 common setsid sys_setsid
|
||||
67 common sigaction sys_sigaction
|
||||
# 68 was sys_sgetmask
|
||||
# 69 was sys_ssetmask
|
||||
70 common setreuid sys_setreuid16
|
||||
71 common setregid sys_setregid16
|
||||
72 common sigsuspend sys_sigsuspend
|
||||
73 common sigpending sys_sigpending
|
||||
74 common sethostname sys_sethostname
|
||||
75 common setrlimit sys_setrlimit
|
||||
# Back compat 2GB limited rlimit
|
||||
76 oabi getrlimit sys_old_getrlimit
|
||||
77 common getrusage sys_getrusage
|
||||
78 common gettimeofday sys_gettimeofday
|
||||
79 common settimeofday sys_settimeofday
|
||||
80 common getgroups sys_getgroups16
|
||||
81 common setgroups sys_setgroups16
|
||||
82 oabi select sys_old_select
|
||||
83 common symlink sys_symlink
|
||||
# 84 was sys_lstat
|
||||
85 common readlink sys_readlink
|
||||
86 common uselib sys_uselib
|
||||
87 common swapon sys_swapon
|
||||
88 common reboot sys_reboot
|
||||
89 oabi readdir sys_old_readdir
|
||||
90 oabi mmap sys_old_mmap
|
||||
91 common munmap sys_munmap
|
||||
92 common truncate sys_truncate
|
||||
93 common ftruncate sys_ftruncate
|
||||
94 common fchmod sys_fchmod
|
||||
95 common fchown sys_fchown16
|
||||
96 common getpriority sys_getpriority
|
||||
97 common setpriority sys_setpriority
|
||||
# 98 was sys_profil
|
||||
99 common statfs sys_statfs
|
||||
100 common fstatfs sys_fstatfs
|
||||
# 101 was sys_ioperm
|
||||
102 oabi socketcall sys_socketcall sys_oabi_socketcall
|
||||
103 common syslog sys_syslog
|
||||
104 common setitimer sys_setitimer
|
||||
105 common getitimer sys_getitimer
|
||||
106 common stat sys_newstat
|
||||
107 common lstat sys_newlstat
|
||||
108 common fstat sys_newfstat
|
||||
# 109 was sys_uname
|
||||
# 110 was sys_iopl
|
||||
111 common vhangup sys_vhangup
|
||||
# 112 was sys_idle
|
||||
# syscall to call a syscall!
|
||||
113 oabi syscall sys_syscall
|
||||
114 common wait4 sys_wait4
|
||||
115 common swapoff sys_swapoff
|
||||
116 common sysinfo sys_sysinfo
|
||||
117 oabi ipc sys_ipc sys_oabi_ipc
|
||||
118 common fsync sys_fsync
|
||||
119 common sigreturn sys_sigreturn_wrapper
|
||||
120 common clone sys_clone
|
||||
121 common setdomainname sys_setdomainname
|
||||
122 common uname sys_newuname
|
||||
# 123 was sys_modify_ldt
|
||||
124 common adjtimex sys_adjtimex_time32
|
||||
125 common mprotect sys_mprotect
|
||||
126 common sigprocmask sys_sigprocmask
|
||||
# 127 was sys_create_module
|
||||
128 common init_module sys_init_module
|
||||
129 common delete_module sys_delete_module
|
||||
# 130 was sys_get_kernel_syms
|
||||
131 common quotactl sys_quotactl
|
||||
132 common getpgid sys_getpgid
|
||||
133 common fchdir sys_fchdir
|
||||
134 common bdflush sys_ni_syscall
|
||||
135 common sysfs sys_sysfs
|
||||
136 common personality sys_personality
|
||||
# 137 was sys_afs_syscall
|
||||
138 common setfsuid sys_setfsuid16
|
||||
139 common setfsgid sys_setfsgid16
|
||||
140 common _llseek sys_llseek
|
||||
141 common getdents sys_getdents
|
||||
142 common _newselect sys_select
|
||||
143 common flock sys_flock
|
||||
144 common msync sys_msync
|
||||
145 common readv sys_readv
|
||||
146 common writev sys_writev
|
||||
147 common getsid sys_getsid
|
||||
148 common fdatasync sys_fdatasync
|
||||
149 common _sysctl sys_ni_syscall
|
||||
150 common mlock sys_mlock
|
||||
151 common munlock sys_munlock
|
||||
152 common mlockall sys_mlockall
|
||||
153 common munlockall sys_munlockall
|
||||
154 common sched_setparam sys_sched_setparam
|
||||
155 common sched_getparam sys_sched_getparam
|
||||
156 common sched_setscheduler sys_sched_setscheduler
|
||||
157 common sched_getscheduler sys_sched_getscheduler
|
||||
158 common sched_yield sys_sched_yield
|
||||
159 common sched_get_priority_max sys_sched_get_priority_max
|
||||
160 common sched_get_priority_min sys_sched_get_priority_min
|
||||
161 common sched_rr_get_interval sys_sched_rr_get_interval_time32
|
||||
162 common nanosleep sys_nanosleep_time32
|
||||
163 common mremap sys_mremap
|
||||
164 common setresuid sys_setresuid16
|
||||
165 common getresuid sys_getresuid16
|
||||
# 166 was sys_vm86
|
||||
# 167 was sys_query_module
|
||||
168 common poll sys_poll
|
||||
169 common nfsservctl
|
||||
170 common setresgid sys_setresgid16
|
||||
171 common getresgid sys_getresgid16
|
||||
172 common prctl sys_prctl
|
||||
173 common rt_sigreturn sys_rt_sigreturn_wrapper
|
||||
174 common rt_sigaction sys_rt_sigaction
|
||||
175 common rt_sigprocmask sys_rt_sigprocmask
|
||||
176 common rt_sigpending sys_rt_sigpending
|
||||
177 common rt_sigtimedwait sys_rt_sigtimedwait_time32
|
||||
178 common rt_sigqueueinfo sys_rt_sigqueueinfo
|
||||
179 common rt_sigsuspend sys_rt_sigsuspend
|
||||
180 common pread64 sys_pread64 sys_oabi_pread64
|
||||
181 common pwrite64 sys_pwrite64 sys_oabi_pwrite64
|
||||
182 common chown sys_chown16
|
||||
183 common getcwd sys_getcwd
|
||||
184 common capget sys_capget
|
||||
185 common capset sys_capset
|
||||
186 common sigaltstack sys_sigaltstack
|
||||
187 common sendfile sys_sendfile
|
||||
# 188 reserved
|
||||
# 189 reserved
|
||||
190 common vfork sys_vfork
|
||||
# SuS compliant getrlimit
|
||||
191 common ugetrlimit sys_getrlimit
|
||||
192 common mmap2 sys_mmap2
|
||||
193 common truncate64 sys_truncate64 sys_oabi_truncate64
|
||||
194 common ftruncate64 sys_ftruncate64 sys_oabi_ftruncate64
|
||||
195 common stat64 sys_stat64 sys_oabi_stat64
|
||||
196 common lstat64 sys_lstat64 sys_oabi_lstat64
|
||||
197 common fstat64 sys_fstat64 sys_oabi_fstat64
|
||||
198 common lchown32 sys_lchown
|
||||
199 common getuid32 sys_getuid
|
||||
200 common getgid32 sys_getgid
|
||||
201 common geteuid32 sys_geteuid
|
||||
202 common getegid32 sys_getegid
|
||||
203 common setreuid32 sys_setreuid
|
||||
204 common setregid32 sys_setregid
|
||||
205 common getgroups32 sys_getgroups
|
||||
206 common setgroups32 sys_setgroups
|
||||
207 common fchown32 sys_fchown
|
||||
208 common setresuid32 sys_setresuid
|
||||
209 common getresuid32 sys_getresuid
|
||||
210 common setresgid32 sys_setresgid
|
||||
211 common getresgid32 sys_getresgid
|
||||
212 common chown32 sys_chown
|
||||
213 common setuid32 sys_setuid
|
||||
214 common setgid32 sys_setgid
|
||||
215 common setfsuid32 sys_setfsuid
|
||||
216 common setfsgid32 sys_setfsgid
|
||||
217 common getdents64 sys_getdents64
|
||||
218 common pivot_root sys_pivot_root
|
||||
219 common mincore sys_mincore
|
||||
220 common madvise sys_madvise
|
||||
221 common fcntl64 sys_fcntl64 sys_oabi_fcntl64
|
||||
# 222 for tux
|
||||
# 223 is unused
|
||||
224 common gettid sys_gettid
|
||||
225 common readahead sys_readahead sys_oabi_readahead
|
||||
226 common setxattr sys_setxattr
|
||||
227 common lsetxattr sys_lsetxattr
|
||||
228 common fsetxattr sys_fsetxattr
|
||||
229 common getxattr sys_getxattr
|
||||
230 common lgetxattr sys_lgetxattr
|
||||
231 common fgetxattr sys_fgetxattr
|
||||
232 common listxattr sys_listxattr
|
||||
233 common llistxattr sys_llistxattr
|
||||
234 common flistxattr sys_flistxattr
|
||||
235 common removexattr sys_removexattr
|
||||
236 common lremovexattr sys_lremovexattr
|
||||
237 common fremovexattr sys_fremovexattr
|
||||
238 common tkill sys_tkill
|
||||
239 common sendfile64 sys_sendfile64
|
||||
240 common futex sys_futex_time32
|
||||
241 common sched_setaffinity sys_sched_setaffinity
|
||||
242 common sched_getaffinity sys_sched_getaffinity
|
||||
243 common io_setup sys_io_setup
|
||||
244 common io_destroy sys_io_destroy
|
||||
245 common io_getevents sys_io_getevents_time32
|
||||
246 common io_submit sys_io_submit
|
||||
247 common io_cancel sys_io_cancel
|
||||
248 common exit_group sys_exit_group
|
||||
249 common lookup_dcookie sys_ni_syscall
|
||||
250 common epoll_create sys_epoll_create
|
||||
251 common epoll_ctl sys_epoll_ctl sys_oabi_epoll_ctl
|
||||
252 common epoll_wait sys_epoll_wait
|
||||
253 common remap_file_pages sys_remap_file_pages
|
||||
# 254 for set_thread_area
|
||||
# 255 for get_thread_area
|
||||
256 common set_tid_address sys_set_tid_address
|
||||
257 common timer_create sys_timer_create
|
||||
258 common timer_settime sys_timer_settime32
|
||||
259 common timer_gettime sys_timer_gettime32
|
||||
260 common timer_getoverrun sys_timer_getoverrun
|
||||
261 common timer_delete sys_timer_delete
|
||||
262 common clock_settime sys_clock_settime32
|
||||
263 common clock_gettime sys_clock_gettime32
|
||||
264 common clock_getres sys_clock_getres_time32
|
||||
265 common clock_nanosleep sys_clock_nanosleep_time32
|
||||
266 common statfs64 sys_statfs64_wrapper
|
||||
267 common fstatfs64 sys_fstatfs64_wrapper
|
||||
268 common tgkill sys_tgkill
|
||||
269 common utimes sys_utimes_time32
|
||||
270 common arm_fadvise64_64 sys_arm_fadvise64_64
|
||||
271 common pciconfig_iobase sys_pciconfig_iobase
|
||||
272 common pciconfig_read sys_pciconfig_read
|
||||
273 common pciconfig_write sys_pciconfig_write
|
||||
274 common mq_open sys_mq_open
|
||||
275 common mq_unlink sys_mq_unlink
|
||||
276 common mq_timedsend sys_mq_timedsend_time32
|
||||
277 common mq_timedreceive sys_mq_timedreceive_time32
|
||||
278 common mq_notify sys_mq_notify
|
||||
279 common mq_getsetattr sys_mq_getsetattr
|
||||
280 common waitid sys_waitid
|
||||
281 common socket sys_socket
|
||||
282 common bind sys_bind sys_oabi_bind
|
||||
283 common connect sys_connect sys_oabi_connect
|
||||
284 common listen sys_listen
|
||||
285 common accept sys_accept
|
||||
286 common getsockname sys_getsockname
|
||||
287 common getpeername sys_getpeername
|
||||
288 common socketpair sys_socketpair
|
||||
289 common send sys_send
|
||||
290 common sendto sys_sendto sys_oabi_sendto
|
||||
291 common recv sys_recv
|
||||
292 common recvfrom sys_recvfrom
|
||||
293 common shutdown sys_shutdown
|
||||
294 common setsockopt sys_setsockopt
|
||||
295 common getsockopt sys_getsockopt
|
||||
296 common sendmsg sys_sendmsg sys_oabi_sendmsg
|
||||
297 common recvmsg sys_recvmsg
|
||||
298 common semop sys_semop sys_oabi_semop
|
||||
299 common semget sys_semget
|
||||
300 common semctl sys_old_semctl
|
||||
301 common msgsnd sys_msgsnd
|
||||
302 common msgrcv sys_msgrcv
|
||||
303 common msgget sys_msgget
|
||||
304 common msgctl sys_old_msgctl
|
||||
305 common shmat sys_shmat
|
||||
306 common shmdt sys_shmdt
|
||||
307 common shmget sys_shmget
|
||||
308 common shmctl sys_old_shmctl
|
||||
309 common add_key sys_add_key
|
||||
310 common request_key sys_request_key
|
||||
311 common keyctl sys_keyctl
|
||||
312 common semtimedop sys_semtimedop_time32 sys_oabi_semtimedop
|
||||
313 common vserver
|
||||
314 common ioprio_set sys_ioprio_set
|
||||
315 common ioprio_get sys_ioprio_get
|
||||
316 common inotify_init sys_inotify_init
|
||||
317 common inotify_add_watch sys_inotify_add_watch
|
||||
318 common inotify_rm_watch sys_inotify_rm_watch
|
||||
319 common mbind sys_mbind
|
||||
320 common get_mempolicy sys_get_mempolicy
|
||||
321 common set_mempolicy sys_set_mempolicy
|
||||
322 common openat sys_openat
|
||||
323 common mkdirat sys_mkdirat
|
||||
324 common mknodat sys_mknodat
|
||||
325 common fchownat sys_fchownat
|
||||
326 common futimesat sys_futimesat_time32
|
||||
327 common fstatat64 sys_fstatat64 sys_oabi_fstatat64
|
||||
328 common unlinkat sys_unlinkat
|
||||
329 common renameat sys_renameat
|
||||
330 common linkat sys_linkat
|
||||
331 common symlinkat sys_symlinkat
|
||||
332 common readlinkat sys_readlinkat
|
||||
333 common fchmodat sys_fchmodat
|
||||
334 common faccessat sys_faccessat
|
||||
335 common pselect6 sys_pselect6_time32
|
||||
336 common ppoll sys_ppoll_time32
|
||||
337 common unshare sys_unshare
|
||||
338 common set_robust_list sys_set_robust_list
|
||||
339 common get_robust_list sys_get_robust_list
|
||||
340 common splice sys_splice
|
||||
341 common arm_sync_file_range sys_sync_file_range2
|
||||
342 common tee sys_tee
|
||||
343 common vmsplice sys_vmsplice
|
||||
344 common move_pages sys_move_pages
|
||||
345 common getcpu sys_getcpu
|
||||
346 common epoll_pwait sys_epoll_pwait
|
||||
347 common kexec_load sys_kexec_load
|
||||
348 common utimensat sys_utimensat_time32
|
||||
349 common signalfd sys_signalfd
|
||||
350 common timerfd_create sys_timerfd_create
|
||||
351 common eventfd sys_eventfd
|
||||
352 common fallocate sys_fallocate
|
||||
353 common timerfd_settime sys_timerfd_settime32
|
||||
354 common timerfd_gettime sys_timerfd_gettime32
|
||||
355 common signalfd4 sys_signalfd4
|
||||
356 common eventfd2 sys_eventfd2
|
||||
357 common epoll_create1 sys_epoll_create1
|
||||
358 common dup3 sys_dup3
|
||||
359 common pipe2 sys_pipe2
|
||||
360 common inotify_init1 sys_inotify_init1
|
||||
361 common preadv sys_preadv
|
||||
362 common pwritev sys_pwritev
|
||||
363 common rt_tgsigqueueinfo sys_rt_tgsigqueueinfo
|
||||
364 common perf_event_open sys_perf_event_open
|
||||
365 common recvmmsg sys_recvmmsg_time32
|
||||
366 common accept4 sys_accept4
|
||||
367 common fanotify_init sys_fanotify_init
|
||||
368 common fanotify_mark sys_fanotify_mark
|
||||
369 common prlimit64 sys_prlimit64
|
||||
370 common name_to_handle_at sys_name_to_handle_at
|
||||
371 common open_by_handle_at sys_open_by_handle_at
|
||||
372 common clock_adjtime sys_clock_adjtime32
|
||||
373 common syncfs sys_syncfs
|
||||
374 common sendmmsg sys_sendmmsg
|
||||
375 common setns sys_setns
|
||||
376 common process_vm_readv sys_process_vm_readv
|
||||
377 common process_vm_writev sys_process_vm_writev
|
||||
378 common kcmp sys_kcmp
|
||||
379 common finit_module sys_finit_module
|
||||
380 common sched_setattr sys_sched_setattr
|
||||
381 common sched_getattr sys_sched_getattr
|
||||
382 common renameat2 sys_renameat2
|
||||
383 common seccomp sys_seccomp
|
||||
384 common getrandom sys_getrandom
|
||||
385 common memfd_create sys_memfd_create
|
||||
386 common bpf sys_bpf
|
||||
387 common execveat sys_execveat
|
||||
388 common userfaultfd sys_userfaultfd
|
||||
389 common membarrier sys_membarrier
|
||||
390 common mlock2 sys_mlock2
|
||||
391 common copy_file_range sys_copy_file_range
|
||||
392 common preadv2 sys_preadv2
|
||||
393 common pwritev2 sys_pwritev2
|
||||
394 common pkey_mprotect sys_pkey_mprotect
|
||||
395 common pkey_alloc sys_pkey_alloc
|
||||
396 common pkey_free sys_pkey_free
|
||||
397 common statx sys_statx
|
||||
398 common rseq sys_rseq
|
||||
399 common io_pgetevents sys_io_pgetevents_time32
|
||||
400 common migrate_pages sys_migrate_pages
|
||||
401 common kexec_file_load sys_kexec_file_load
|
||||
# 402 is unused
|
||||
403 common clock_gettime64 sys_clock_gettime
|
||||
404 common clock_settime64 sys_clock_settime
|
||||
405 common clock_adjtime64 sys_clock_adjtime
|
||||
406 common clock_getres_time64 sys_clock_getres
|
||||
407 common clock_nanosleep_time64 sys_clock_nanosleep
|
||||
408 common timer_gettime64 sys_timer_gettime
|
||||
409 common timer_settime64 sys_timer_settime
|
||||
410 common timerfd_gettime64 sys_timerfd_gettime
|
||||
411 common timerfd_settime64 sys_timerfd_settime
|
||||
412 common utimensat_time64 sys_utimensat
|
||||
413 common pselect6_time64 sys_pselect6
|
||||
414 common ppoll_time64 sys_ppoll
|
||||
416 common io_pgetevents_time64 sys_io_pgetevents
|
||||
417 common recvmmsg_time64 sys_recvmmsg
|
||||
418 common mq_timedsend_time64 sys_mq_timedsend
|
||||
419 common mq_timedreceive_time64 sys_mq_timedreceive
|
||||
420 common semtimedop_time64 sys_semtimedop
|
||||
421 common rt_sigtimedwait_time64 sys_rt_sigtimedwait
|
||||
422 common futex_time64 sys_futex
|
||||
423 common sched_rr_get_interval_time64 sys_sched_rr_get_interval
|
||||
424 common pidfd_send_signal sys_pidfd_send_signal
|
||||
425 common io_uring_setup sys_io_uring_setup
|
||||
426 common io_uring_enter sys_io_uring_enter
|
||||
427 common io_uring_register sys_io_uring_register
|
||||
428 common open_tree sys_open_tree
|
||||
429 common move_mount sys_move_mount
|
||||
430 common fsopen sys_fsopen
|
||||
431 common fsconfig sys_fsconfig
|
||||
432 common fsmount sys_fsmount
|
||||
433 common fspick sys_fspick
|
||||
434 common pidfd_open sys_pidfd_open
|
||||
435 common clone3 sys_clone3
|
||||
436 common close_range sys_close_range
|
||||
437 common openat2 sys_openat2
|
||||
438 common pidfd_getfd sys_pidfd_getfd
|
||||
439 common faccessat2 sys_faccessat2
|
||||
440 common process_madvise sys_process_madvise
|
||||
441 common epoll_pwait2 sys_epoll_pwait2
|
||||
442 common mount_setattr sys_mount_setattr
|
||||
443 common quotactl_fd sys_quotactl_fd
|
||||
444 common landlock_create_ruleset sys_landlock_create_ruleset
|
||||
445 common landlock_add_rule sys_landlock_add_rule
|
||||
446 common landlock_restrict_self sys_landlock_restrict_self
|
||||
# 447 reserved for memfd_secret
|
||||
448 common process_mrelease sys_process_mrelease
|
||||
449 common futex_waitv sys_futex_waitv
|
||||
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
|
||||
451 common cachestat sys_cachestat
|
||||
452 common fchmodat2 sys_fchmodat2
|
||||
453 common map_shadow_stack sys_map_shadow_stack
|
||||
454 common futex_wake sys_futex_wake
|
||||
455 common futex_wait sys_futex_wait
|
||||
456 common futex_requeue sys_futex_requeue
|
||||
457 common statmount sys_statmount
|
||||
458 common listmount sys_listmount
|
||||
459 common lsm_get_self_attr sys_lsm_get_self_attr
|
||||
460 common lsm_set_self_attr sys_lsm_set_self_attr
|
||||
461 common lsm_list_modules sys_lsm_list_modules
|
||||
462 common mseal sys_mseal
|
||||
463 common setxattrat sys_setxattrat
|
||||
464 common getxattrat sys_getxattrat
|
||||
465 common listxattrat sys_listxattrat
|
||||
466 common removexattrat sys_removexattrat
|
2
tools/perf/arch/arm/include/syscall_table.h
Normal file
2
tools/perf/arch/arm/include/syscall_table.h
Normal file
|
@ -0,0 +1,2 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#include <asm/syscalls_32.h>
|
|
@ -1,25 +1,3 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
PERF_HAVE_JITDUMP := 1
|
||||
HAVE_KVM_STAT_SUPPORT := 1
|
||||
|
||||
#
|
||||
# Syscall table generation for perf
|
||||
#
|
||||
|
||||
out := $(OUTPUT)arch/arm64/include/generated/asm
|
||||
header := $(out)/syscalls.c
|
||||
incpath := $(srctree)/tools
|
||||
sysdef := $(srctree)/tools/arch/arm64/include/uapi/asm/unistd.h
|
||||
sysprf := $(srctree)/tools/perf/arch/arm64/entry/syscalls/
|
||||
systbl := $(sysprf)/mksyscalltbl
|
||||
|
||||
# Create output directory if not already present
|
||||
$(shell [ -d '$(out)' ] || mkdir -p '$(out)')
|
||||
|
||||
$(header): $(sysdef) $(systbl)
|
||||
$(Q)$(SHELL) '$(systbl)' '$(CC)' '$(HOSTCC)' $(incpath) $(sysdef) > $@
|
||||
|
||||
clean::
|
||||
$(call QUIET_CLEAN, arm64) $(RM) $(header)
|
||||
|
||||
archheaders: $(header)
|
||||
|
|
3
tools/perf/arch/arm64/entry/syscalls/Kbuild
Normal file
3
tools/perf/arch/arm64/entry/syscalls/Kbuild
Normal file
|
@ -0,0 +1,3 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
syscall-y += syscalls_32.h
|
||||
syscall-y += syscalls_64.h
|
6
tools/perf/arch/arm64/entry/syscalls/Makefile.syscalls
Normal file
6
tools/perf/arch/arm64/entry/syscalls/Makefile.syscalls
Normal file
|
@ -0,0 +1,6 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
syscall_abis_32 +=
|
||||
syscall_abis_64 += renameat rlimit memfd_secret
|
||||
|
||||
syscalltbl = $(srctree)/tools/perf/arch/arm64/entry/syscalls/syscall_%.tbl
|
|
@ -1,46 +0,0 @@
|
|||
#!/bin/sh
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
#
|
||||
# Generate system call table for perf. Derived from
|
||||
# powerpc script.
|
||||
#
|
||||
# Copyright IBM Corp. 2017
|
||||
# Author(s): Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
|
||||
# Changed by: Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com>
|
||||
# Changed by: Kim Phillips <kim.phillips@arm.com>
|
||||
|
||||
gcc=$1
|
||||
hostcc=$2
|
||||
incpath=$3
|
||||
input=$4
|
||||
|
||||
if ! test -r $input; then
|
||||
echo "Could not read input file" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
create_sc_table()
|
||||
{
|
||||
local sc nr max_nr
|
||||
|
||||
while read sc nr; do
|
||||
printf "%s\n" " [$nr] = \"$sc\","
|
||||
max_nr=$nr
|
||||
done
|
||||
|
||||
echo "#define SYSCALLTBL_ARM64_MAX_ID $max_nr"
|
||||
}
|
||||
|
||||
create_table()
|
||||
{
|
||||
echo "#include \"$input\""
|
||||
echo "static const char *const syscalltbl_arm64[] = {"
|
||||
create_sc_table
|
||||
echo "};"
|
||||
}
|
||||
|
||||
$gcc -E -dM -x c -I $incpath/include/uapi $input \
|
||||
|awk '$2 ~ "__NR" && $3 !~ "__NR3264_" {
|
||||
sub("^#define __NR(3264)?_", "");
|
||||
print | "sort -k2 -n"}' \
|
||||
|create_table
|
476
tools/perf/arch/arm64/entry/syscalls/syscall_32.tbl
Normal file
476
tools/perf/arch/arm64/entry/syscalls/syscall_32.tbl
Normal file
|
@ -0,0 +1,476 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
# AArch32 (compat) system call definitions.
|
||||
#
|
||||
# Copyright (C) 2001-2005 Russell King
|
||||
# Copyright (C) 2012 ARM Ltd.
|
||||
#
|
||||
# This file corresponds to arch/arm/tools/syscall.tbl
|
||||
# for the native EABI syscalls and should be kept in sync
|
||||
# Instead of the OABI syscalls, it contains pointers to
|
||||
# the compat entry points where they differ from the native
|
||||
# syscalls.
|
||||
#
|
||||
0 common restart_syscall sys_restart_syscall
|
||||
1 common exit sys_exit
|
||||
2 common fork sys_fork
|
||||
3 common read sys_read
|
||||
4 common write sys_write
|
||||
5 common open sys_open compat_sys_open
|
||||
6 common close sys_close
|
||||
# 7 was sys_waitpid
|
||||
8 common creat sys_creat
|
||||
9 common link sys_link
|
||||
10 common unlink sys_unlink
|
||||
11 common execve sys_execve compat_sys_execve
|
||||
12 common chdir sys_chdir
|
||||
# 13 was sys_time
|
||||
14 common mknod sys_mknod
|
||||
15 common chmod sys_chmod
|
||||
16 common lchown sys_lchown16
|
||||
# 17 was sys_break
|
||||
# 18 was sys_stat
|
||||
19 common lseek sys_lseek compat_sys_lseek
|
||||
20 common getpid sys_getpid
|
||||
21 common mount sys_mount
|
||||
# 22 was sys_umount
|
||||
23 common setuid sys_setuid16
|
||||
24 common getuid sys_getuid16
|
||||
# 25 was sys_stime
|
||||
26 common ptrace sys_ptrace compat_sys_ptrace
|
||||
# 27 was sys_alarm
|
||||
# 28 was sys_fstat
|
||||
29 common pause sys_pause
|
||||
# 30 was sys_utime
|
||||
# 31 was sys_stty
|
||||
# 32 was sys_gtty
|
||||
33 common access sys_access
|
||||
34 common nice sys_nice
|
||||
# 35 was sys_ftime
|
||||
36 common sync sys_sync
|
||||
37 common kill sys_kill
|
||||
38 common rename sys_rename
|
||||
39 common mkdir sys_mkdir
|
||||
40 common rmdir sys_rmdir
|
||||
41 common dup sys_dup
|
||||
42 common pipe sys_pipe
|
||||
43 common times sys_times compat_sys_times
|
||||
# 44 was sys_prof
|
||||
45 common brk sys_brk
|
||||
46 common setgid sys_setgid16
|
||||
47 common getgid sys_getgid16
|
||||
# 48 was sys_signal
|
||||
49 common geteuid sys_geteuid16
|
||||
50 common getegid sys_getegid16
|
||||
51 common acct sys_acct
|
||||
52 common umount2 sys_umount
|
||||
# 53 was sys_lock
|
||||
54 common ioctl sys_ioctl compat_sys_ioctl
|
||||
55 common fcntl sys_fcntl compat_sys_fcntl
|
||||
# 56 was sys_mpx
|
||||
57 common setpgid sys_setpgid
|
||||
# 58 was sys_ulimit
|
||||
# 59 was sys_olduname
|
||||
60 common umask sys_umask
|
||||
61 common chroot sys_chroot
|
||||
62 common ustat sys_ustat compat_sys_ustat
|
||||
63 common dup2 sys_dup2
|
||||
64 common getppid sys_getppid
|
||||
65 common getpgrp sys_getpgrp
|
||||
66 common setsid sys_setsid
|
||||
67 common sigaction sys_sigaction compat_sys_sigaction
|
||||
# 68 was sys_sgetmask
|
||||
# 69 was sys_ssetmask
|
||||
70 common setreuid sys_setreuid16
|
||||
71 common setregid sys_setregid16
|
||||
72 common sigsuspend sys_sigsuspend
|
||||
73 common sigpending sys_sigpending compat_sys_sigpending
|
||||
74 common sethostname sys_sethostname
|
||||
75 common setrlimit sys_setrlimit compat_sys_setrlimit
|
||||
# 76 was compat_sys_getrlimit
|
||||
77 common getrusage sys_getrusage compat_sys_getrusage
|
||||
78 common gettimeofday sys_gettimeofday compat_sys_gettimeofday
|
||||
79 common settimeofday sys_settimeofday compat_sys_settimeofday
|
||||
80 common getgroups sys_getgroups16
|
||||
81 common setgroups sys_setgroups16
|
||||
# 82 was compat_sys_select
|
||||
83 common symlink sys_symlink
|
||||
# 84 was sys_lstat
|
||||
85 common readlink sys_readlink
|
||||
86 common uselib sys_uselib
|
||||
87 common swapon sys_swapon
|
||||
88 common reboot sys_reboot
|
||||
# 89 was sys_readdir
|
||||
# 90 was sys_mmap
|
||||
91 common munmap sys_munmap
|
||||
92 common truncate sys_truncate compat_sys_truncate
|
||||
93 common ftruncate sys_ftruncate compat_sys_ftruncate
|
||||
94 common fchmod sys_fchmod
|
||||
95 common fchown sys_fchown16
|
||||
96 common getpriority sys_getpriority
|
||||
97 common setpriority sys_setpriority
|
||||
# 98 was sys_profil
|
||||
99 common statfs sys_statfs compat_sys_statfs
|
||||
100 common fstatfs sys_fstatfs compat_sys_fstatfs
|
||||
# 101 was sys_ioperm
|
||||
# 102 was sys_socketcall
|
||||
103 common syslog sys_syslog
|
||||
104 common setitimer sys_setitimer compat_sys_setitimer
|
||||
105 common getitimer sys_getitimer compat_sys_getitimer
|
||||
106 common stat sys_newstat compat_sys_newstat
|
||||
107 common lstat sys_newlstat compat_sys_newlstat
|
||||
108 common fstat sys_newfstat compat_sys_newfstat
|
||||
# 109 was sys_uname
|
||||
# 110 was sys_iopl
|
||||
111 common vhangup sys_vhangup
|
||||
# 112 was sys_idle
|
||||
# 113 was sys_syscall
|
||||
114 common wait4 sys_wait4 compat_sys_wait4
|
||||
115 common swapoff sys_swapoff
|
||||
116 common sysinfo sys_sysinfo compat_sys_sysinfo
|
||||
# 117 was sys_ipc
|
||||
118 common fsync sys_fsync
|
||||
119 common sigreturn sys_sigreturn_wrapper compat_sys_sigreturn
|
||||
120 common clone sys_clone
|
||||
121 common setdomainname sys_setdomainname
|
||||
122 common uname sys_newuname
|
||||
# 123 was sys_modify_ldt
|
||||
124 common adjtimex sys_adjtimex_time32
|
||||
125 common mprotect sys_mprotect
|
||||
126 common sigprocmask sys_sigprocmask compat_sys_sigprocmask
|
||||
# 127 was sys_create_module
|
||||
128 common init_module sys_init_module
|
||||
129 common delete_module sys_delete_module
|
||||
# 130 was sys_get_kernel_syms
|
||||
131 common quotactl sys_quotactl
|
||||
132 common getpgid sys_getpgid
|
||||
133 common fchdir sys_fchdir
|
||||
134 common bdflush sys_ni_syscall
|
||||
135 common sysfs sys_sysfs
|
||||
136 common personality sys_personality
|
||||
# 137 was sys_afs_syscall
|
||||
138 common setfsuid sys_setfsuid16
|
||||
139 common setfsgid sys_setfsgid16
|
||||
140 common _llseek sys_llseek
|
||||
141 common getdents sys_getdents compat_sys_getdents
|
||||
142 common _newselect sys_select compat_sys_select
|
||||
143 common flock sys_flock
|
||||
144 common msync sys_msync
|
||||
145 common readv sys_readv
|
||||
146 common writev sys_writev
|
||||
147 common getsid sys_getsid
|
||||
148 common fdatasync sys_fdatasync
|
||||
149 common _sysctl sys_ni_syscall
|
||||
150 common mlock sys_mlock
|
||||
151 common munlock sys_munlock
|
||||
152 common mlockall sys_mlockall
|
||||
153 common munlockall sys_munlockall
|
||||
154 common sched_setparam sys_sched_setparam
|
||||
155 common sched_getparam sys_sched_getparam
|
||||
156 common sched_setscheduler sys_sched_setscheduler
|
||||
157 common sched_getscheduler sys_sched_getscheduler
|
||||
158 common sched_yield sys_sched_yield
|
||||
159 common sched_get_priority_max sys_sched_get_priority_max
|
||||
160 common sched_get_priority_min sys_sched_get_priority_min
|
||||
161 common sched_rr_get_interval sys_sched_rr_get_interval_time32
|
||||
162 common nanosleep sys_nanosleep_time32
|
||||
163 common mremap sys_mremap
|
||||
164 common setresuid sys_setresuid16
|
||||
165 common getresuid sys_getresuid16
|
||||
# 166 was sys_vm86
|
||||
# 167 was sys_query_module
|
||||
168 common poll sys_poll
|
||||
169 common nfsservctl sys_ni_syscall
|
||||
170 common setresgid sys_setresgid16
|
||||
171 common getresgid sys_getresgid16
|
||||
172 common prctl sys_prctl
|
||||
173 common rt_sigreturn sys_rt_sigreturn_wrapper compat_sys_rt_sigreturn
|
||||
174 common rt_sigaction sys_rt_sigaction compat_sys_rt_sigaction
|
||||
175 common rt_sigprocmask sys_rt_sigprocmask compat_sys_rt_sigprocmask
|
||||
176 common rt_sigpending sys_rt_sigpending compat_sys_rt_sigpending
|
||||
177 common rt_sigtimedwait sys_rt_sigtimedwait_time32 compat_sys_rt_sigtimedwait_time32
|
||||
178 common rt_sigqueueinfo sys_rt_sigqueueinfo compat_sys_rt_sigqueueinfo
|
||||
179 common rt_sigsuspend sys_rt_sigsuspend compat_sys_rt_sigsuspend
|
||||
180 common pread64 sys_pread64 compat_sys_aarch32_pread64
|
||||
181 common pwrite64 sys_pwrite64 compat_sys_aarch32_pwrite64
|
||||
182 common chown sys_chown16
|
||||
183 common getcwd sys_getcwd
|
||||
184 common capget sys_capget
|
||||
185 common capset sys_capset
|
||||
186 common sigaltstack sys_sigaltstack compat_sys_sigaltstack
|
||||
187 common sendfile sys_sendfile compat_sys_sendfile
|
||||
# 188 reserved
|
||||
# 189 reserved
|
||||
190 common vfork sys_vfork
|
||||
# SuS compliant getrlimit
|
||||
191 common ugetrlimit sys_getrlimit compat_sys_getrlimit
|
||||
192 common mmap2 sys_mmap2 compat_sys_aarch32_mmap2
|
||||
193 common truncate64 sys_truncate64 compat_sys_aarch32_truncate64
|
||||
194 common ftruncate64 sys_ftruncate64 compat_sys_aarch32_ftruncate64
|
||||
195 common stat64 sys_stat64
|
||||
196 common lstat64 sys_lstat64
|
||||
197 common fstat64 sys_fstat64
|
||||
198 common lchown32 sys_lchown
|
||||
199 common getuid32 sys_getuid
|
||||
200 common getgid32 sys_getgid
|
||||
201 common geteuid32 sys_geteuid
|
||||
202 common getegid32 sys_getegid
|
||||
203 common setreuid32 sys_setreuid
|
||||
204 common setregid32 sys_setregid
|
||||
205 common getgroups32 sys_getgroups
|
||||
206 common setgroups32 sys_setgroups
|
||||
207 common fchown32 sys_fchown
|
||||
208 common setresuid32 sys_setresuid
|
||||
209 common getresuid32 sys_getresuid
|
||||
210 common setresgid32 sys_setresgid
|
||||
211 common getresgid32 sys_getresgid
|
||||
212 common chown32 sys_chown
|
||||
213 common setuid32 sys_setuid
|
||||
214 common setgid32 sys_setgid
|
||||
215 common setfsuid32 sys_setfsuid
|
||||
216 common setfsgid32 sys_setfsgid
|
||||
217 common getdents64 sys_getdents64
|
||||
218 common pivot_root sys_pivot_root
|
||||
219 common mincore sys_mincore
|
||||
220 common madvise sys_madvise
|
||||
221 common fcntl64 sys_fcntl64 compat_sys_fcntl64
|
||||
# 222 for tux
|
||||
# 223 is unused
|
||||
224 common gettid sys_gettid
|
||||
225 common readahead sys_readahead compat_sys_aarch32_readahead
|
||||
226 common setxattr sys_setxattr
|
||||
227 common lsetxattr sys_lsetxattr
|
||||
228 common fsetxattr sys_fsetxattr
|
||||
229 common getxattr sys_getxattr
|
||||
230 common lgetxattr sys_lgetxattr
|
||||
231 common fgetxattr sys_fgetxattr
|
||||
232 common listxattr sys_listxattr
|
||||
233 common llistxattr sys_llistxattr
|
||||
234 common flistxattr sys_flistxattr
|
||||
235 common removexattr sys_removexattr
|
||||
236 common lremovexattr sys_lremovexattr
|
||||
237 common fremovexattr sys_fremovexattr
|
||||
238 common tkill sys_tkill
|
||||
239 common sendfile64 sys_sendfile64
|
||||
240 common futex sys_futex_time32
|
||||
241 common sched_setaffinity sys_sched_setaffinity compat_sys_sched_setaffinity
|
||||
242 common sched_getaffinity sys_sched_getaffinity compat_sys_sched_getaffinity
|
||||
243 common io_setup sys_io_setup compat_sys_io_setup
|
||||
244 common io_destroy sys_io_destroy
|
||||
245 common io_getevents sys_io_getevents_time32
|
||||
246 common io_submit sys_io_submit compat_sys_io_submit
|
||||
247 common io_cancel sys_io_cancel
|
||||
248 common exit_group sys_exit_group
|
||||
249 common lookup_dcookie sys_ni_syscall
|
||||
250 common epoll_create sys_epoll_create
|
||||
251 common epoll_ctl sys_epoll_ctl
|
||||
252 common epoll_wait sys_epoll_wait
|
||||
253 common remap_file_pages sys_remap_file_pages
|
||||
# 254 for set_thread_area
|
||||
# 255 for get_thread_area
|
||||
256 common set_tid_address sys_set_tid_address
|
||||
257 common timer_create sys_timer_create compat_sys_timer_create
|
||||
258 common timer_settime sys_timer_settime32
|
||||
259 common timer_gettime sys_timer_gettime32
|
||||
260 common timer_getoverrun sys_timer_getoverrun
|
||||
261 common timer_delete sys_timer_delete
|
||||
262 common clock_settime sys_clock_settime32
|
||||
263 common clock_gettime sys_clock_gettime32
|
||||
264 common clock_getres sys_clock_getres_time32
|
||||
265 common clock_nanosleep sys_clock_nanosleep_time32
|
||||
266 common statfs64 sys_statfs64_wrapper compat_sys_aarch32_statfs64
|
||||
267 common fstatfs64 sys_fstatfs64_wrapper compat_sys_aarch32_fstatfs64
|
||||
268 common tgkill sys_tgkill
|
||||
269 common utimes sys_utimes_time32
|
||||
270 common arm_fadvise64_64 sys_arm_fadvise64_64 compat_sys_aarch32_fadvise64_64
|
||||
271 common pciconfig_iobase sys_pciconfig_iobase
|
||||
272 common pciconfig_read sys_pciconfig_read
|
||||
273 common pciconfig_write sys_pciconfig_write
|
||||
274 common mq_open sys_mq_open compat_sys_mq_open
|
||||
275 common mq_unlink sys_mq_unlink
|
||||
276 common mq_timedsend sys_mq_timedsend_time32
|
||||
277 common mq_timedreceive sys_mq_timedreceive_time32
|
||||
278 common mq_notify sys_mq_notify compat_sys_mq_notify
|
||||
279 common mq_getsetattr sys_mq_getsetattr compat_sys_mq_getsetattr
|
||||
280 common waitid sys_waitid compat_sys_waitid
|
||||
281 common socket sys_socket
|
||||
282 common bind sys_bind
|
||||
283 common connect sys_connect
|
||||
284 common listen sys_listen
|
||||
285 common accept sys_accept
|
||||
286 common getsockname sys_getsockname
|
||||
287 common getpeername sys_getpeername
|
||||
288 common socketpair sys_socketpair
|
||||
289 common send sys_send
|
||||
290 common sendto sys_sendto
|
||||
291 common recv sys_recv compat_sys_recv
|
||||
292 common recvfrom sys_recvfrom compat_sys_recvfrom
|
||||
293 common shutdown sys_shutdown
|
||||
294 common setsockopt sys_setsockopt
|
||||
295 common getsockopt sys_getsockopt
|
||||
296 common sendmsg sys_sendmsg compat_sys_sendmsg
|
||||
297 common recvmsg sys_recvmsg compat_sys_recvmsg
|
||||
298 common semop sys_semop
|
||||
299 common semget sys_semget
|
||||
300 common semctl sys_old_semctl compat_sys_old_semctl
|
||||
301 common msgsnd sys_msgsnd compat_sys_msgsnd
|
||||
302 common msgrcv sys_msgrcv compat_sys_msgrcv
|
||||
303 common msgget sys_msgget
|
||||
304 common msgctl sys_old_msgctl compat_sys_old_msgctl
|
||||
305 common shmat sys_shmat compat_sys_shmat
|
||||
306 common shmdt sys_shmdt
|
||||
307 common shmget sys_shmget
|
||||
308 common shmctl sys_old_shmctl compat_sys_old_shmctl
|
||||
309 common add_key sys_add_key
|
||||
310 common request_key sys_request_key
|
||||
311 common keyctl sys_keyctl compat_sys_keyctl
|
||||
312 common semtimedop sys_semtimedop_time32
|
||||
313 common vserver sys_ni_syscall
|
||||
314 common ioprio_set sys_ioprio_set
|
||||
315 common ioprio_get sys_ioprio_get
|
||||
316 common inotify_init sys_inotify_init
|
||||
317 common inotify_add_watch sys_inotify_add_watch
|
||||
318 common inotify_rm_watch sys_inotify_rm_watch
|
||||
319 common mbind sys_mbind
|
||||
320 common get_mempolicy sys_get_mempolicy
|
||||
321 common set_mempolicy sys_set_mempolicy
|
||||
322 common openat sys_openat compat_sys_openat
|
||||
323 common mkdirat sys_mkdirat
|
||||
324 common mknodat sys_mknodat
|
||||
325 common fchownat sys_fchownat
|
||||
326 common futimesat sys_futimesat_time32
|
||||
327 common fstatat64 sys_fstatat64
|
||||
328 common unlinkat sys_unlinkat
|
||||
329 common renameat sys_renameat
|
||||
330 common linkat sys_linkat
|
||||
331 common symlinkat sys_symlinkat
|
||||
332 common readlinkat sys_readlinkat
|
||||
333 common fchmodat sys_fchmodat
|
||||
334 common faccessat sys_faccessat
|
||||
335 common pselect6 sys_pselect6_time32 compat_sys_pselect6_time32
|
||||
336 common ppoll sys_ppoll_time32 compat_sys_ppoll_time32
|
||||
337 common unshare sys_unshare
|
||||
338 common set_robust_list sys_set_robust_list compat_sys_set_robust_list
|
||||
339 common get_robust_list sys_get_robust_list compat_sys_get_robust_list
|
||||
340 common splice sys_splice
|
||||
341 common arm_sync_file_range sys_sync_file_range2 compat_sys_aarch32_sync_file_range2
|
||||
342 common tee sys_tee
|
||||
343 common vmsplice sys_vmsplice
|
||||
344 common move_pages sys_move_pages
|
||||
345 common getcpu sys_getcpu
|
||||
346 common epoll_pwait sys_epoll_pwait compat_sys_epoll_pwait
|
||||
347 common kexec_load sys_kexec_load compat_sys_kexec_load
|
||||
348 common utimensat sys_utimensat_time32
|
||||
349 common signalfd sys_signalfd compat_sys_signalfd
|
||||
350 common timerfd_create sys_timerfd_create
|
||||
351 common eventfd sys_eventfd
|
||||
352 common fallocate sys_fallocate compat_sys_aarch32_fallocate
|
||||
353 common timerfd_settime sys_timerfd_settime32
|
||||
354 common timerfd_gettime sys_timerfd_gettime32
|
||||
355 common signalfd4 sys_signalfd4 compat_sys_signalfd4
|
||||
356 common eventfd2 sys_eventfd2
|
||||
357 common epoll_create1 sys_epoll_create1
|
||||
358 common dup3 sys_dup3
|
||||
359 common pipe2 sys_pipe2
|
||||
360 common inotify_init1 sys_inotify_init1
|
||||
361 common preadv sys_preadv compat_sys_preadv
|
||||
362 common pwritev sys_pwritev compat_sys_pwritev
|
||||
363 common rt_tgsigqueueinfo sys_rt_tgsigqueueinfo compat_sys_rt_tgsigqueueinfo
|
||||
364 common perf_event_open sys_perf_event_open
|
||||
365 common recvmmsg sys_recvmmsg_time32 compat_sys_recvmmsg_time32
|
||||
366 common accept4 sys_accept4
|
||||
367 common fanotify_init sys_fanotify_init
|
||||
368 common fanotify_mark sys_fanotify_mark compat_sys_fanotify_mark
|
||||
369 common prlimit64 sys_prlimit64
|
||||
370 common name_to_handle_at sys_name_to_handle_at
|
||||
371 common open_by_handle_at sys_open_by_handle_at compat_sys_open_by_handle_at
|
||||
372 common clock_adjtime sys_clock_adjtime32
|
||||
373 common syncfs sys_syncfs
|
||||
374 common sendmmsg sys_sendmmsg compat_sys_sendmmsg
|
||||
375 common setns sys_setns
|
||||
376 common process_vm_readv sys_process_vm_readv
|
||||
377 common process_vm_writev sys_process_vm_writev
|
||||
378 common kcmp sys_kcmp
|
||||
379 common finit_module sys_finit_module
|
||||
380 common sched_setattr sys_sched_setattr
|
||||
381 common sched_getattr sys_sched_getattr
|
||||
382 common renameat2 sys_renameat2
|
||||
383 common seccomp sys_seccomp
|
||||
384 common getrandom sys_getrandom
|
||||
385 common memfd_create sys_memfd_create
|
||||
386 common bpf sys_bpf
|
||||
387 common execveat sys_execveat compat_sys_execveat
|
||||
388 common userfaultfd sys_userfaultfd
|
||||
389 common membarrier sys_membarrier
|
||||
390 common mlock2 sys_mlock2
|
||||
391 common copy_file_range sys_copy_file_range
|
||||
392 common preadv2 sys_preadv2 compat_sys_preadv2
|
||||
393 common pwritev2 sys_pwritev2 compat_sys_pwritev2
|
||||
394 common pkey_mprotect sys_pkey_mprotect
|
||||
395 common pkey_alloc sys_pkey_alloc
|
||||
396 common pkey_free sys_pkey_free
|
||||
397 common statx sys_statx
|
||||
398 common rseq sys_rseq
|
||||
399 common io_pgetevents sys_io_pgetevents_time32 compat_sys_io_pgetevents
|
||||
400 common migrate_pages sys_migrate_pages
|
||||
401 common kexec_file_load sys_kexec_file_load
|
||||
# 402 is unused
|
||||
403 common clock_gettime64 sys_clock_gettime
|
||||
404 common clock_settime64 sys_clock_settime
|
||||
405 common clock_adjtime64 sys_clock_adjtime
|
||||
406 common clock_getres_time64 sys_clock_getres
|
||||
407 common clock_nanosleep_time64 sys_clock_nanosleep
|
||||
408 common timer_gettime64 sys_timer_gettime
|
||||
409 common timer_settime64 sys_timer_settime
|
||||
410 common timerfd_gettime64 sys_timerfd_gettime
|
||||
411 common timerfd_settime64 sys_timerfd_settime
|
||||
412 common utimensat_time64 sys_utimensat
|
||||
413 common pselect6_time64 sys_pselect6 compat_sys_pselect6_time64
|
||||
414 common ppoll_time64 sys_ppoll compat_sys_ppoll_time64
|
||||
416 common io_pgetevents_time64 sys_io_pgetevents compat_sys_io_pgetevents_time64
|
||||
417 common recvmmsg_time64 sys_recvmmsg compat_sys_recvmmsg_time64
|
||||
418 common mq_timedsend_time64 sys_mq_timedsend
|
||||
419 common mq_timedreceive_time64 sys_mq_timedreceive
|
||||
420 common semtimedop_time64 sys_semtimedop
|
||||
421 common rt_sigtimedwait_time64 sys_rt_sigtimedwait compat_sys_rt_sigtimedwait_time64
|
||||
422 common futex_time64 sys_futex
|
||||
423 common sched_rr_get_interval_time64 sys_sched_rr_get_interval
|
||||
424 common pidfd_send_signal sys_pidfd_send_signal
|
||||
425 common io_uring_setup sys_io_uring_setup
|
||||
426 common io_uring_enter sys_io_uring_enter
|
||||
427 common io_uring_register sys_io_uring_register
|
||||
428 common open_tree sys_open_tree
|
||||
429 common move_mount sys_move_mount
|
||||
430 common fsopen sys_fsopen
|
||||
431 common fsconfig sys_fsconfig
|
||||
432 common fsmount sys_fsmount
|
||||
433 common fspick sys_fspick
|
||||
434 common pidfd_open sys_pidfd_open
|
||||
435 common clone3 sys_clone3
|
||||
436 common close_range sys_close_range
|
||||
437 common openat2 sys_openat2
|
||||
438 common pidfd_getfd sys_pidfd_getfd
|
||||
439 common faccessat2 sys_faccessat2
|
||||
440 common process_madvise sys_process_madvise
|
||||
441 common epoll_pwait2 sys_epoll_pwait2 compat_sys_epoll_pwait2
|
||||
442 common mount_setattr sys_mount_setattr
|
||||
443 common quotactl_fd sys_quotactl_fd
|
||||
444 common landlock_create_ruleset sys_landlock_create_ruleset
|
||||
445 common landlock_add_rule sys_landlock_add_rule
|
||||
446 common landlock_restrict_self sys_landlock_restrict_self
|
||||
# 447 reserved for memfd_secret
|
||||
448 common process_mrelease sys_process_mrelease
|
||||
449 common futex_waitv sys_futex_waitv
|
||||
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
|
||||
451 common cachestat sys_cachestat
|
||||
452 common fchmodat2 sys_fchmodat2
|
||||
453 common map_shadow_stack sys_map_shadow_stack
|
||||
454 common futex_wake sys_futex_wake
|
||||
455 common futex_wait sys_futex_wait
|
||||
456 common futex_requeue sys_futex_requeue
|
||||
457 common statmount sys_statmount
|
||||
458 common listmount sys_listmount
|
||||
459 common lsm_get_self_attr sys_lsm_get_self_attr
|
||||
460 common lsm_set_self_attr sys_lsm_set_self_attr
|
||||
461 common lsm_list_modules sys_lsm_list_modules
|
||||
462 common mseal sys_mseal
|
1
tools/perf/arch/arm64/entry/syscalls/syscall_64.tbl
Symbolic link
1
tools/perf/arch/arm64/entry/syscalls/syscall_64.tbl
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../../../../scripts/syscall.tbl
|
8
tools/perf/arch/arm64/include/syscall_table.h
Normal file
8
tools/perf/arch/arm64/include/syscall_table.h
Normal file
|
@ -0,0 +1,8 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#include <asm/bitsperlong.h>
|
||||
|
||||
#if __BITS_PER_LONG == 64
|
||||
#include <asm/syscalls_64.h>
|
||||
#else
|
||||
#include <asm/syscalls_32.h>
|
||||
#endif
|
|
@ -274,33 +274,9 @@ static void arm_spe_setup_evsel(struct evsel *evsel, struct perf_cpu_map *cpus)
|
|||
evsel__set_sample_bit(evsel, PHYS_ADDR);
|
||||
}
|
||||
|
||||
static int arm_spe_recording_options(struct auxtrace_record *itr,
|
||||
struct evlist *evlist,
|
||||
struct record_opts *opts)
|
||||
static int arm_spe_setup_aux_buffer(struct record_opts *opts)
|
||||
{
|
||||
struct arm_spe_recording *sper =
|
||||
container_of(itr, struct arm_spe_recording, itr);
|
||||
struct evsel *evsel, *tmp;
|
||||
struct perf_cpu_map *cpus = evlist->core.user_requested_cpus;
|
||||
bool privileged = perf_event_paranoid_check(-1);
|
||||
struct evsel *tracking_evsel;
|
||||
int err;
|
||||
|
||||
sper->evlist = evlist;
|
||||
|
||||
evlist__for_each_entry(evlist, evsel) {
|
||||
if (evsel__is_aux_event(evsel)) {
|
||||
if (!strstarts(evsel->pmu->name, ARM_SPE_PMU_NAME)) {
|
||||
pr_err("Found unexpected auxtrace event: %s\n",
|
||||
evsel->pmu->name);
|
||||
return -EINVAL;
|
||||
}
|
||||
opts->full_auxtrace = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (!opts->full_auxtrace)
|
||||
return 0;
|
||||
|
||||
/*
|
||||
* we are in snapshot mode.
|
||||
|
@ -330,6 +306,9 @@ static int arm_spe_recording_options(struct auxtrace_record *itr,
|
|||
pr_err("Failed to calculate default snapshot size and/or AUX area tracing mmap pages\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
pr_debug2("%sx snapshot size: %zu\n", ARM_SPE_PMU_NAME,
|
||||
opts->auxtrace_snapshot_size);
|
||||
}
|
||||
|
||||
/* We are in full trace mode but '-m,xyz' wasn't specified */
|
||||
|
@ -355,14 +334,15 @@ static int arm_spe_recording_options(struct auxtrace_record *itr,
|
|||
}
|
||||
}
|
||||
|
||||
if (opts->auxtrace_snapshot_mode)
|
||||
pr_debug2("%sx snapshot size: %zu\n", ARM_SPE_PMU_NAME,
|
||||
opts->auxtrace_snapshot_size);
|
||||
return 0;
|
||||
}
|
||||
|
||||
evlist__for_each_entry_safe(evlist, tmp, evsel) {
|
||||
if (evsel__is_aux_event(evsel))
|
||||
arm_spe_setup_evsel(evsel, cpus);
|
||||
}
|
||||
static int arm_spe_setup_tracking_event(struct evlist *evlist,
|
||||
struct record_opts *opts)
|
||||
{
|
||||
int err;
|
||||
struct evsel *tracking_evsel;
|
||||
struct perf_cpu_map *cpus = evlist->core.user_requested_cpus;
|
||||
|
||||
/* Add dummy event to keep tracking */
|
||||
err = parse_event(evlist, "dummy:u");
|
||||
|
@ -388,6 +368,52 @@ static int arm_spe_recording_options(struct auxtrace_record *itr,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int arm_spe_recording_options(struct auxtrace_record *itr,
|
||||
struct evlist *evlist,
|
||||
struct record_opts *opts)
|
||||
{
|
||||
struct arm_spe_recording *sper =
|
||||
container_of(itr, struct arm_spe_recording, itr);
|
||||
struct evsel *evsel, *tmp;
|
||||
struct perf_cpu_map *cpus = evlist->core.user_requested_cpus;
|
||||
bool discard = false;
|
||||
int err;
|
||||
|
||||
sper->evlist = evlist;
|
||||
|
||||
evlist__for_each_entry(evlist, evsel) {
|
||||
if (evsel__is_aux_event(evsel)) {
|
||||
if (!strstarts(evsel->pmu->name, ARM_SPE_PMU_NAME)) {
|
||||
pr_err("Found unexpected auxtrace event: %s\n",
|
||||
evsel->pmu->name);
|
||||
return -EINVAL;
|
||||
}
|
||||
opts->full_auxtrace = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (!opts->full_auxtrace)
|
||||
return 0;
|
||||
|
||||
evlist__for_each_entry_safe(evlist, tmp, evsel) {
|
||||
if (evsel__is_aux_event(evsel)) {
|
||||
arm_spe_setup_evsel(evsel, cpus);
|
||||
if (evsel->core.attr.config &
|
||||
perf_pmu__format_bits(evsel->pmu, "discard"))
|
||||
discard = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (discard)
|
||||
return 0;
|
||||
|
||||
err = arm_spe_setup_aux_buffer(opts);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
return arm_spe_setup_tracking_event(evlist, opts);
|
||||
}
|
||||
|
||||
static int arm_spe_parse_snapshot_options(struct auxtrace_record *itr __maybe_unused,
|
||||
struct record_opts *opts,
|
||||
const char *str)
|
||||
|
|
2
tools/perf/arch/csky/entry/syscalls/Kbuild
Normal file
2
tools/perf/arch/csky/entry/syscalls/Kbuild
Normal file
|
@ -0,0 +1,2 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
syscall-y += syscalls_32.h
|
3
tools/perf/arch/csky/entry/syscalls/Makefile.syscalls
Normal file
3
tools/perf/arch/csky/entry/syscalls/Makefile.syscalls
Normal file
|
@ -0,0 +1,3 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
syscall_abis_32 += csky time32 stat64 rlimit
|
2
tools/perf/arch/csky/include/syscall_table.h
Normal file
2
tools/perf/arch/csky/include/syscall_table.h
Normal file
|
@ -0,0 +1,2 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#include <asm/syscalls_32.h>
|
|
@ -1,25 +1,3 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
PERF_HAVE_JITDUMP := 1
|
||||
HAVE_KVM_STAT_SUPPORT := 1
|
||||
|
||||
#
|
||||
# Syscall table generation for perf
|
||||
#
|
||||
|
||||
out := $(OUTPUT)arch/loongarch/include/generated/asm
|
||||
header := $(out)/syscalls.c
|
||||
incpath := $(srctree)/tools
|
||||
sysdef := $(srctree)/tools/arch/loongarch/include/uapi/asm/unistd.h
|
||||
sysprf := $(srctree)/tools/perf/arch/loongarch/entry/syscalls/
|
||||
systbl := $(sysprf)/mksyscalltbl
|
||||
|
||||
# Create output directory if not already present
|
||||
$(shell [ -d '$(out)' ] || mkdir -p '$(out)')
|
||||
|
||||
$(header): $(sysdef) $(systbl)
|
||||
$(Q)$(SHELL) '$(systbl)' '$(CC)' '$(HOSTCC)' $(incpath) $(sysdef) > $@
|
||||
|
||||
clean::
|
||||
$(call QUIET_CLEAN, loongarch) $(RM) $(header)
|
||||
|
||||
archheaders: $(header)
|
||||
|
|
2
tools/perf/arch/loongarch/entry/syscalls/Kbuild
Normal file
2
tools/perf/arch/loongarch/entry/syscalls/Kbuild
Normal file
|
@ -0,0 +1,2 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
syscall-y += syscalls_64.h
|
|
@ -0,0 +1,3 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
syscall_abis_64 +=
|
|
@ -1,45 +0,0 @@
|
|||
#!/bin/sh
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
#
|
||||
# Generate system call table for perf. Derived from
|
||||
# powerpc script.
|
||||
#
|
||||
# Author(s): Ming Wang <wangming01@loongson.cn>
|
||||
# Author(s): Huacai Chen <chenhuacai@loongson.cn>
|
||||
# Copyright (C) 2020-2023 Loongson Technology Corporation Limited
|
||||
|
||||
gcc=$1
|
||||
hostcc=$2
|
||||
incpath=$3
|
||||
input=$4
|
||||
|
||||
if ! test -r $input; then
|
||||
echo "Could not read input file" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
create_sc_table()
|
||||
{
|
||||
local sc nr max_nr
|
||||
|
||||
while read sc nr; do
|
||||
printf "%s\n" " [$nr] = \"$sc\","
|
||||
max_nr=$nr
|
||||
done
|
||||
|
||||
echo "#define SYSCALLTBL_LOONGARCH_MAX_ID $max_nr"
|
||||
}
|
||||
|
||||
create_table()
|
||||
{
|
||||
echo "#include \"$input\""
|
||||
echo "static const char *const syscalltbl_loongarch[] = {"
|
||||
create_sc_table
|
||||
echo "};"
|
||||
}
|
||||
|
||||
$gcc -E -dM -x c -I $incpath/include/uapi $input \
|
||||
|awk '$2 ~ "__NR" && $3 !~ "__NR3264_" {
|
||||
sub("^#define __NR(3264)?_", "");
|
||||
print | "sort -k2 -n"}' \
|
||||
|create_table
|
2
tools/perf/arch/loongarch/include/syscall_table.h
Normal file
2
tools/perf/arch/loongarch/include/syscall_table.h
Normal file
|
@ -0,0 +1,2 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#include <asm/syscall_table_64.h>
|
|
@ -1,18 +0,0 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
# Syscall table generation for perf
|
||||
out := $(OUTPUT)arch/mips/include/generated/asm
|
||||
header := $(out)/syscalls_n64.c
|
||||
sysprf := $(srctree)/tools/perf/arch/mips/entry/syscalls
|
||||
sysdef := $(sysprf)/syscall_n64.tbl
|
||||
systbl := $(sysprf)/mksyscalltbl
|
||||
|
||||
# Create output directory if not already present
|
||||
$(shell [ -d '$(out)' ] || mkdir -p '$(out)')
|
||||
|
||||
$(header): $(sysdef) $(systbl)
|
||||
$(Q)$(SHELL) '$(systbl)' $(sysdef) > $@
|
||||
|
||||
clean::
|
||||
$(call QUIET_CLEAN, mips) $(RM) $(header)
|
||||
|
||||
archheaders: $(header)
|
2
tools/perf/arch/mips/entry/syscalls/Kbuild
Normal file
2
tools/perf/arch/mips/entry/syscalls/Kbuild
Normal file
|
@ -0,0 +1,2 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
syscall-y += syscalls_64.h
|
5
tools/perf/arch/mips/entry/syscalls/Makefile.syscalls
Normal file
5
tools/perf/arch/mips/entry/syscalls/Makefile.syscalls
Normal file
|
@ -0,0 +1,5 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
syscall_abis_64 += n64
|
||||
|
||||
syscalltbl = $(srctree)/tools/perf/arch/mips/entry/syscalls/syscall_n64.tbl
|
|
@ -1,32 +0,0 @@
|
|||
#!/bin/sh
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
#
|
||||
# Generate system call table for perf. Derived from
|
||||
# s390 script.
|
||||
#
|
||||
# Author(s): Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
|
||||
# Changed by: Tiezhu Yang <yangtiezhu@loongson.cn>
|
||||
|
||||
SYSCALL_TBL=$1
|
||||
|
||||
if ! test -r $SYSCALL_TBL; then
|
||||
echo "Could not read input file" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
create_table()
|
||||
{
|
||||
local max_nr nr abi sc discard
|
||||
|
||||
echo 'static const char *const syscalltbl_mips_n64[] = {'
|
||||
while read nr abi sc discard; do
|
||||
printf '\t[%d] = "%s",\n' $nr $sc
|
||||
max_nr=$nr
|
||||
done
|
||||
echo '};'
|
||||
echo "#define SYSCALLTBL_MIPS_N64_MAX_ID $max_nr"
|
||||
}
|
||||
|
||||
grep -E "^[[:digit:]]+[[:space:]]+(n64)" $SYSCALL_TBL \
|
||||
|sort -k1 -n \
|
||||
|create_table
|
2
tools/perf/arch/mips/include/syscall_table.h
Normal file
2
tools/perf/arch/mips/include/syscall_table.h
Normal file
|
@ -0,0 +1,2 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#include <asm/syscalls_64.h>
|
3
tools/perf/arch/parisc/entry/syscalls/Kbuild
Normal file
3
tools/perf/arch/parisc/entry/syscalls/Kbuild
Normal file
|
@ -0,0 +1,3 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
syscall-y += syscalls_32.h
|
||||
syscall-y += syscalls_64.h
|
6
tools/perf/arch/parisc/entry/syscalls/Makefile.syscalls
Normal file
6
tools/perf/arch/parisc/entry/syscalls/Makefile.syscalls
Normal file
|
@ -0,0 +1,6 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
syscall_abis_32 +=
|
||||
syscall_abis_64 +=
|
||||
|
||||
syscalltbl = $(srctree)/tools/perf/arch/parisc/entry/syscalls/syscall.tbl
|
463
tools/perf/arch/parisc/entry/syscalls/syscall.tbl
Normal file
463
tools/perf/arch/parisc/entry/syscalls/syscall.tbl
Normal file
|
@ -0,0 +1,463 @@
|
|||
# SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
|
||||
#
|
||||
# system call numbers and entry vectors for parisc
|
||||
#
|
||||
# The format is:
|
||||
# <number> <abi> <name> <entry point> <compat entry point>
|
||||
#
|
||||
# The <abi> can be common, 64, or 32 for this file.
|
||||
#
|
||||
0 common restart_syscall sys_restart_syscall
|
||||
1 common exit sys_exit
|
||||
2 common fork sys_fork_wrapper
|
||||
3 common read sys_read
|
||||
4 common write sys_write
|
||||
5 common open sys_open compat_sys_open
|
||||
6 common close sys_close
|
||||
7 common waitpid sys_waitpid
|
||||
8 common creat sys_creat
|
||||
9 common link sys_link
|
||||
10 common unlink sys_unlink
|
||||
11 common execve sys_execve compat_sys_execve
|
||||
12 common chdir sys_chdir
|
||||
13 32 time sys_time32
|
||||
13 64 time sys_time
|
||||
14 common mknod sys_mknod
|
||||
15 common chmod sys_chmod
|
||||
16 common lchown sys_lchown
|
||||
17 common socket sys_socket
|
||||
18 common stat sys_newstat compat_sys_newstat
|
||||
19 common lseek sys_lseek compat_sys_lseek
|
||||
20 common getpid sys_getpid
|
||||
21 common mount sys_mount
|
||||
22 common bind sys_bind
|
||||
23 common setuid sys_setuid
|
||||
24 common getuid sys_getuid
|
||||
25 32 stime sys_stime32
|
||||
25 64 stime sys_stime
|
||||
26 common ptrace sys_ptrace compat_sys_ptrace
|
||||
27 common alarm sys_alarm
|
||||
28 common fstat sys_newfstat compat_sys_newfstat
|
||||
29 common pause sys_pause
|
||||
30 32 utime sys_utime32
|
||||
30 64 utime sys_utime
|
||||
31 common connect sys_connect
|
||||
32 common listen sys_listen
|
||||
33 common access sys_access
|
||||
34 common nice sys_nice
|
||||
35 common accept sys_accept
|
||||
36 common sync sys_sync
|
||||
37 common kill sys_kill
|
||||
38 common rename sys_rename
|
||||
39 common mkdir sys_mkdir
|
||||
40 common rmdir sys_rmdir
|
||||
41 common dup sys_dup
|
||||
42 common pipe sys_pipe
|
||||
43 common times sys_times compat_sys_times
|
||||
44 common getsockname sys_getsockname
|
||||
45 common brk sys_brk
|
||||
46 common setgid sys_setgid
|
||||
47 common getgid sys_getgid
|
||||
48 common signal sys_signal
|
||||
49 common geteuid sys_geteuid
|
||||
50 common getegid sys_getegid
|
||||
51 common acct sys_acct
|
||||
52 common umount2 sys_umount
|
||||
53 common getpeername sys_getpeername
|
||||
54 common ioctl sys_ioctl compat_sys_ioctl
|
||||
55 common fcntl sys_fcntl compat_sys_fcntl
|
||||
56 common socketpair sys_socketpair
|
||||
57 common setpgid sys_setpgid
|
||||
58 common send sys_send
|
||||
59 common uname sys_newuname
|
||||
60 common umask sys_umask
|
||||
61 common chroot sys_chroot
|
||||
62 common ustat sys_ustat compat_sys_ustat
|
||||
63 common dup2 sys_dup2
|
||||
64 common getppid sys_getppid
|
||||
65 common getpgrp sys_getpgrp
|
||||
66 common setsid sys_setsid
|
||||
67 common pivot_root sys_pivot_root
|
||||
68 common sgetmask sys_sgetmask sys32_unimplemented
|
||||
69 common ssetmask sys_ssetmask sys32_unimplemented
|
||||
70 common setreuid sys_setreuid
|
||||
71 common setregid sys_setregid
|
||||
72 common mincore sys_mincore
|
||||
73 common sigpending sys_sigpending compat_sys_sigpending
|
||||
74 common sethostname sys_sethostname
|
||||
75 common setrlimit sys_setrlimit compat_sys_setrlimit
|
||||
76 common getrlimit sys_getrlimit compat_sys_getrlimit
|
||||
77 common getrusage sys_getrusage compat_sys_getrusage
|
||||
78 common gettimeofday sys_gettimeofday compat_sys_gettimeofday
|
||||
79 common settimeofday sys_settimeofday compat_sys_settimeofday
|
||||
80 common getgroups sys_getgroups
|
||||
81 common setgroups sys_setgroups
|
||||
82 common sendto sys_sendto
|
||||
83 common symlink sys_symlink
|
||||
84 common lstat sys_newlstat compat_sys_newlstat
|
||||
85 common readlink sys_readlink
|
||||
86 common uselib sys_ni_syscall
|
||||
87 common swapon sys_swapon
|
||||
88 common reboot sys_reboot
|
||||
89 common mmap2 sys_mmap2
|
||||
90 common mmap sys_mmap
|
||||
91 common munmap sys_munmap
|
||||
92 common truncate sys_truncate compat_sys_truncate
|
||||
93 common ftruncate sys_ftruncate compat_sys_ftruncate
|
||||
94 common fchmod sys_fchmod
|
||||
95 common fchown sys_fchown
|
||||
96 common getpriority sys_getpriority
|
||||
97 common setpriority sys_setpriority
|
||||
98 common recv sys_recv compat_sys_recv
|
||||
99 common statfs sys_statfs compat_sys_statfs
|
||||
100 common fstatfs sys_fstatfs compat_sys_fstatfs
|
||||
101 common stat64 sys_stat64
|
||||
# 102 was socketcall
|
||||
103 common syslog sys_syslog
|
||||
104 common setitimer sys_setitimer compat_sys_setitimer
|
||||
105 common getitimer sys_getitimer compat_sys_getitimer
|
||||
106 common capget sys_capget
|
||||
107 common capset sys_capset
|
||||
108 32 pread64 parisc_pread64
|
||||
108 64 pread64 sys_pread64
|
||||
109 32 pwrite64 parisc_pwrite64
|
||||
109 64 pwrite64 sys_pwrite64
|
||||
110 common getcwd sys_getcwd
|
||||
111 common vhangup sys_vhangup
|
||||
112 common fstat64 sys_fstat64
|
||||
113 common vfork sys_vfork_wrapper
|
||||
114 common wait4 sys_wait4 compat_sys_wait4
|
||||
115 common swapoff sys_swapoff
|
||||
116 common sysinfo sys_sysinfo compat_sys_sysinfo
|
||||
117 common shutdown sys_shutdown
|
||||
118 common fsync sys_fsync
|
||||
119 common madvise parisc_madvise
|
||||
120 common clone sys_clone_wrapper
|
||||
121 common setdomainname sys_setdomainname
|
||||
122 common sendfile sys_sendfile compat_sys_sendfile
|
||||
123 common recvfrom sys_recvfrom compat_sys_recvfrom
|
||||
124 32 adjtimex sys_adjtimex_time32
|
||||
124 64 adjtimex sys_adjtimex
|
||||
125 common mprotect sys_mprotect
|
||||
126 common sigprocmask sys_sigprocmask compat_sys_sigprocmask
|
||||
# 127 was create_module
|
||||
128 common init_module sys_init_module
|
||||
129 common delete_module sys_delete_module
|
||||
# 130 was get_kernel_syms
|
||||
131 common quotactl sys_quotactl
|
||||
132 common getpgid sys_getpgid
|
||||
133 common fchdir sys_fchdir
|
||||
134 common bdflush sys_ni_syscall
|
||||
135 common sysfs sys_sysfs
|
||||
136 32 personality parisc_personality
|
||||
136 64 personality sys_personality
|
||||
# 137 was afs_syscall
|
||||
138 common setfsuid sys_setfsuid
|
||||
139 common setfsgid sys_setfsgid
|
||||
140 common _llseek sys_llseek
|
||||
141 common getdents sys_getdents compat_sys_getdents
|
||||
142 common _newselect sys_select compat_sys_select
|
||||
143 common flock sys_flock
|
||||
144 common msync sys_msync
|
||||
145 common readv sys_readv
|
||||
146 common writev sys_writev
|
||||
147 common getsid sys_getsid
|
||||
148 common fdatasync sys_fdatasync
|
||||
149 common _sysctl sys_ni_syscall
|
||||
150 common mlock sys_mlock
|
||||
151 common munlock sys_munlock
|
||||
152 common mlockall sys_mlockall
|
||||
153 common munlockall sys_munlockall
|
||||
154 common sched_setparam sys_sched_setparam
|
||||
155 common sched_getparam sys_sched_getparam
|
||||
156 common sched_setscheduler sys_sched_setscheduler
|
||||
157 common sched_getscheduler sys_sched_getscheduler
|
||||
158 common sched_yield sys_sched_yield
|
||||
159 common sched_get_priority_max sys_sched_get_priority_max
|
||||
160 common sched_get_priority_min sys_sched_get_priority_min
|
||||
161 32 sched_rr_get_interval sys_sched_rr_get_interval_time32
|
||||
161 64 sched_rr_get_interval sys_sched_rr_get_interval
|
||||
162 32 nanosleep sys_nanosleep_time32
|
||||
162 64 nanosleep sys_nanosleep
|
||||
163 common mremap sys_mremap
|
||||
164 common setresuid sys_setresuid
|
||||
165 common getresuid sys_getresuid
|
||||
166 common sigaltstack sys_sigaltstack compat_sys_sigaltstack
|
||||
# 167 was query_module
|
||||
168 common poll sys_poll
|
||||
# 169 was nfsservctl
|
||||
170 common setresgid sys_setresgid
|
||||
171 common getresgid sys_getresgid
|
||||
172 common prctl sys_prctl
|
||||
173 common rt_sigreturn sys_rt_sigreturn_wrapper
|
||||
174 common rt_sigaction sys_rt_sigaction compat_sys_rt_sigaction
|
||||
175 common rt_sigprocmask sys_rt_sigprocmask compat_sys_rt_sigprocmask
|
||||
176 common rt_sigpending sys_rt_sigpending compat_sys_rt_sigpending
|
||||
177 32 rt_sigtimedwait sys_rt_sigtimedwait_time32 compat_sys_rt_sigtimedwait_time32
|
||||
177 64 rt_sigtimedwait sys_rt_sigtimedwait
|
||||
178 common rt_sigqueueinfo sys_rt_sigqueueinfo compat_sys_rt_sigqueueinfo
|
||||
179 common rt_sigsuspend sys_rt_sigsuspend compat_sys_rt_sigsuspend
|
||||
180 common chown sys_chown
|
||||
181 common setsockopt sys_setsockopt sys_setsockopt
|
||||
182 common getsockopt sys_getsockopt sys_getsockopt
|
||||
183 common sendmsg sys_sendmsg compat_sys_sendmsg
|
||||
184 common recvmsg sys_recvmsg compat_sys_recvmsg
|
||||
185 common semop sys_semop
|
||||
186 common semget sys_semget
|
||||
187 common semctl sys_semctl compat_sys_semctl
|
||||
188 common msgsnd sys_msgsnd compat_sys_msgsnd
|
||||
189 common msgrcv sys_msgrcv compat_sys_msgrcv
|
||||
190 common msgget sys_msgget
|
||||
191 common msgctl sys_msgctl compat_sys_msgctl
|
||||
192 common shmat sys_shmat compat_sys_shmat
|
||||
193 common shmdt sys_shmdt
|
||||
194 common shmget sys_shmget
|
||||
195 common shmctl sys_shmctl compat_sys_shmctl
|
||||
# 196 was getpmsg
|
||||
# 197 was putpmsg
|
||||
198 common lstat64 sys_lstat64
|
||||
199 32 truncate64 parisc_truncate64
|
||||
199 64 truncate64 sys_truncate64
|
||||
200 32 ftruncate64 parisc_ftruncate64
|
||||
200 64 ftruncate64 sys_ftruncate64
|
||||
201 common getdents64 sys_getdents64
|
||||
202 common fcntl64 sys_fcntl64 compat_sys_fcntl64
|
||||
# 203 was attrctl
|
||||
# 204 was acl_get
|
||||
# 205 was acl_set
|
||||
206 common gettid sys_gettid
|
||||
207 32 readahead parisc_readahead
|
||||
207 64 readahead sys_readahead
|
||||
208 common tkill sys_tkill
|
||||
209 common sendfile64 sys_sendfile64 compat_sys_sendfile64
|
||||
210 32 futex sys_futex_time32
|
||||
210 64 futex sys_futex
|
||||
211 common sched_setaffinity sys_sched_setaffinity compat_sys_sched_setaffinity
|
||||
212 common sched_getaffinity sys_sched_getaffinity compat_sys_sched_getaffinity
|
||||
# 213 was set_thread_area
|
||||
# 214 was get_thread_area
|
||||
215 common io_setup sys_io_setup compat_sys_io_setup
|
||||
216 common io_destroy sys_io_destroy
|
||||
217 32 io_getevents sys_io_getevents_time32
|
||||
217 64 io_getevents sys_io_getevents
|
||||
218 common io_submit sys_io_submit compat_sys_io_submit
|
||||
219 common io_cancel sys_io_cancel
|
||||
# 220 was alloc_hugepages
|
||||
# 221 was free_hugepages
|
||||
222 common exit_group sys_exit_group
|
||||
223 common lookup_dcookie sys_ni_syscall
|
||||
224 common epoll_create sys_epoll_create
|
||||
225 common epoll_ctl sys_epoll_ctl
|
||||
226 common epoll_wait sys_epoll_wait
|
||||
227 common remap_file_pages sys_remap_file_pages
|
||||
228 32 semtimedop sys_semtimedop_time32
|
||||
228 64 semtimedop sys_semtimedop
|
||||
229 common mq_open sys_mq_open compat_sys_mq_open
|
||||
230 common mq_unlink sys_mq_unlink
|
||||
231 32 mq_timedsend sys_mq_timedsend_time32
|
||||
231 64 mq_timedsend sys_mq_timedsend
|
||||
232 32 mq_timedreceive sys_mq_timedreceive_time32
|
||||
232 64 mq_timedreceive sys_mq_timedreceive
|
||||
233 common mq_notify sys_mq_notify compat_sys_mq_notify
|
||||
234 common mq_getsetattr sys_mq_getsetattr compat_sys_mq_getsetattr
|
||||
235 common waitid sys_waitid compat_sys_waitid
|
||||
236 32 fadvise64_64 parisc_fadvise64_64
|
||||
236 64 fadvise64_64 sys_fadvise64_64
|
||||
237 common set_tid_address sys_set_tid_address
|
||||
238 common setxattr sys_setxattr
|
||||
239 common lsetxattr sys_lsetxattr
|
||||
240 common fsetxattr sys_fsetxattr
|
||||
241 common getxattr sys_getxattr
|
||||
242 common lgetxattr sys_lgetxattr
|
||||
243 common fgetxattr sys_fgetxattr
|
||||
244 common listxattr sys_listxattr
|
||||
245 common llistxattr sys_llistxattr
|
||||
246 common flistxattr sys_flistxattr
|
||||
247 common removexattr sys_removexattr
|
||||
248 common lremovexattr sys_lremovexattr
|
||||
249 common fremovexattr sys_fremovexattr
|
||||
250 common timer_create sys_timer_create compat_sys_timer_create
|
||||
251 32 timer_settime sys_timer_settime32
|
||||
251 64 timer_settime sys_timer_settime
|
||||
252 32 timer_gettime sys_timer_gettime32
|
||||
252 64 timer_gettime sys_timer_gettime
|
||||
253 common timer_getoverrun sys_timer_getoverrun
|
||||
254 common timer_delete sys_timer_delete
|
||||
255 32 clock_settime sys_clock_settime32
|
||||
255 64 clock_settime sys_clock_settime
|
||||
256 32 clock_gettime sys_clock_gettime32
|
||||
256 64 clock_gettime sys_clock_gettime
|
||||
257 32 clock_getres sys_clock_getres_time32
|
||||
257 64 clock_getres sys_clock_getres
|
||||
258 32 clock_nanosleep sys_clock_nanosleep_time32
|
||||
258 64 clock_nanosleep sys_clock_nanosleep
|
||||
259 common tgkill sys_tgkill
|
||||
260 common mbind sys_mbind
|
||||
261 common get_mempolicy sys_get_mempolicy
|
||||
262 common set_mempolicy sys_set_mempolicy
|
||||
# 263 was vserver
|
||||
264 common add_key sys_add_key
|
||||
265 common request_key sys_request_key
|
||||
266 common keyctl sys_keyctl compat_sys_keyctl
|
||||
267 common ioprio_set sys_ioprio_set
|
||||
268 common ioprio_get sys_ioprio_get
|
||||
269 common inotify_init sys_inotify_init
|
||||
270 common inotify_add_watch sys_inotify_add_watch
|
||||
271 common inotify_rm_watch sys_inotify_rm_watch
|
||||
272 common migrate_pages sys_migrate_pages
|
||||
273 32 pselect6 sys_pselect6_time32 compat_sys_pselect6_time32
|
||||
273 64 pselect6 sys_pselect6
|
||||
274 32 ppoll sys_ppoll_time32 compat_sys_ppoll_time32
|
||||
274 64 ppoll sys_ppoll
|
||||
275 common openat sys_openat compat_sys_openat
|
||||
276 common mkdirat sys_mkdirat
|
||||
277 common mknodat sys_mknodat
|
||||
278 common fchownat sys_fchownat
|
||||
279 32 futimesat sys_futimesat_time32
|
||||
279 64 futimesat sys_futimesat
|
||||
280 common fstatat64 sys_fstatat64
|
||||
281 common unlinkat sys_unlinkat
|
||||
282 common renameat sys_renameat
|
||||
283 common linkat sys_linkat
|
||||
284 common symlinkat sys_symlinkat
|
||||
285 common readlinkat sys_readlinkat
|
||||
286 common fchmodat sys_fchmodat
|
||||
287 common faccessat sys_faccessat
|
||||
288 common unshare sys_unshare
|
||||
289 common set_robust_list sys_set_robust_list compat_sys_set_robust_list
|
||||
290 common get_robust_list sys_get_robust_list compat_sys_get_robust_list
|
||||
291 common splice sys_splice
|
||||
292 32 sync_file_range parisc_sync_file_range
|
||||
292 64 sync_file_range sys_sync_file_range
|
||||
293 common tee sys_tee
|
||||
294 common vmsplice sys_vmsplice
|
||||
295 common move_pages sys_move_pages
|
||||
296 common getcpu sys_getcpu
|
||||
297 common epoll_pwait sys_epoll_pwait compat_sys_epoll_pwait
|
||||
298 common statfs64 sys_statfs64 compat_sys_statfs64
|
||||
299 common fstatfs64 sys_fstatfs64 compat_sys_fstatfs64
|
||||
300 common kexec_load sys_kexec_load compat_sys_kexec_load
|
||||
301 32 utimensat sys_utimensat_time32
|
||||
301 64 utimensat sys_utimensat
|
||||
302 common signalfd sys_signalfd compat_sys_signalfd
|
||||
# 303 was timerfd
|
||||
304 common eventfd sys_eventfd
|
||||
305 32 fallocate parisc_fallocate
|
||||
305 64 fallocate sys_fallocate
|
||||
306 common timerfd_create parisc_timerfd_create
|
||||
307 32 timerfd_settime sys_timerfd_settime32
|
||||
307 64 timerfd_settime sys_timerfd_settime
|
||||
308 32 timerfd_gettime sys_timerfd_gettime32
|
||||
308 64 timerfd_gettime sys_timerfd_gettime
|
||||
309 common signalfd4 parisc_signalfd4 parisc_compat_signalfd4
|
||||
310 common eventfd2 parisc_eventfd2
|
||||
311 common epoll_create1 sys_epoll_create1
|
||||
312 common dup3 sys_dup3
|
||||
313 common pipe2 parisc_pipe2
|
||||
314 common inotify_init1 parisc_inotify_init1
|
||||
315 common preadv sys_preadv compat_sys_preadv
|
||||
316 common pwritev sys_pwritev compat_sys_pwritev
|
||||
317 common rt_tgsigqueueinfo sys_rt_tgsigqueueinfo compat_sys_rt_tgsigqueueinfo
|
||||
318 common perf_event_open sys_perf_event_open
|
||||
319 32 recvmmsg sys_recvmmsg_time32 compat_sys_recvmmsg_time32
|
||||
319 64 recvmmsg sys_recvmmsg
|
||||
320 common accept4 sys_accept4
|
||||
321 common prlimit64 sys_prlimit64
|
||||
322 common fanotify_init sys_fanotify_init
|
||||
323 common fanotify_mark sys_fanotify_mark compat_sys_fanotify_mark
|
||||
324 32 clock_adjtime sys_clock_adjtime32
|
||||
324 64 clock_adjtime sys_clock_adjtime
|
||||
325 common name_to_handle_at sys_name_to_handle_at
|
||||
326 common open_by_handle_at sys_open_by_handle_at compat_sys_open_by_handle_at
|
||||
327 common syncfs sys_syncfs
|
||||
328 common setns sys_setns
|
||||
329 common sendmmsg sys_sendmmsg compat_sys_sendmmsg
|
||||
330 common process_vm_readv sys_process_vm_readv
|
||||
331 common process_vm_writev sys_process_vm_writev
|
||||
332 common kcmp sys_kcmp
|
||||
333 common finit_module sys_finit_module
|
||||
334 common sched_setattr sys_sched_setattr
|
||||
335 common sched_getattr sys_sched_getattr
|
||||
336 32 utimes sys_utimes_time32
|
||||
336 64 utimes sys_utimes
|
||||
337 common renameat2 sys_renameat2
|
||||
338 common seccomp sys_seccomp
|
||||
339 common getrandom sys_getrandom
|
||||
340 common memfd_create sys_memfd_create
|
||||
341 common bpf sys_bpf
|
||||
342 common execveat sys_execveat compat_sys_execveat
|
||||
343 common membarrier sys_membarrier
|
||||
344 common userfaultfd parisc_userfaultfd
|
||||
345 common mlock2 sys_mlock2
|
||||
346 common copy_file_range sys_copy_file_range
|
||||
347 common preadv2 sys_preadv2 compat_sys_preadv2
|
||||
348 common pwritev2 sys_pwritev2 compat_sys_pwritev2
|
||||
349 common statx sys_statx
|
||||
350 32 io_pgetevents sys_io_pgetevents_time32 compat_sys_io_pgetevents
|
||||
350 64 io_pgetevents sys_io_pgetevents
|
||||
351 common pkey_mprotect sys_pkey_mprotect
|
||||
352 common pkey_alloc sys_pkey_alloc
|
||||
353 common pkey_free sys_pkey_free
|
||||
354 common rseq sys_rseq
|
||||
355 common kexec_file_load sys_kexec_file_load sys_kexec_file_load
|
||||
356 common cacheflush sys_cacheflush
|
||||
# up to 402 is unassigned and reserved for arch specific syscalls
|
||||
403 32 clock_gettime64 sys_clock_gettime sys_clock_gettime
|
||||
404 32 clock_settime64 sys_clock_settime sys_clock_settime
|
||||
405 32 clock_adjtime64 sys_clock_adjtime sys_clock_adjtime
|
||||
406 32 clock_getres_time64 sys_clock_getres sys_clock_getres
|
||||
407 32 clock_nanosleep_time64 sys_clock_nanosleep sys_clock_nanosleep
|
||||
408 32 timer_gettime64 sys_timer_gettime sys_timer_gettime
|
||||
409 32 timer_settime64 sys_timer_settime sys_timer_settime
|
||||
410 32 timerfd_gettime64 sys_timerfd_gettime sys_timerfd_gettime
|
||||
411 32 timerfd_settime64 sys_timerfd_settime sys_timerfd_settime
|
||||
412 32 utimensat_time64 sys_utimensat sys_utimensat
|
||||
413 32 pselect6_time64 sys_pselect6 compat_sys_pselect6_time64
|
||||
414 32 ppoll_time64 sys_ppoll compat_sys_ppoll_time64
|
||||
416 32 io_pgetevents_time64 sys_io_pgetevents compat_sys_io_pgetevents_time64
|
||||
417 32 recvmmsg_time64 sys_recvmmsg compat_sys_recvmmsg_time64
|
||||
418 32 mq_timedsend_time64 sys_mq_timedsend sys_mq_timedsend
|
||||
419 32 mq_timedreceive_time64 sys_mq_timedreceive sys_mq_timedreceive
|
||||
420 32 semtimedop_time64 sys_semtimedop sys_semtimedop
|
||||
421 32 rt_sigtimedwait_time64 sys_rt_sigtimedwait compat_sys_rt_sigtimedwait_time64
|
||||
422 32 futex_time64 sys_futex sys_futex
|
||||
423 32 sched_rr_get_interval_time64 sys_sched_rr_get_interval sys_sched_rr_get_interval
|
||||
424 common pidfd_send_signal sys_pidfd_send_signal
|
||||
425 common io_uring_setup sys_io_uring_setup
|
||||
426 common io_uring_enter sys_io_uring_enter
|
||||
427 common io_uring_register sys_io_uring_register
|
||||
428 common open_tree sys_open_tree
|
||||
429 common move_mount sys_move_mount
|
||||
430 common fsopen sys_fsopen
|
||||
431 common fsconfig sys_fsconfig
|
||||
432 common fsmount sys_fsmount
|
||||
433 common fspick sys_fspick
|
||||
434 common pidfd_open sys_pidfd_open
|
||||
435 common clone3 sys_clone3_wrapper
|
||||
436 common close_range sys_close_range
|
||||
437 common openat2 sys_openat2
|
||||
438 common pidfd_getfd sys_pidfd_getfd
|
||||
439 common faccessat2 sys_faccessat2
|
||||
440 common process_madvise sys_process_madvise
|
||||
441 common epoll_pwait2 sys_epoll_pwait2 compat_sys_epoll_pwait2
|
||||
442 common mount_setattr sys_mount_setattr
|
||||
443 common quotactl_fd sys_quotactl_fd
|
||||
444 common landlock_create_ruleset sys_landlock_create_ruleset
|
||||
445 common landlock_add_rule sys_landlock_add_rule
|
||||
446 common landlock_restrict_self sys_landlock_restrict_self
|
||||
# 447 reserved for memfd_secret
|
||||
448 common process_mrelease sys_process_mrelease
|
||||
449 common futex_waitv sys_futex_waitv
|
||||
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
|
||||
451 common cachestat sys_cachestat
|
||||
452 common fchmodat2 sys_fchmodat2
|
||||
453 common map_shadow_stack sys_map_shadow_stack
|
||||
454 common futex_wake sys_futex_wake
|
||||
455 common futex_wait sys_futex_wait
|
||||
456 common futex_requeue sys_futex_requeue
|
||||
457 common statmount sys_statmount
|
||||
458 common listmount sys_listmount
|
||||
459 common lsm_get_self_attr sys_lsm_get_self_attr
|
||||
460 common lsm_set_self_attr sys_lsm_set_self_attr
|
||||
461 common lsm_list_modules sys_lsm_list_modules
|
||||
462 common mseal sys_mseal
|
8
tools/perf/arch/parisc/include/syscall_table.h
Normal file
8
tools/perf/arch/parisc/include/syscall_table.h
Normal file
|
@ -0,0 +1,8 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#include <asm/bitsperlong.h>
|
||||
|
||||
#if __BITS_PER_LONG == 64
|
||||
#include <asm/syscalls_64.h>
|
||||
#else
|
||||
#include <asm/syscalls_32.h>
|
||||
#endif
|
|
@ -1,28 +1,3 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
HAVE_KVM_STAT_SUPPORT := 1
|
||||
PERF_HAVE_JITDUMP := 1
|
||||
|
||||
#
|
||||
# Syscall table generation for perf
|
||||
#
|
||||
|
||||
out := $(OUTPUT)arch/powerpc/include/generated/asm
|
||||
header32 := $(out)/syscalls_32.c
|
||||
header64 := $(out)/syscalls_64.c
|
||||
sysprf := $(srctree)/tools/perf/arch/powerpc/entry/syscalls
|
||||
sysdef := $(sysprf)/syscall.tbl
|
||||
systbl := $(sysprf)/mksyscalltbl
|
||||
|
||||
# Create output directory if not already present
|
||||
$(shell [ -d '$(out)' ] || mkdir -p '$(out)')
|
||||
|
||||
$(header64): $(sysdef) $(systbl)
|
||||
$(Q)$(SHELL) '$(systbl)' '64' $(sysdef) > $@
|
||||
|
||||
$(header32): $(sysdef) $(systbl)
|
||||
$(Q)$(SHELL) '$(systbl)' '32' $(sysdef) > $@
|
||||
|
||||
clean::
|
||||
$(call QUIET_CLEAN, powerpc) $(RM) $(header32) $(header64)
|
||||
|
||||
archheaders: $(header32) $(header64)
|
||||
|
|
3
tools/perf/arch/powerpc/entry/syscalls/Kbuild
Normal file
3
tools/perf/arch/powerpc/entry/syscalls/Kbuild
Normal file
|
@ -0,0 +1,3 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
syscall-y += syscalls_32.h
|
||||
syscall-y += syscalls_64.h
|
6
tools/perf/arch/powerpc/entry/syscalls/Makefile.syscalls
Normal file
6
tools/perf/arch/powerpc/entry/syscalls/Makefile.syscalls
Normal file
|
@ -0,0 +1,6 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
syscall_abis_32 += nospu
|
||||
syscall_abis_64 += nospu
|
||||
|
||||
syscalltbl = $(srctree)/tools/perf/arch/powerpc/entry/syscalls/syscall.tbl
|
|
@ -1,39 +0,0 @@
|
|||
#!/bin/sh
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
#
|
||||
# Generate system call table for perf. Derived from
|
||||
# s390 script.
|
||||
#
|
||||
# Copyright IBM Corp. 2017
|
||||
# Author(s): Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
|
||||
# Changed by: Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com>
|
||||
|
||||
wordsize=$1
|
||||
SYSCALL_TBL=$2
|
||||
|
||||
if ! test -r $SYSCALL_TBL; then
|
||||
echo "Could not read input file" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
create_table()
|
||||
{
|
||||
local wordsize=$1
|
||||
local max_nr nr abi sc discard
|
||||
max_nr=-1
|
||||
nr=0
|
||||
|
||||
echo "static const char *const syscalltbl_powerpc_${wordsize}[] = {"
|
||||
while read nr abi sc discard; do
|
||||
if [ "$max_nr" -lt "$nr" ]; then
|
||||
printf '\t[%d] = "%s",\n' $nr $sc
|
||||
max_nr=$nr
|
||||
fi
|
||||
done
|
||||
echo '};'
|
||||
echo "#define SYSCALLTBL_POWERPC_${wordsize}_MAX_ID $max_nr"
|
||||
}
|
||||
|
||||
grep -E "^[[:digit:]]+[[:space:]]+(common|spu|nospu|${wordsize})" $SYSCALL_TBL \
|
||||
|sort -k1 -n \
|
||||
|create_table ${wordsize}
|
8
tools/perf/arch/powerpc/include/syscall_table.h
Normal file
8
tools/perf/arch/powerpc/include/syscall_table.h
Normal file
|
@ -0,0 +1,8 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#include <asm/bitsperlong.h>
|
||||
|
||||
#if __BITS_PER_LONG == 64
|
||||
#include <asm/syscalls_64.h>
|
||||
#else
|
||||
#include <asm/syscalls_32.h>
|
||||
#endif
|
|
@ -16,6 +16,7 @@
|
|||
|
||||
#define PVR_POWER9 0x004E
|
||||
#define PVR_POWER10 0x0080
|
||||
#define PVR_POWER11 0x0082
|
||||
|
||||
static const struct sample_reg sample_reg_masks[] = {
|
||||
SMPL_REG(r0, PERF_REG_POWERPC_R0),
|
||||
|
@ -207,7 +208,7 @@ uint64_t arch__intr_reg_mask(void)
|
|||
version = (((mfspr(SPRN_PVR)) >> 16) & 0xFFFF);
|
||||
if (version == PVR_POWER9)
|
||||
extended_mask = PERF_REG_PMU_MASK_300;
|
||||
else if (version == PVR_POWER10)
|
||||
else if ((version == PVR_POWER10) || (version == PVR_POWER11))
|
||||
extended_mask = PERF_REG_PMU_MASK_31;
|
||||
else
|
||||
return mask;
|
||||
|
|
|
@ -1,25 +1,3 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
PERF_HAVE_JITDUMP := 1
|
||||
HAVE_KVM_STAT_SUPPORT := 1
|
||||
|
||||
#
|
||||
# Syscall table generation for perf
|
||||
#
|
||||
|
||||
out := $(OUTPUT)arch/riscv/include/generated/asm
|
||||
header := $(out)/syscalls.c
|
||||
incpath := $(srctree)/tools
|
||||
sysdef := $(srctree)/tools/arch/riscv/include/uapi/asm/unistd.h
|
||||
sysprf := $(srctree)/tools/perf/arch/riscv/entry/syscalls/
|
||||
systbl := $(sysprf)/mksyscalltbl
|
||||
|
||||
# Create output directory if not already present
|
||||
$(shell [ -d '$(out)' ] || mkdir -p '$(out)')
|
||||
|
||||
$(header): $(sysdef) $(systbl)
|
||||
$(Q)$(SHELL) '$(systbl)' '$(CC)' '$(HOSTCC)' $(incpath) $(sysdef) > $@
|
||||
|
||||
clean::
|
||||
$(call QUIET_CLEAN, riscv) $(RM) $(header)
|
||||
|
||||
archheaders: $(header)
|
||||
|
|
2
tools/perf/arch/riscv/entry/syscalls/Kbuild
Normal file
2
tools/perf/arch/riscv/entry/syscalls/Kbuild
Normal file
|
@ -0,0 +1,2 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
syscall-y += syscalls_64.h
|
4
tools/perf/arch/riscv/entry/syscalls/Makefile.syscalls
Normal file
4
tools/perf/arch/riscv/entry/syscalls/Makefile.syscalls
Normal file
|
@ -0,0 +1,4 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
syscall_abis_32 += riscv memfd_secret
|
||||
syscall_abis_64 += riscv rlimit memfd_secret
|
|
@ -1,47 +0,0 @@
|
|||
#!/bin/sh
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
#
|
||||
# Generate system call table for perf. Derived from
|
||||
# powerpc script.
|
||||
#
|
||||
# Copyright IBM Corp. 2017
|
||||
# Author(s): Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
|
||||
# Changed by: Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com>
|
||||
# Changed by: Kim Phillips <kim.phillips@arm.com>
|
||||
# Changed by: Björn Töpel <bjorn@rivosinc.com>
|
||||
|
||||
gcc=$1
|
||||
hostcc=$2
|
||||
incpath=$3
|
||||
input=$4
|
||||
|
||||
if ! test -r $input; then
|
||||
echo "Could not read input file" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
create_sc_table()
|
||||
{
|
||||
local sc nr max_nr
|
||||
|
||||
while read sc nr; do
|
||||
printf "%s\n" " [$nr] = \"$sc\","
|
||||
max_nr=$nr
|
||||
done
|
||||
|
||||
echo "#define SYSCALLTBL_RISCV_MAX_ID $max_nr"
|
||||
}
|
||||
|
||||
create_table()
|
||||
{
|
||||
echo "#include \"$input\""
|
||||
echo "static const char *const syscalltbl_riscv[] = {"
|
||||
create_sc_table
|
||||
echo "};"
|
||||
}
|
||||
|
||||
$gcc -E -dM -x c -I $incpath/include/uapi $input \
|
||||
|awk '$2 ~ "__NR" && $3 !~ "__NR3264_" {
|
||||
sub("^#define __NR(3264)?_", "");
|
||||
print | "sort -k2 -n"}' \
|
||||
|create_table
|
8
tools/perf/arch/riscv/include/syscall_table.h
Normal file
8
tools/perf/arch/riscv/include/syscall_table.h
Normal file
|
@ -0,0 +1,8 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#include <asm/bitsperlong.h>
|
||||
|
||||
#if __BITS_PER_LONG == 64
|
||||
#include <asm/syscalls_64.h>
|
||||
#else
|
||||
#include <asm/syscalls_32.h>
|
||||
#endif
|
|
@ -1,24 +1,3 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
HAVE_KVM_STAT_SUPPORT := 1
|
||||
PERF_HAVE_JITDUMP := 1
|
||||
|
||||
#
|
||||
# Syscall table generation for perf
|
||||
#
|
||||
|
||||
out := $(OUTPUT)arch/s390/include/generated/asm
|
||||
header := $(out)/syscalls_64.c
|
||||
sysprf := $(srctree)/tools/perf/arch/s390/entry/syscalls
|
||||
sysdef := $(sysprf)/syscall.tbl
|
||||
systbl := $(sysprf)/mksyscalltbl
|
||||
|
||||
# Create output directory if not already present
|
||||
$(shell [ -d '$(out)' ] || mkdir -p '$(out)')
|
||||
|
||||
$(header): $(sysdef) $(systbl)
|
||||
$(Q)$(SHELL) '$(systbl)' $(sysdef) > $@
|
||||
|
||||
clean::
|
||||
$(call QUIET_CLEAN, s390) $(RM) $(header)
|
||||
|
||||
archheaders: $(header)
|
||||
|
|
2
tools/perf/arch/s390/entry/syscalls/Kbuild
Normal file
2
tools/perf/arch/s390/entry/syscalls/Kbuild
Normal file
|
@ -0,0 +1,2 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
syscall-y += syscalls_64.h
|
5
tools/perf/arch/s390/entry/syscalls/Makefile.syscalls
Normal file
5
tools/perf/arch/s390/entry/syscalls/Makefile.syscalls
Normal file
|
@ -0,0 +1,5 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
syscall_abis_64 += renameat rlimit memfd_secret
|
||||
|
||||
syscalltbl = $(srctree)/tools/perf/arch/s390/entry/syscalls/syscall.tbl
|
|
@ -1,32 +0,0 @@
|
|||
#!/bin/sh
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
#
|
||||
# Generate system call table for perf
|
||||
#
|
||||
# Copyright IBM Corp. 2017, 2018
|
||||
# Author(s): Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
|
||||
#
|
||||
|
||||
SYSCALL_TBL=$1
|
||||
|
||||
if ! test -r $SYSCALL_TBL; then
|
||||
echo "Could not read input file" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
create_table()
|
||||
{
|
||||
local max_nr nr abi sc discard
|
||||
|
||||
echo 'static const char *const syscalltbl_s390_64[] = {'
|
||||
while read nr abi sc discard; do
|
||||
printf '\t[%d] = "%s",\n' $nr $sc
|
||||
max_nr=$nr
|
||||
done
|
||||
echo '};'
|
||||
echo "#define SYSCALLTBL_S390_64_MAX_ID $max_nr"
|
||||
}
|
||||
|
||||
grep -E "^[[:digit:]]+[[:space:]]+(common|64)" $SYSCALL_TBL \
|
||||
|sort -k1 -n \
|
||||
|create_table
|
2
tools/perf/arch/s390/include/syscall_table.h
Normal file
2
tools/perf/arch/s390/include/syscall_table.h
Normal file
|
@ -0,0 +1,2 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#include <asm/syscalls_64.h>
|
2
tools/perf/arch/sh/entry/syscalls/Kbuild
Normal file
2
tools/perf/arch/sh/entry/syscalls/Kbuild
Normal file
|
@ -0,0 +1,2 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
syscall-y += syscalls_32.h
|
4
tools/perf/arch/sh/entry/syscalls/Makefile.syscalls
Normal file
4
tools/perf/arch/sh/entry/syscalls/Makefile.syscalls
Normal file
|
@ -0,0 +1,4 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
syscall_abis_32 +=
|
||||
syscalltbl = $(srctree)/tools/perf/arch/sh/entry/syscalls/syscall.tbl
|
472
tools/perf/arch/sh/entry/syscalls/syscall.tbl
Normal file
472
tools/perf/arch/sh/entry/syscalls/syscall.tbl
Normal file
|
@ -0,0 +1,472 @@
|
|||
# SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
|
||||
#
|
||||
# system call numbers and entry vectors for sh
|
||||
#
|
||||
# The format is:
|
||||
# <number> <abi> <name> <entry point>
|
||||
#
|
||||
# The <abi> is always "common" for this file
|
||||
#
|
||||
0 common restart_syscall sys_restart_syscall
|
||||
1 common exit sys_exit
|
||||
2 common fork sys_fork
|
||||
3 common read sys_read
|
||||
4 common write sys_write
|
||||
5 common open sys_open
|
||||
6 common close sys_close
|
||||
7 common waitpid sys_waitpid
|
||||
8 common creat sys_creat
|
||||
9 common link sys_link
|
||||
10 common unlink sys_unlink
|
||||
11 common execve sys_execve
|
||||
12 common chdir sys_chdir
|
||||
13 common time sys_time32
|
||||
14 common mknod sys_mknod
|
||||
15 common chmod sys_chmod
|
||||
16 common lchown sys_lchown16
|
||||
# 17 was break
|
||||
18 common oldstat sys_stat
|
||||
19 common lseek sys_lseek
|
||||
20 common getpid sys_getpid
|
||||
21 common mount sys_mount
|
||||
22 common umount sys_oldumount
|
||||
23 common setuid sys_setuid16
|
||||
24 common getuid sys_getuid16
|
||||
25 common stime sys_stime32
|
||||
26 common ptrace sys_ptrace
|
||||
27 common alarm sys_alarm
|
||||
28 common oldfstat sys_fstat
|
||||
29 common pause sys_pause
|
||||
30 common utime sys_utime32
|
||||
# 31 was stty
|
||||
# 32 was gtty
|
||||
33 common access sys_access
|
||||
34 common nice sys_nice
|
||||
# 35 was ftime
|
||||
36 common sync sys_sync
|
||||
37 common kill sys_kill
|
||||
38 common rename sys_rename
|
||||
39 common mkdir sys_mkdir
|
||||
40 common rmdir sys_rmdir
|
||||
41 common dup sys_dup
|
||||
42 common pipe sys_sh_pipe
|
||||
43 common times sys_times
|
||||
# 44 was prof
|
||||
45 common brk sys_brk
|
||||
46 common setgid sys_setgid16
|
||||
47 common getgid sys_getgid16
|
||||
48 common signal sys_signal
|
||||
49 common geteuid sys_geteuid16
|
||||
50 common getegid sys_getegid16
|
||||
51 common acct sys_acct
|
||||
52 common umount2 sys_umount
|
||||
# 53 was lock
|
||||
54 common ioctl sys_ioctl
|
||||
55 common fcntl sys_fcntl
|
||||
# 56 was mpx
|
||||
57 common setpgid sys_setpgid
|
||||
# 58 was ulimit
|
||||
# 59 was olduname
|
||||
60 common umask sys_umask
|
||||
61 common chroot sys_chroot
|
||||
62 common ustat sys_ustat
|
||||
63 common dup2 sys_dup2
|
||||
64 common getppid sys_getppid
|
||||
65 common getpgrp sys_getpgrp
|
||||
66 common setsid sys_setsid
|
||||
67 common sigaction sys_sigaction
|
||||
68 common sgetmask sys_sgetmask
|
||||
69 common ssetmask sys_ssetmask
|
||||
70 common setreuid sys_setreuid16
|
||||
71 common setregid sys_setregid16
|
||||
72 common sigsuspend sys_sigsuspend
|
||||
73 common sigpending sys_sigpending
|
||||
74 common sethostname sys_sethostname
|
||||
75 common setrlimit sys_setrlimit
|
||||
76 common getrlimit sys_old_getrlimit
|
||||
77 common getrusage sys_getrusage
|
||||
78 common gettimeofday sys_gettimeofday
|
||||
79 common settimeofday sys_settimeofday
|
||||
80 common getgroups sys_getgroups16
|
||||
81 common setgroups sys_setgroups16
|
||||
# 82 was select
|
||||
83 common symlink sys_symlink
|
||||
84 common oldlstat sys_lstat
|
||||
85 common readlink sys_readlink
|
||||
86 common uselib sys_uselib
|
||||
87 common swapon sys_swapon
|
||||
88 common reboot sys_reboot
|
||||
89 common readdir sys_old_readdir
|
||||
90 common mmap old_mmap
|
||||
91 common munmap sys_munmap
|
||||
92 common truncate sys_truncate
|
||||
93 common ftruncate sys_ftruncate
|
||||
94 common fchmod sys_fchmod
|
||||
95 common fchown sys_fchown16
|
||||
96 common getpriority sys_getpriority
|
||||
97 common setpriority sys_setpriority
|
||||
# 98 was profil
|
||||
99 common statfs sys_statfs
|
||||
100 common fstatfs sys_fstatfs
|
||||
# 101 was ioperm
|
||||
102 common socketcall sys_socketcall
|
||||
103 common syslog sys_syslog
|
||||
104 common setitimer sys_setitimer
|
||||
105 common getitimer sys_getitimer
|
||||
106 common stat sys_newstat
|
||||
107 common lstat sys_newlstat
|
||||
108 common fstat sys_newfstat
|
||||
109 common olduname sys_uname
|
||||
# 110 was iopl
|
||||
111 common vhangup sys_vhangup
|
||||
# 112 was idle
|
||||
# 113 was vm86old
|
||||
114 common wait4 sys_wait4
|
||||
115 common swapoff sys_swapoff
|
||||
116 common sysinfo sys_sysinfo
|
||||
117 common ipc sys_ipc
|
||||
118 common fsync sys_fsync
|
||||
119 common sigreturn sys_sigreturn
|
||||
120 common clone sys_clone
|
||||
121 common setdomainname sys_setdomainname
|
||||
122 common uname sys_newuname
|
||||
123 common cacheflush sys_cacheflush
|
||||
124 common adjtimex sys_adjtimex_time32
|
||||
125 common mprotect sys_mprotect
|
||||
126 common sigprocmask sys_sigprocmask
|
||||
# 127 was create_module
|
||||
128 common init_module sys_init_module
|
||||
129 common delete_module sys_delete_module
|
||||
# 130 was get_kernel_syms
|
||||
131 common quotactl sys_quotactl
|
||||
132 common getpgid sys_getpgid
|
||||
133 common fchdir sys_fchdir
|
||||
134 common bdflush sys_ni_syscall
|
||||
135 common sysfs sys_sysfs
|
||||
136 common personality sys_personality
|
||||
# 137 was afs_syscall
|
||||
138 common setfsuid sys_setfsuid16
|
||||
139 common setfsgid sys_setfsgid16
|
||||
140 common _llseek sys_llseek
|
||||
141 common getdents sys_getdents
|
||||
142 common _newselect sys_select
|
||||
143 common flock sys_flock
|
||||
144 common msync sys_msync
|
||||
145 common readv sys_readv
|
||||
146 common writev sys_writev
|
||||
147 common getsid sys_getsid
|
||||
148 common fdatasync sys_fdatasync
|
||||
149 common _sysctl sys_ni_syscall
|
||||
150 common mlock sys_mlock
|
||||
151 common munlock sys_munlock
|
||||
152 common mlockall sys_mlockall
|
||||
153 common munlockall sys_munlockall
|
||||
154 common sched_setparam sys_sched_setparam
|
||||
155 common sched_getparam sys_sched_getparam
|
||||
156 common sched_setscheduler sys_sched_setscheduler
|
||||
157 common sched_getscheduler sys_sched_getscheduler
|
||||
158 common sched_yield sys_sched_yield
|
||||
159 common sched_get_priority_max sys_sched_get_priority_max
|
||||
160 common sched_get_priority_min sys_sched_get_priority_min
|
||||
161 common sched_rr_get_interval sys_sched_rr_get_interval_time32
|
||||
162 common nanosleep sys_nanosleep_time32
|
||||
163 common mremap sys_mremap
|
||||
164 common setresuid sys_setresuid16
|
||||
165 common getresuid sys_getresuid16
|
||||
# 166 was vm86
|
||||
# 167 was query_module
|
||||
168 common poll sys_poll
|
||||
169 common nfsservctl sys_ni_syscall
|
||||
170 common setresgid sys_setresgid16
|
||||
171 common getresgid sys_getresgid16
|
||||
172 common prctl sys_prctl
|
||||
173 common rt_sigreturn sys_rt_sigreturn
|
||||
174 common rt_sigaction sys_rt_sigaction
|
||||
175 common rt_sigprocmask sys_rt_sigprocmask
|
||||
176 common rt_sigpending sys_rt_sigpending
|
||||
177 common rt_sigtimedwait sys_rt_sigtimedwait_time32
|
||||
178 common rt_sigqueueinfo sys_rt_sigqueueinfo
|
||||
179 common rt_sigsuspend sys_rt_sigsuspend
|
||||
180 common pread64 sys_pread_wrapper
|
||||
181 common pwrite64 sys_pwrite_wrapper
|
||||
182 common chown sys_chown16
|
||||
183 common getcwd sys_getcwd
|
||||
184 common capget sys_capget
|
||||
185 common capset sys_capset
|
||||
186 common sigaltstack sys_sigaltstack
|
||||
187 common sendfile sys_sendfile
|
||||
# 188 is reserved for getpmsg
|
||||
# 189 is reserved for putpmsg
|
||||
190 common vfork sys_vfork
|
||||
191 common ugetrlimit sys_getrlimit
|
||||
192 common mmap2 sys_mmap2
|
||||
193 common truncate64 sys_truncate64
|
||||
194 common ftruncate64 sys_ftruncate64
|
||||
195 common stat64 sys_stat64
|
||||
196 common lstat64 sys_lstat64
|
||||
197 common fstat64 sys_fstat64
|
||||
198 common lchown32 sys_lchown
|
||||
199 common getuid32 sys_getuid
|
||||
200 common getgid32 sys_getgid
|
||||
201 common geteuid32 sys_geteuid
|
||||
202 common getegid32 sys_getegid
|
||||
203 common setreuid32 sys_setreuid
|
||||
204 common setregid32 sys_setregid
|
||||
205 common getgroups32 sys_getgroups
|
||||
206 common setgroups32 sys_setgroups
|
||||
207 common fchown32 sys_fchown
|
||||
208 common setresuid32 sys_setresuid
|
||||
209 common getresuid32 sys_getresuid
|
||||
210 common setresgid32 sys_setresgid
|
||||
211 common getresgid32 sys_getresgid
|
||||
212 common chown32 sys_chown
|
||||
213 common setuid32 sys_setuid
|
||||
214 common setgid32 sys_setgid
|
||||
215 common setfsuid32 sys_setfsuid
|
||||
216 common setfsgid32 sys_setfsgid
|
||||
217 common pivot_root sys_pivot_root
|
||||
218 common mincore sys_mincore
|
||||
219 common madvise sys_madvise
|
||||
220 common getdents64 sys_getdents64
|
||||
221 common fcntl64 sys_fcntl64
|
||||
# 222 is reserved for tux
|
||||
# 223 is unused
|
||||
224 common gettid sys_gettid
|
||||
225 common readahead sys_readahead
|
||||
226 common setxattr sys_setxattr
|
||||
227 common lsetxattr sys_lsetxattr
|
||||
228 common fsetxattr sys_fsetxattr
|
||||
229 common getxattr sys_getxattr
|
||||
230 common lgetxattr sys_lgetxattr
|
||||
231 common fgetxattr sys_fgetxattr
|
||||
232 common listxattr sys_listxattr
|
||||
233 common llistxattr sys_llistxattr
|
||||
234 common flistxattr sys_flistxattr
|
||||
235 common removexattr sys_removexattr
|
||||
236 common lremovexattr sys_lremovexattr
|
||||
237 common fremovexattr sys_fremovexattr
|
||||
238 common tkill sys_tkill
|
||||
239 common sendfile64 sys_sendfile64
|
||||
240 common futex sys_futex_time32
|
||||
241 common sched_setaffinity sys_sched_setaffinity
|
||||
242 common sched_getaffinity sys_sched_getaffinity
|
||||
# 243 is reserved for set_thread_area
|
||||
# 244 is reserved for get_thread_area
|
||||
245 common io_setup sys_io_setup
|
||||
246 common io_destroy sys_io_destroy
|
||||
247 common io_getevents sys_io_getevents_time32
|
||||
248 common io_submit sys_io_submit
|
||||
249 common io_cancel sys_io_cancel
|
||||
250 common fadvise64 sys_fadvise64
|
||||
# 251 is unused
|
||||
252 common exit_group sys_exit_group
|
||||
253 common lookup_dcookie sys_ni_syscall
|
||||
254 common epoll_create sys_epoll_create
|
||||
255 common epoll_ctl sys_epoll_ctl
|
||||
256 common epoll_wait sys_epoll_wait
|
||||
257 common remap_file_pages sys_remap_file_pages
|
||||
258 common set_tid_address sys_set_tid_address
|
||||
259 common timer_create sys_timer_create
|
||||
260 common timer_settime sys_timer_settime32
|
||||
261 common timer_gettime sys_timer_gettime32
|
||||
262 common timer_getoverrun sys_timer_getoverrun
|
||||
263 common timer_delete sys_timer_delete
|
||||
264 common clock_settime sys_clock_settime32
|
||||
265 common clock_gettime sys_clock_gettime32
|
||||
266 common clock_getres sys_clock_getres_time32
|
||||
267 common clock_nanosleep sys_clock_nanosleep_time32
|
||||
268 common statfs64 sys_statfs64
|
||||
269 common fstatfs64 sys_fstatfs64
|
||||
270 common tgkill sys_tgkill
|
||||
271 common utimes sys_utimes_time32
|
||||
272 common fadvise64_64 sys_fadvise64_64_wrapper
|
||||
# 273 is reserved for vserver
|
||||
274 common mbind sys_mbind
|
||||
275 common get_mempolicy sys_get_mempolicy
|
||||
276 common set_mempolicy sys_set_mempolicy
|
||||
277 common mq_open sys_mq_open
|
||||
278 common mq_unlink sys_mq_unlink
|
||||
279 common mq_timedsend sys_mq_timedsend_time32
|
||||
280 common mq_timedreceive sys_mq_timedreceive_time32
|
||||
281 common mq_notify sys_mq_notify
|
||||
282 common mq_getsetattr sys_mq_getsetattr
|
||||
283 common kexec_load sys_kexec_load
|
||||
284 common waitid sys_waitid
|
||||
285 common add_key sys_add_key
|
||||
286 common request_key sys_request_key
|
||||
287 common keyctl sys_keyctl
|
||||
288 common ioprio_set sys_ioprio_set
|
||||
289 common ioprio_get sys_ioprio_get
|
||||
290 common inotify_init sys_inotify_init
|
||||
291 common inotify_add_watch sys_inotify_add_watch
|
||||
292 common inotify_rm_watch sys_inotify_rm_watch
|
||||
# 293 is unused
|
||||
294 common migrate_pages sys_migrate_pages
|
||||
295 common openat sys_openat
|
||||
296 common mkdirat sys_mkdirat
|
||||
297 common mknodat sys_mknodat
|
||||
298 common fchownat sys_fchownat
|
||||
299 common futimesat sys_futimesat_time32
|
||||
300 common fstatat64 sys_fstatat64
|
||||
301 common unlinkat sys_unlinkat
|
||||
302 common renameat sys_renameat
|
||||
303 common linkat sys_linkat
|
||||
304 common symlinkat sys_symlinkat
|
||||
305 common readlinkat sys_readlinkat
|
||||
306 common fchmodat sys_fchmodat
|
||||
307 common faccessat sys_faccessat
|
||||
308 common pselect6 sys_pselect6_time32
|
||||
309 common ppoll sys_ppoll_time32
|
||||
310 common unshare sys_unshare
|
||||
311 common set_robust_list sys_set_robust_list
|
||||
312 common get_robust_list sys_get_robust_list
|
||||
313 common splice sys_splice
|
||||
314 common sync_file_range sys_sh_sync_file_range6
|
||||
315 common tee sys_tee
|
||||
316 common vmsplice sys_vmsplice
|
||||
317 common move_pages sys_move_pages
|
||||
318 common getcpu sys_getcpu
|
||||
319 common epoll_pwait sys_epoll_pwait
|
||||
320 common utimensat sys_utimensat_time32
|
||||
321 common signalfd sys_signalfd
|
||||
322 common timerfd_create sys_timerfd_create
|
||||
323 common eventfd sys_eventfd
|
||||
324 common fallocate sys_fallocate
|
||||
325 common timerfd_settime sys_timerfd_settime32
|
||||
326 common timerfd_gettime sys_timerfd_gettime32
|
||||
327 common signalfd4 sys_signalfd4
|
||||
328 common eventfd2 sys_eventfd2
|
||||
329 common epoll_create1 sys_epoll_create1
|
||||
330 common dup3 sys_dup3
|
||||
331 common pipe2 sys_pipe2
|
||||
332 common inotify_init1 sys_inotify_init1
|
||||
333 common preadv sys_preadv
|
||||
334 common pwritev sys_pwritev
|
||||
335 common rt_tgsigqueueinfo sys_rt_tgsigqueueinfo
|
||||
336 common perf_event_open sys_perf_event_open
|
||||
337 common fanotify_init sys_fanotify_init
|
||||
338 common fanotify_mark sys_fanotify_mark
|
||||
339 common prlimit64 sys_prlimit64
|
||||
340 common socket sys_socket
|
||||
341 common bind sys_bind
|
||||
342 common connect sys_connect
|
||||
343 common listen sys_listen
|
||||
344 common accept sys_accept
|
||||
345 common getsockname sys_getsockname
|
||||
346 common getpeername sys_getpeername
|
||||
347 common socketpair sys_socketpair
|
||||
348 common send sys_send
|
||||
349 common sendto sys_sendto
|
||||
350 common recv sys_recv
|
||||
351 common recvfrom sys_recvfrom
|
||||
352 common shutdown sys_shutdown
|
||||
353 common setsockopt sys_setsockopt
|
||||
354 common getsockopt sys_getsockopt
|
||||
355 common sendmsg sys_sendmsg
|
||||
356 common recvmsg sys_recvmsg
|
||||
357 common recvmmsg sys_recvmmsg_time32
|
||||
358 common accept4 sys_accept4
|
||||
359 common name_to_handle_at sys_name_to_handle_at
|
||||
360 common open_by_handle_at sys_open_by_handle_at
|
||||
361 common clock_adjtime sys_clock_adjtime32
|
||||
362 common syncfs sys_syncfs
|
||||
363 common sendmmsg sys_sendmmsg
|
||||
364 common setns sys_setns
|
||||
365 common process_vm_readv sys_process_vm_readv
|
||||
366 common process_vm_writev sys_process_vm_writev
|
||||
367 common kcmp sys_kcmp
|
||||
368 common finit_module sys_finit_module
|
||||
369 common sched_getattr sys_sched_getattr
|
||||
370 common sched_setattr sys_sched_setattr
|
||||
371 common renameat2 sys_renameat2
|
||||
372 common seccomp sys_seccomp
|
||||
373 common getrandom sys_getrandom
|
||||
374 common memfd_create sys_memfd_create
|
||||
375 common bpf sys_bpf
|
||||
376 common execveat sys_execveat
|
||||
377 common userfaultfd sys_userfaultfd
|
||||
378 common membarrier sys_membarrier
|
||||
379 common mlock2 sys_mlock2
|
||||
380 common copy_file_range sys_copy_file_range
|
||||
381 common preadv2 sys_preadv2
|
||||
382 common pwritev2 sys_pwritev2
|
||||
383 common statx sys_statx
|
||||
384 common pkey_mprotect sys_pkey_mprotect
|
||||
385 common pkey_alloc sys_pkey_alloc
|
||||
386 common pkey_free sys_pkey_free
|
||||
387 common rseq sys_rseq
|
||||
388 common sync_file_range2 sys_sync_file_range2
|
||||
# room for arch specific syscalls
|
||||
393 common semget sys_semget
|
||||
394 common semctl sys_semctl
|
||||
395 common shmget sys_shmget
|
||||
396 common shmctl sys_shmctl
|
||||
397 common shmat sys_shmat
|
||||
398 common shmdt sys_shmdt
|
||||
399 common msgget sys_msgget
|
||||
400 common msgsnd sys_msgsnd
|
||||
401 common msgrcv sys_msgrcv
|
||||
402 common msgctl sys_msgctl
|
||||
403 common clock_gettime64 sys_clock_gettime
|
||||
404 common clock_settime64 sys_clock_settime
|
||||
405 common clock_adjtime64 sys_clock_adjtime
|
||||
406 common clock_getres_time64 sys_clock_getres
|
||||
407 common clock_nanosleep_time64 sys_clock_nanosleep
|
||||
408 common timer_gettime64 sys_timer_gettime
|
||||
409 common timer_settime64 sys_timer_settime
|
||||
410 common timerfd_gettime64 sys_timerfd_gettime
|
||||
411 common timerfd_settime64 sys_timerfd_settime
|
||||
412 common utimensat_time64 sys_utimensat
|
||||
413 common pselect6_time64 sys_pselect6
|
||||
414 common ppoll_time64 sys_ppoll
|
||||
416 common io_pgetevents_time64 sys_io_pgetevents
|
||||
417 common recvmmsg_time64 sys_recvmmsg
|
||||
418 common mq_timedsend_time64 sys_mq_timedsend
|
||||
419 common mq_timedreceive_time64 sys_mq_timedreceive
|
||||
420 common semtimedop_time64 sys_semtimedop
|
||||
421 common rt_sigtimedwait_time64 sys_rt_sigtimedwait
|
||||
422 common futex_time64 sys_futex
|
||||
423 common sched_rr_get_interval_time64 sys_sched_rr_get_interval
|
||||
424 common pidfd_send_signal sys_pidfd_send_signal
|
||||
425 common io_uring_setup sys_io_uring_setup
|
||||
426 common io_uring_enter sys_io_uring_enter
|
||||
427 common io_uring_register sys_io_uring_register
|
||||
428 common open_tree sys_open_tree
|
||||
429 common move_mount sys_move_mount
|
||||
430 common fsopen sys_fsopen
|
||||
431 common fsconfig sys_fsconfig
|
||||
432 common fsmount sys_fsmount
|
||||
433 common fspick sys_fspick
|
||||
434 common pidfd_open sys_pidfd_open
|
||||
# 435 reserved for clone3
|
||||
436 common close_range sys_close_range
|
||||
437 common openat2 sys_openat2
|
||||
438 common pidfd_getfd sys_pidfd_getfd
|
||||
439 common faccessat2 sys_faccessat2
|
||||
440 common process_madvise sys_process_madvise
|
||||
441 common epoll_pwait2 sys_epoll_pwait2
|
||||
442 common mount_setattr sys_mount_setattr
|
||||
443 common quotactl_fd sys_quotactl_fd
|
||||
444 common landlock_create_ruleset sys_landlock_create_ruleset
|
||||
445 common landlock_add_rule sys_landlock_add_rule
|
||||
446 common landlock_restrict_self sys_landlock_restrict_self
|
||||
# 447 reserved for memfd_secret
|
||||
448 common process_mrelease sys_process_mrelease
|
||||
449 common futex_waitv sys_futex_waitv
|
||||
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
|
||||
451 common cachestat sys_cachestat
|
||||
452 common fchmodat2 sys_fchmodat2
|
||||
453 common map_shadow_stack sys_map_shadow_stack
|
||||
454 common futex_wake sys_futex_wake
|
||||
455 common futex_wait sys_futex_wait
|
||||
456 common futex_requeue sys_futex_requeue
|
||||
457 common statmount sys_statmount
|
||||
458 common listmount sys_listmount
|
||||
459 common lsm_get_self_attr sys_lsm_get_self_attr
|
||||
460 common lsm_set_self_attr sys_lsm_set_self_attr
|
||||
461 common lsm_list_modules sys_lsm_list_modules
|
||||
462 common mseal sys_mseal
|
||||
463 common setxattrat sys_setxattrat
|
||||
464 common getxattrat sys_getxattrat
|
||||
465 common listxattrat sys_listxattrat
|
||||
466 common removexattrat sys_removexattrat
|
2
tools/perf/arch/sh/include/syscall_table.h
Normal file
2
tools/perf/arch/sh/include/syscall_table.h
Normal file
|
@ -0,0 +1,2 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#include <asm/syscalls_32.h>
|
3
tools/perf/arch/sparc/entry/syscalls/Kbuild
Normal file
3
tools/perf/arch/sparc/entry/syscalls/Kbuild
Normal file
|
@ -0,0 +1,3 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
syscall-y += syscalls_32.h
|
||||
syscall-y += syscalls_64.h
|
5
tools/perf/arch/sparc/entry/syscalls/Makefile.syscalls
Normal file
5
tools/perf/arch/sparc/entry/syscalls/Makefile.syscalls
Normal file
|
@ -0,0 +1,5 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
syscall_abis_32 +=
|
||||
syscall_abis_64 +=
|
||||
syscalltbl = $(srctree)/tools/perf/arch/sparc/entry/syscalls/syscall.tbl
|
514
tools/perf/arch/sparc/entry/syscalls/syscall.tbl
Normal file
514
tools/perf/arch/sparc/entry/syscalls/syscall.tbl
Normal file
|
@ -0,0 +1,514 @@
|
|||
# SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
|
||||
#
|
||||
# system call numbers and entry vectors for sparc
|
||||
#
|
||||
# The format is:
|
||||
# <number> <abi> <name> <entry point> <compat entry point>
|
||||
#
|
||||
# The <abi> can be common, 64, or 32 for this file.
|
||||
#
|
||||
0 common restart_syscall sys_restart_syscall
|
||||
1 32 exit sys_exit sparc_exit
|
||||
1 64 exit sparc_exit
|
||||
2 common fork sys_fork
|
||||
3 common read sys_read
|
||||
4 common write sys_write
|
||||
5 common open sys_open compat_sys_open
|
||||
6 common close sys_close
|
||||
7 common wait4 sys_wait4 compat_sys_wait4
|
||||
8 common creat sys_creat
|
||||
9 common link sys_link
|
||||
10 common unlink sys_unlink
|
||||
11 32 execv sunos_execv
|
||||
11 64 execv sys_nis_syscall
|
||||
12 common chdir sys_chdir
|
||||
13 32 chown sys_chown16
|
||||
13 64 chown sys_chown
|
||||
14 common mknod sys_mknod
|
||||
15 common chmod sys_chmod
|
||||
16 32 lchown sys_lchown16
|
||||
16 64 lchown sys_lchown
|
||||
17 common brk sys_brk
|
||||
18 common perfctr sys_nis_syscall
|
||||
19 common lseek sys_lseek compat_sys_lseek
|
||||
20 common getpid sys_getpid
|
||||
21 common capget sys_capget
|
||||
22 common capset sys_capset
|
||||
23 32 setuid sys_setuid16
|
||||
23 64 setuid sys_setuid
|
||||
24 32 getuid sys_getuid16
|
||||
24 64 getuid sys_getuid
|
||||
25 common vmsplice sys_vmsplice
|
||||
26 common ptrace sys_ptrace compat_sys_ptrace
|
||||
27 common alarm sys_alarm
|
||||
28 common sigaltstack sys_sigaltstack compat_sys_sigaltstack
|
||||
29 32 pause sys_pause
|
||||
29 64 pause sys_nis_syscall
|
||||
30 32 utime sys_utime32
|
||||
30 64 utime sys_utime
|
||||
31 32 lchown32 sys_lchown
|
||||
32 32 fchown32 sys_fchown
|
||||
33 common access sys_access
|
||||
34 common nice sys_nice
|
||||
35 32 chown32 sys_chown
|
||||
36 common sync sys_sync
|
||||
37 common kill sys_kill
|
||||
38 common stat sys_newstat compat_sys_newstat
|
||||
39 32 sendfile sys_sendfile compat_sys_sendfile
|
||||
39 64 sendfile sys_sendfile64
|
||||
40 common lstat sys_newlstat compat_sys_newlstat
|
||||
41 common dup sys_dup
|
||||
42 common pipe sys_sparc_pipe
|
||||
43 common times sys_times compat_sys_times
|
||||
44 32 getuid32 sys_getuid
|
||||
45 common umount2 sys_umount
|
||||
46 32 setgid sys_setgid16
|
||||
46 64 setgid sys_setgid
|
||||
47 32 getgid sys_getgid16
|
||||
47 64 getgid sys_getgid
|
||||
48 common signal sys_signal
|
||||
49 32 geteuid sys_geteuid16
|
||||
49 64 geteuid sys_geteuid
|
||||
50 32 getegid sys_getegid16
|
||||
50 64 getegid sys_getegid
|
||||
51 common acct sys_acct
|
||||
52 64 memory_ordering sys_memory_ordering
|
||||
53 32 getgid32 sys_getgid
|
||||
54 common ioctl sys_ioctl compat_sys_ioctl
|
||||
55 common reboot sys_reboot
|
||||
56 32 mmap2 sys_mmap2 sys32_mmap2
|
||||
57 common symlink sys_symlink
|
||||
58 common readlink sys_readlink
|
||||
59 32 execve sys_execve sys32_execve
|
||||
59 64 execve sys64_execve
|
||||
60 common umask sys_umask
|
||||
61 common chroot sys_chroot
|
||||
62 common fstat sys_newfstat compat_sys_newfstat
|
||||
63 common fstat64 sys_fstat64 compat_sys_fstat64
|
||||
64 common getpagesize sys_getpagesize
|
||||
65 common msync sys_msync
|
||||
66 common vfork sys_vfork
|
||||
67 common pread64 sys_pread64 compat_sys_pread64
|
||||
68 common pwrite64 sys_pwrite64 compat_sys_pwrite64
|
||||
69 32 geteuid32 sys_geteuid
|
||||
70 32 getegid32 sys_getegid
|
||||
71 common mmap sys_mmap
|
||||
72 32 setreuid32 sys_setreuid
|
||||
73 32 munmap sys_munmap
|
||||
73 64 munmap sys_64_munmap
|
||||
74 common mprotect sys_mprotect
|
||||
75 common madvise sys_madvise
|
||||
76 common vhangup sys_vhangup
|
||||
77 32 truncate64 sys_truncate64 compat_sys_truncate64
|
||||
78 common mincore sys_mincore
|
||||
79 32 getgroups sys_getgroups16
|
||||
79 64 getgroups sys_getgroups
|
||||
80 32 setgroups sys_setgroups16
|
||||
80 64 setgroups sys_setgroups
|
||||
81 common getpgrp sys_getpgrp
|
||||
82 32 setgroups32 sys_setgroups
|
||||
83 common setitimer sys_setitimer compat_sys_setitimer
|
||||
84 32 ftruncate64 sys_ftruncate64 compat_sys_ftruncate64
|
||||
85 common swapon sys_swapon
|
||||
86 common getitimer sys_getitimer compat_sys_getitimer
|
||||
87 32 setuid32 sys_setuid
|
||||
88 common sethostname sys_sethostname
|
||||
89 32 setgid32 sys_setgid
|
||||
90 common dup2 sys_dup2
|
||||
91 32 setfsuid32 sys_setfsuid
|
||||
92 common fcntl sys_fcntl compat_sys_fcntl
|
||||
93 common select sys_select compat_sys_select
|
||||
94 32 setfsgid32 sys_setfsgid
|
||||
95 common fsync sys_fsync
|
||||
96 common setpriority sys_setpriority
|
||||
97 common socket sys_socket
|
||||
98 common connect sys_connect
|
||||
99 common accept sys_accept
|
||||
100 common getpriority sys_getpriority
|
||||
101 common rt_sigreturn sys_rt_sigreturn sys32_rt_sigreturn
|
||||
102 common rt_sigaction sys_rt_sigaction compat_sys_rt_sigaction
|
||||
103 common rt_sigprocmask sys_rt_sigprocmask compat_sys_rt_sigprocmask
|
||||
104 common rt_sigpending sys_rt_sigpending compat_sys_rt_sigpending
|
||||
105 32 rt_sigtimedwait sys_rt_sigtimedwait_time32 compat_sys_rt_sigtimedwait_time32
|
||||
105 64 rt_sigtimedwait sys_rt_sigtimedwait
|
||||
106 common rt_sigqueueinfo sys_rt_sigqueueinfo compat_sys_rt_sigqueueinfo
|
||||
107 common rt_sigsuspend sys_rt_sigsuspend compat_sys_rt_sigsuspend
|
||||
108 32 setresuid32 sys_setresuid
|
||||
108 64 setresuid sys_setresuid
|
||||
109 32 getresuid32 sys_getresuid
|
||||
109 64 getresuid sys_getresuid
|
||||
110 32 setresgid32 sys_setresgid
|
||||
110 64 setresgid sys_setresgid
|
||||
111 32 getresgid32 sys_getresgid
|
||||
111 64 getresgid sys_getresgid
|
||||
112 32 setregid32 sys_setregid
|
||||
113 common recvmsg sys_recvmsg compat_sys_recvmsg
|
||||
114 common sendmsg sys_sendmsg compat_sys_sendmsg
|
||||
115 32 getgroups32 sys_getgroups
|
||||
116 common gettimeofday sys_gettimeofday compat_sys_gettimeofday
|
||||
117 common getrusage sys_getrusage compat_sys_getrusage
|
||||
118 common getsockopt sys_getsockopt sys_getsockopt
|
||||
119 common getcwd sys_getcwd
|
||||
120 common readv sys_readv
|
||||
121 common writev sys_writev
|
||||
122 common settimeofday sys_settimeofday compat_sys_settimeofday
|
||||
123 32 fchown sys_fchown16
|
||||
123 64 fchown sys_fchown
|
||||
124 common fchmod sys_fchmod
|
||||
125 common recvfrom sys_recvfrom compat_sys_recvfrom
|
||||
126 32 setreuid sys_setreuid16
|
||||
126 64 setreuid sys_setreuid
|
||||
127 32 setregid sys_setregid16
|
||||
127 64 setregid sys_setregid
|
||||
128 common rename sys_rename
|
||||
129 common truncate sys_truncate compat_sys_truncate
|
||||
130 common ftruncate sys_ftruncate compat_sys_ftruncate
|
||||
131 common flock sys_flock
|
||||
132 common lstat64 sys_lstat64 compat_sys_lstat64
|
||||
133 common sendto sys_sendto
|
||||
134 common shutdown sys_shutdown
|
||||
135 common socketpair sys_socketpair
|
||||
136 common mkdir sys_mkdir
|
||||
137 common rmdir sys_rmdir
|
||||
138 32 utimes sys_utimes_time32
|
||||
138 64 utimes sys_utimes
|
||||
139 common stat64 sys_stat64 compat_sys_stat64
|
||||
140 common sendfile64 sys_sendfile64
|
||||
141 common getpeername sys_getpeername
|
||||
142 32 futex sys_futex_time32
|
||||
142 64 futex sys_futex
|
||||
143 common gettid sys_gettid
|
||||
144 common getrlimit sys_getrlimit compat_sys_getrlimit
|
||||
145 common setrlimit sys_setrlimit compat_sys_setrlimit
|
||||
146 common pivot_root sys_pivot_root
|
||||
147 common prctl sys_prctl
|
||||
148 common pciconfig_read sys_pciconfig_read
|
||||
149 common pciconfig_write sys_pciconfig_write
|
||||
150 common getsockname sys_getsockname
|
||||
151 common inotify_init sys_inotify_init
|
||||
152 common inotify_add_watch sys_inotify_add_watch
|
||||
153 common poll sys_poll
|
||||
154 common getdents64 sys_getdents64
|
||||
155 32 fcntl64 sys_fcntl64 compat_sys_fcntl64
|
||||
156 common inotify_rm_watch sys_inotify_rm_watch
|
||||
157 common statfs sys_statfs compat_sys_statfs
|
||||
158 common fstatfs sys_fstatfs compat_sys_fstatfs
|
||||
159 common umount sys_oldumount
|
||||
160 common sched_set_affinity sys_sched_setaffinity compat_sys_sched_setaffinity
|
||||
161 common sched_get_affinity sys_sched_getaffinity compat_sys_sched_getaffinity
|
||||
162 common getdomainname sys_getdomainname
|
||||
163 common setdomainname sys_setdomainname
|
||||
164 64 utrap_install sys_utrap_install
|
||||
165 common quotactl sys_quotactl
|
||||
166 common set_tid_address sys_set_tid_address
|
||||
167 common mount sys_mount
|
||||
168 common ustat sys_ustat compat_sys_ustat
|
||||
169 common setxattr sys_setxattr
|
||||
170 common lsetxattr sys_lsetxattr
|
||||
171 common fsetxattr sys_fsetxattr
|
||||
172 common getxattr sys_getxattr
|
||||
173 common lgetxattr sys_lgetxattr
|
||||
174 common getdents sys_getdents compat_sys_getdents
|
||||
175 common setsid sys_setsid
|
||||
176 common fchdir sys_fchdir
|
||||
177 common fgetxattr sys_fgetxattr
|
||||
178 common listxattr sys_listxattr
|
||||
179 common llistxattr sys_llistxattr
|
||||
180 common flistxattr sys_flistxattr
|
||||
181 common removexattr sys_removexattr
|
||||
182 common lremovexattr sys_lremovexattr
|
||||
183 32 sigpending sys_sigpending compat_sys_sigpending
|
||||
183 64 sigpending sys_nis_syscall
|
||||
184 common query_module sys_ni_syscall
|
||||
185 common setpgid sys_setpgid
|
||||
186 common fremovexattr sys_fremovexattr
|
||||
187 common tkill sys_tkill
|
||||
188 32 exit_group sys_exit_group sparc_exit_group
|
||||
188 64 exit_group sparc_exit_group
|
||||
189 common uname sys_newuname
|
||||
190 common init_module sys_init_module
|
||||
191 32 personality sys_personality sys_sparc64_personality
|
||||
191 64 personality sys_sparc64_personality
|
||||
192 32 remap_file_pages sys_sparc_remap_file_pages sys_remap_file_pages
|
||||
192 64 remap_file_pages sys_remap_file_pages
|
||||
193 common epoll_create sys_epoll_create
|
||||
194 common epoll_ctl sys_epoll_ctl
|
||||
195 common epoll_wait sys_epoll_wait
|
||||
196 common ioprio_set sys_ioprio_set
|
||||
197 common getppid sys_getppid
|
||||
198 32 sigaction sys_sparc_sigaction compat_sys_sparc_sigaction
|
||||
198 64 sigaction sys_nis_syscall
|
||||
199 common sgetmask sys_sgetmask
|
||||
200 common ssetmask sys_ssetmask
|
||||
201 32 sigsuspend sys_sigsuspend
|
||||
201 64 sigsuspend sys_nis_syscall
|
||||
202 common oldlstat sys_newlstat compat_sys_newlstat
|
||||
203 common uselib sys_uselib
|
||||
204 32 readdir sys_old_readdir compat_sys_old_readdir
|
||||
204 64 readdir sys_nis_syscall
|
||||
205 common readahead sys_readahead compat_sys_readahead
|
||||
206 common socketcall sys_socketcall compat_sys_socketcall
|
||||
207 common syslog sys_syslog
|
||||
208 common lookup_dcookie sys_ni_syscall
|
||||
209 common fadvise64 sys_fadvise64 compat_sys_fadvise64
|
||||
210 common fadvise64_64 sys_fadvise64_64 compat_sys_fadvise64_64
|
||||
211 common tgkill sys_tgkill
|
||||
212 common waitpid sys_waitpid
|
||||
213 common swapoff sys_swapoff
|
||||
214 common sysinfo sys_sysinfo compat_sys_sysinfo
|
||||
215 32 ipc sys_ipc compat_sys_ipc
|
||||
215 64 ipc sys_sparc_ipc
|
||||
216 32 sigreturn sys_sigreturn sys32_sigreturn
|
||||
216 64 sigreturn sys_nis_syscall
|
||||
217 common clone sys_clone
|
||||
218 common ioprio_get sys_ioprio_get
|
||||
219 32 adjtimex sys_adjtimex_time32
|
||||
219 64 adjtimex sys_sparc_adjtimex
|
||||
220 32 sigprocmask sys_sigprocmask compat_sys_sigprocmask
|
||||
220 64 sigprocmask sys_nis_syscall
|
||||
221 common create_module sys_ni_syscall
|
||||
222 common delete_module sys_delete_module
|
||||
223 common get_kernel_syms sys_ni_syscall
|
||||
224 common getpgid sys_getpgid
|
||||
225 common bdflush sys_ni_syscall
|
||||
226 common sysfs sys_sysfs
|
||||
227 common afs_syscall sys_nis_syscall
|
||||
228 common setfsuid sys_setfsuid16
|
||||
229 common setfsgid sys_setfsgid16
|
||||
230 common _newselect sys_select compat_sys_select
|
||||
231 32 time sys_time32
|
||||
232 common splice sys_splice
|
||||
233 32 stime sys_stime32
|
||||
233 64 stime sys_stime
|
||||
234 common statfs64 sys_statfs64 compat_sys_statfs64
|
||||
235 common fstatfs64 sys_fstatfs64 compat_sys_fstatfs64
|
||||
236 common _llseek sys_llseek
|
||||
237 common mlock sys_mlock
|
||||
238 common munlock sys_munlock
|
||||
239 common mlockall sys_mlockall
|
||||
240 common munlockall sys_munlockall
|
||||
241 common sched_setparam sys_sched_setparam
|
||||
242 common sched_getparam sys_sched_getparam
|
||||
243 common sched_setscheduler sys_sched_setscheduler
|
||||
244 common sched_getscheduler sys_sched_getscheduler
|
||||
245 common sched_yield sys_sched_yield
|
||||
246 common sched_get_priority_max sys_sched_get_priority_max
|
||||
247 common sched_get_priority_min sys_sched_get_priority_min
|
||||
248 32 sched_rr_get_interval sys_sched_rr_get_interval_time32
|
||||
248 64 sched_rr_get_interval sys_sched_rr_get_interval
|
||||
249 32 nanosleep sys_nanosleep_time32
|
||||
249 64 nanosleep sys_nanosleep
|
||||
250 32 mremap sys_mremap
|
||||
250 64 mremap sys_64_mremap
|
||||
251 common _sysctl sys_ni_syscall
|
||||
252 common getsid sys_getsid
|
||||
253 common fdatasync sys_fdatasync
|
||||
254 32 nfsservctl sys_ni_syscall sys_nis_syscall
|
||||
254 64 nfsservctl sys_nis_syscall
|
||||
255 common sync_file_range sys_sync_file_range compat_sys_sync_file_range
|
||||
256 32 clock_settime sys_clock_settime32
|
||||
256 64 clock_settime sys_clock_settime
|
||||
257 32 clock_gettime sys_clock_gettime32
|
||||
257 64 clock_gettime sys_clock_gettime
|
||||
258 32 clock_getres sys_clock_getres_time32
|
||||
258 64 clock_getres sys_clock_getres
|
||||
259 32 clock_nanosleep sys_clock_nanosleep_time32
|
||||
259 64 clock_nanosleep sys_clock_nanosleep
|
||||
260 common sched_getaffinity sys_sched_getaffinity compat_sys_sched_getaffinity
|
||||
261 common sched_setaffinity sys_sched_setaffinity compat_sys_sched_setaffinity
|
||||
262 32 timer_settime sys_timer_settime32
|
||||
262 64 timer_settime sys_timer_settime
|
||||
263 32 timer_gettime sys_timer_gettime32
|
||||
263 64 timer_gettime sys_timer_gettime
|
||||
264 common timer_getoverrun sys_timer_getoverrun
|
||||
265 common timer_delete sys_timer_delete
|
||||
266 common timer_create sys_timer_create compat_sys_timer_create
|
||||
# 267 was vserver
|
||||
267 common vserver sys_nis_syscall
|
||||
268 common io_setup sys_io_setup compat_sys_io_setup
|
||||
269 common io_destroy sys_io_destroy
|
||||
270 common io_submit sys_io_submit compat_sys_io_submit
|
||||
271 common io_cancel sys_io_cancel
|
||||
272 32 io_getevents sys_io_getevents_time32
|
||||
272 64 io_getevents sys_io_getevents
|
||||
273 common mq_open sys_mq_open compat_sys_mq_open
|
||||
274 common mq_unlink sys_mq_unlink
|
||||
275 32 mq_timedsend sys_mq_timedsend_time32
|
||||
275 64 mq_timedsend sys_mq_timedsend
|
||||
276 32 mq_timedreceive sys_mq_timedreceive_time32
|
||||
276 64 mq_timedreceive sys_mq_timedreceive
|
||||
277 common mq_notify sys_mq_notify compat_sys_mq_notify
|
||||
278 common mq_getsetattr sys_mq_getsetattr compat_sys_mq_getsetattr
|
||||
279 common waitid sys_waitid compat_sys_waitid
|
||||
280 common tee sys_tee
|
||||
281 common add_key sys_add_key
|
||||
282 common request_key sys_request_key
|
||||
283 common keyctl sys_keyctl compat_sys_keyctl
|
||||
284 common openat sys_openat compat_sys_openat
|
||||
285 common mkdirat sys_mkdirat
|
||||
286 common mknodat sys_mknodat
|
||||
287 common fchownat sys_fchownat
|
||||
288 32 futimesat sys_futimesat_time32
|
||||
288 64 futimesat sys_futimesat
|
||||
289 common fstatat64 sys_fstatat64 compat_sys_fstatat64
|
||||
290 common unlinkat sys_unlinkat
|
||||
291 common renameat sys_renameat
|
||||
292 common linkat sys_linkat
|
||||
293 common symlinkat sys_symlinkat
|
||||
294 common readlinkat sys_readlinkat
|
||||
295 common fchmodat sys_fchmodat
|
||||
296 common faccessat sys_faccessat
|
||||
297 32 pselect6 sys_pselect6_time32 compat_sys_pselect6_time32
|
||||
297 64 pselect6 sys_pselect6
|
||||
298 32 ppoll sys_ppoll_time32 compat_sys_ppoll_time32
|
||||
298 64 ppoll sys_ppoll
|
||||
299 common unshare sys_unshare
|
||||
300 common set_robust_list sys_set_robust_list compat_sys_set_robust_list
|
||||
301 common get_robust_list sys_get_robust_list compat_sys_get_robust_list
|
||||
302 common migrate_pages sys_migrate_pages
|
||||
303 common mbind sys_mbind
|
||||
304 common get_mempolicy sys_get_mempolicy
|
||||
305 common set_mempolicy sys_set_mempolicy
|
||||
306 common kexec_load sys_kexec_load compat_sys_kexec_load
|
||||
307 common move_pages sys_move_pages
|
||||
308 common getcpu sys_getcpu
|
||||
309 common epoll_pwait sys_epoll_pwait compat_sys_epoll_pwait
|
||||
310 32 utimensat sys_utimensat_time32
|
||||
310 64 utimensat sys_utimensat
|
||||
311 common signalfd sys_signalfd compat_sys_signalfd
|
||||
312 common timerfd_create sys_timerfd_create
|
||||
313 common eventfd sys_eventfd
|
||||
314 common fallocate sys_fallocate compat_sys_fallocate
|
||||
315 32 timerfd_settime sys_timerfd_settime32
|
||||
315 64 timerfd_settime sys_timerfd_settime
|
||||
316 32 timerfd_gettime sys_timerfd_gettime32
|
||||
316 64 timerfd_gettime sys_timerfd_gettime
|
||||
317 common signalfd4 sys_signalfd4 compat_sys_signalfd4
|
||||
318 common eventfd2 sys_eventfd2
|
||||
319 common epoll_create1 sys_epoll_create1
|
||||
320 common dup3 sys_dup3
|
||||
321 common pipe2 sys_pipe2
|
||||
322 common inotify_init1 sys_inotify_init1
|
||||
323 common accept4 sys_accept4
|
||||
324 common preadv sys_preadv compat_sys_preadv
|
||||
325 common pwritev sys_pwritev compat_sys_pwritev
|
||||
326 common rt_tgsigqueueinfo sys_rt_tgsigqueueinfo compat_sys_rt_tgsigqueueinfo
|
||||
327 common perf_event_open sys_perf_event_open
|
||||
328 32 recvmmsg sys_recvmmsg_time32 compat_sys_recvmmsg_time32
|
||||
328 64 recvmmsg sys_recvmmsg
|
||||
329 common fanotify_init sys_fanotify_init
|
||||
330 common fanotify_mark sys_fanotify_mark compat_sys_fanotify_mark
|
||||
331 common prlimit64 sys_prlimit64
|
||||
332 common name_to_handle_at sys_name_to_handle_at
|
||||
333 common open_by_handle_at sys_open_by_handle_at compat_sys_open_by_handle_at
|
||||
334 32 clock_adjtime sys_clock_adjtime32
|
||||
334 64 clock_adjtime sys_sparc_clock_adjtime
|
||||
335 common syncfs sys_syncfs
|
||||
336 common sendmmsg sys_sendmmsg compat_sys_sendmmsg
|
||||
337 common setns sys_setns
|
||||
338 common process_vm_readv sys_process_vm_readv
|
||||
339 common process_vm_writev sys_process_vm_writev
|
||||
340 32 kern_features sys_ni_syscall sys_kern_features
|
||||
340 64 kern_features sys_kern_features
|
||||
341 common kcmp sys_kcmp
|
||||
342 common finit_module sys_finit_module
|
||||
343 common sched_setattr sys_sched_setattr
|
||||
344 common sched_getattr sys_sched_getattr
|
||||
345 common renameat2 sys_renameat2
|
||||
346 common seccomp sys_seccomp
|
||||
347 common getrandom sys_getrandom
|
||||
348 common memfd_create sys_memfd_create
|
||||
349 common bpf sys_bpf
|
||||
350 32 execveat sys_execveat sys32_execveat
|
||||
350 64 execveat sys64_execveat
|
||||
351 common membarrier sys_membarrier
|
||||
352 common userfaultfd sys_userfaultfd
|
||||
353 common bind sys_bind
|
||||
354 common listen sys_listen
|
||||
355 common setsockopt sys_setsockopt sys_setsockopt
|
||||
356 common mlock2 sys_mlock2
|
||||
357 common copy_file_range sys_copy_file_range
|
||||
358 common preadv2 sys_preadv2 compat_sys_preadv2
|
||||
359 common pwritev2 sys_pwritev2 compat_sys_pwritev2
|
||||
360 common statx sys_statx
|
||||
361 32 io_pgetevents sys_io_pgetevents_time32 compat_sys_io_pgetevents
|
||||
361 64 io_pgetevents sys_io_pgetevents
|
||||
362 common pkey_mprotect sys_pkey_mprotect
|
||||
363 common pkey_alloc sys_pkey_alloc
|
||||
364 common pkey_free sys_pkey_free
|
||||
365 common rseq sys_rseq
|
||||
# room for arch specific syscalls
|
||||
392 64 semtimedop sys_semtimedop
|
||||
393 common semget sys_semget
|
||||
394 common semctl sys_semctl compat_sys_semctl
|
||||
395 common shmget sys_shmget
|
||||
396 common shmctl sys_shmctl compat_sys_shmctl
|
||||
397 common shmat sys_shmat compat_sys_shmat
|
||||
398 common shmdt sys_shmdt
|
||||
399 common msgget sys_msgget
|
||||
400 common msgsnd sys_msgsnd compat_sys_msgsnd
|
||||
401 common msgrcv sys_msgrcv compat_sys_msgrcv
|
||||
402 common msgctl sys_msgctl compat_sys_msgctl
|
||||
403 32 clock_gettime64 sys_clock_gettime sys_clock_gettime
|
||||
404 32 clock_settime64 sys_clock_settime sys_clock_settime
|
||||
405 32 clock_adjtime64 sys_clock_adjtime sys_clock_adjtime
|
||||
406 32 clock_getres_time64 sys_clock_getres sys_clock_getres
|
||||
407 32 clock_nanosleep_time64 sys_clock_nanosleep sys_clock_nanosleep
|
||||
408 32 timer_gettime64 sys_timer_gettime sys_timer_gettime
|
||||
409 32 timer_settime64 sys_timer_settime sys_timer_settime
|
||||
410 32 timerfd_gettime64 sys_timerfd_gettime sys_timerfd_gettime
|
||||
411 32 timerfd_settime64 sys_timerfd_settime sys_timerfd_settime
|
||||
412 32 utimensat_time64 sys_utimensat sys_utimensat
|
||||
413 32 pselect6_time64 sys_pselect6 compat_sys_pselect6_time64
|
||||
414 32 ppoll_time64 sys_ppoll compat_sys_ppoll_time64
|
||||
416 32 io_pgetevents_time64 sys_io_pgetevents compat_sys_io_pgetevents_time64
|
||||
417 32 recvmmsg_time64 sys_recvmmsg compat_sys_recvmmsg_time64
|
||||
418 32 mq_timedsend_time64 sys_mq_timedsend sys_mq_timedsend
|
||||
419 32 mq_timedreceive_time64 sys_mq_timedreceive sys_mq_timedreceive
|
||||
420 32 semtimedop_time64 sys_semtimedop sys_semtimedop
|
||||
421 32 rt_sigtimedwait_time64 sys_rt_sigtimedwait compat_sys_rt_sigtimedwait_time64
|
||||
422 32 futex_time64 sys_futex sys_futex
|
||||
423 32 sched_rr_get_interval_time64 sys_sched_rr_get_interval sys_sched_rr_get_interval
|
||||
424 common pidfd_send_signal sys_pidfd_send_signal
|
||||
425 common io_uring_setup sys_io_uring_setup
|
||||
426 common io_uring_enter sys_io_uring_enter
|
||||
427 common io_uring_register sys_io_uring_register
|
||||
428 common open_tree sys_open_tree
|
||||
429 common move_mount sys_move_mount
|
||||
430 common fsopen sys_fsopen
|
||||
431 common fsconfig sys_fsconfig
|
||||
432 common fsmount sys_fsmount
|
||||
433 common fspick sys_fspick
|
||||
434 common pidfd_open sys_pidfd_open
|
||||
# 435 reserved for clone3
|
||||
436 common close_range sys_close_range
|
||||
437 common openat2 sys_openat2
|
||||
438 common pidfd_getfd sys_pidfd_getfd
|
||||
439 common faccessat2 sys_faccessat2
|
||||
440 common process_madvise sys_process_madvise
|
||||
441 common epoll_pwait2 sys_epoll_pwait2 compat_sys_epoll_pwait2
|
||||
442 common mount_setattr sys_mount_setattr
|
||||
443 common quotactl_fd sys_quotactl_fd
|
||||
444 common landlock_create_ruleset sys_landlock_create_ruleset
|
||||
445 common landlock_add_rule sys_landlock_add_rule
|
||||
446 common landlock_restrict_self sys_landlock_restrict_self
|
||||
# 447 reserved for memfd_secret
|
||||
448 common process_mrelease sys_process_mrelease
|
||||
449 common futex_waitv sys_futex_waitv
|
||||
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
|
||||
451 common cachestat sys_cachestat
|
||||
452 common fchmodat2 sys_fchmodat2
|
||||
453 common map_shadow_stack sys_map_shadow_stack
|
||||
454 common futex_wake sys_futex_wake
|
||||
455 common futex_wait sys_futex_wait
|
||||
456 common futex_requeue sys_futex_requeue
|
||||
457 common statmount sys_statmount
|
||||
458 common listmount sys_listmount
|
||||
459 common lsm_get_self_attr sys_lsm_get_self_attr
|
||||
460 common lsm_set_self_attr sys_lsm_set_self_attr
|
||||
461 common lsm_list_modules sys_lsm_list_modules
|
||||
462 common mseal sys_mseal
|
||||
463 common setxattrat sys_setxattrat
|
||||
464 common getxattrat sys_getxattrat
|
||||
465 common listxattrat sys_listxattrat
|
||||
466 common removexattrat sys_removexattrat
|
8
tools/perf/arch/sparc/include/syscall_table.h
Normal file
8
tools/perf/arch/sparc/include/syscall_table.h
Normal file
|
@ -0,0 +1,8 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#include <asm/bitsperlong.h>
|
||||
|
||||
#if __BITS_PER_LONG == 64
|
||||
#include <asm/syscalls_64.h>
|
||||
#else
|
||||
#include <asm/syscalls_32.h>
|
||||
#endif
|
|
@ -2,7 +2,6 @@ perf-util-y += util/
|
|||
perf-test-y += tests/
|
||||
|
||||
ifdef SHELLCHECK
|
||||
SHELL_TESTS := entry/syscalls/syscalltbl.sh
|
||||
TEST_LOGS := $(SHELL_TESTS:%=%.shellcheck_log)
|
||||
else
|
||||
SHELL_TESTS :=
|
||||
|
|
|
@ -1,28 +1,3 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
HAVE_KVM_STAT_SUPPORT := 1
|
||||
PERF_HAVE_JITDUMP := 1
|
||||
|
||||
###
|
||||
# Syscall table generation
|
||||
#
|
||||
|
||||
generated := $(OUTPUT)arch/x86/include/generated
|
||||
out := $(generated)/asm
|
||||
header := $(out)/syscalls_64.c
|
||||
header_32 := $(out)/syscalls_32.c
|
||||
sys := $(srctree)/tools/perf/arch/x86/entry/syscalls
|
||||
systbl := $(sys)/syscalltbl.sh
|
||||
|
||||
# Create output directory if not already present
|
||||
$(shell [ -d '$(out)' ] || mkdir -p '$(out)')
|
||||
|
||||
$(header): $(sys)/syscall_64.tbl $(systbl)
|
||||
$(Q)$(SHELL) '$(systbl)' $(sys)/syscall_64.tbl 'x86_64' > $@
|
||||
|
||||
$(header_32): $(sys)/syscall_32.tbl $(systbl)
|
||||
$(Q)$(SHELL) '$(systbl)' $(sys)/syscall_32.tbl 'x86' > $@
|
||||
|
||||
clean::
|
||||
$(call QUIET_CLEAN, x86) $(RM) -r $(header) $(generated)
|
||||
|
||||
archheaders: $(header) $(header_32)
|
||||
|
|
3
tools/perf/arch/x86/entry/syscalls/Kbuild
Normal file
3
tools/perf/arch/x86/entry/syscalls/Kbuild
Normal file
|
@ -0,0 +1,3 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
syscall-y += syscalls_32.h
|
||||
syscall-y += syscalls_64.h
|
6
tools/perf/arch/x86/entry/syscalls/Makefile.syscalls
Normal file
6
tools/perf/arch/x86/entry/syscalls/Makefile.syscalls
Normal file
|
@ -0,0 +1,6 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
syscall_abis_32 += i386
|
||||
syscall_abis_64 +=
|
||||
|
||||
syscalltbl = $(srctree)/tools/perf/arch/x86/entry/syscalls/syscall_%.tbl
|
|
@ -1,42 +0,0 @@
|
|||
#!/bin/sh
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
in="$1"
|
||||
arch="$2"
|
||||
|
||||
syscall_macro() {
|
||||
nr="$1"
|
||||
name="$2"
|
||||
|
||||
echo " [$nr] = \"$name\","
|
||||
}
|
||||
|
||||
emit() {
|
||||
nr="$1"
|
||||
entry="$2"
|
||||
|
||||
syscall_macro "$nr" "$entry"
|
||||
}
|
||||
|
||||
echo "static const char *const syscalltbl_${arch}[] = {"
|
||||
|
||||
sorted_table=$(mktemp /tmp/syscalltbl.XXXXXX)
|
||||
grep '^[0-9]' "$in" | sort -n > $sorted_table
|
||||
|
||||
max_nr=0
|
||||
# the params are: nr abi name entry compat
|
||||
# use _ for intentionally unused variables according to SC2034
|
||||
while read nr _ name _ _; do
|
||||
if [ $nr -ge 512 ] ; then # discard compat sycalls
|
||||
break
|
||||
fi
|
||||
|
||||
emit "$nr" "$name"
|
||||
max_nr=$nr
|
||||
done < $sorted_table
|
||||
|
||||
rm -f $sorted_table
|
||||
|
||||
echo "};"
|
||||
|
||||
echo "#define SYSCALLTBL_${arch}_MAX_ID ${max_nr}"
|
8
tools/perf/arch/x86/include/syscall_table.h
Normal file
8
tools/perf/arch/x86/include/syscall_table.h
Normal file
|
@ -0,0 +1,8 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#include <asm/bitsperlong.h>
|
||||
|
||||
#if __BITS_PER_LONG == 64
|
||||
#include <asm/syscalls_64.h>
|
||||
#else
|
||||
#include <asm/syscalls_32.h>
|
||||
#endif
|
|
@ -15,6 +15,6 @@ perf-util-$(CONFIG_LOCAL_LIBUNWIND) += unwind-libunwind.o
|
|||
perf-util-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o
|
||||
|
||||
perf-util-$(CONFIG_AUXTRACE) += auxtrace.o
|
||||
perf-util-$(CONFIG_AUXTRACE) += archinsn.o
|
||||
perf-util-y += archinsn.o
|
||||
perf-util-$(CONFIG_AUXTRACE) += intel-pt.o
|
||||
perf-util-$(CONFIG_AUXTRACE) += intel-bts.o
|
||||
|
|
|
@ -403,6 +403,10 @@ void iostat_prefix(struct evlist *evlist,
|
|||
struct iio_root_port *rp = evlist->selected->priv;
|
||||
|
||||
if (rp) {
|
||||
/*
|
||||
* TODO: This is the incorrect format in JSON mode.
|
||||
* See prepare_timestamp()
|
||||
*/
|
||||
if (ts)
|
||||
sprintf(prefix, "%6lu.%09lu%s%04x:%02x%s",
|
||||
ts->tv_sec, ts->tv_nsec,
|
||||
|
|
2
tools/perf/arch/xtensa/entry/syscalls/Kbuild
Normal file
2
tools/perf/arch/xtensa/entry/syscalls/Kbuild
Normal file
|
@ -0,0 +1,2 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
syscall-y += syscalls_32.h
|
4
tools/perf/arch/xtensa/entry/syscalls/Makefile.syscalls
Normal file
4
tools/perf/arch/xtensa/entry/syscalls/Makefile.syscalls
Normal file
|
@ -0,0 +1,4 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
syscall_abis_32 +=
|
||||
syscalltbl = $(srctree)/tools/perf/arch/xtensa/entry/syscalls/syscall.tbl
|
439
tools/perf/arch/xtensa/entry/syscalls/syscall.tbl
Normal file
439
tools/perf/arch/xtensa/entry/syscalls/syscall.tbl
Normal file
|
@ -0,0 +1,439 @@
|
|||
# SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
|
||||
#
|
||||
# system call numbers and entry vectors for xtensa
|
||||
#
|
||||
# The format is:
|
||||
# <number> <abi> <name> <entry point>
|
||||
#
|
||||
# The <abi> is always "common" for this file
|
||||
#
|
||||
0 common spill sys_ni_syscall
|
||||
1 common xtensa sys_ni_syscall
|
||||
2 common available4 sys_ni_syscall
|
||||
3 common available5 sys_ni_syscall
|
||||
4 common available6 sys_ni_syscall
|
||||
5 common available7 sys_ni_syscall
|
||||
6 common available8 sys_ni_syscall
|
||||
7 common available9 sys_ni_syscall
|
||||
# File Operations
|
||||
8 common open sys_open
|
||||
9 common close sys_close
|
||||
10 common dup sys_dup
|
||||
11 common dup2 sys_dup2
|
||||
12 common read sys_read
|
||||
13 common write sys_write
|
||||
14 common select sys_select
|
||||
15 common lseek sys_lseek
|
||||
16 common poll sys_poll
|
||||
17 common _llseek sys_llseek
|
||||
18 common epoll_wait sys_epoll_wait
|
||||
19 common epoll_ctl sys_epoll_ctl
|
||||
20 common epoll_create sys_epoll_create
|
||||
21 common creat sys_creat
|
||||
22 common truncate sys_truncate
|
||||
23 common ftruncate sys_ftruncate
|
||||
24 common readv sys_readv
|
||||
25 common writev sys_writev
|
||||
26 common fsync sys_fsync
|
||||
27 common fdatasync sys_fdatasync
|
||||
28 common truncate64 sys_truncate64
|
||||
29 common ftruncate64 sys_ftruncate64
|
||||
30 common pread64 sys_pread64
|
||||
31 common pwrite64 sys_pwrite64
|
||||
32 common link sys_link
|
||||
33 common rename sys_rename
|
||||
34 common symlink sys_symlink
|
||||
35 common readlink sys_readlink
|
||||
36 common mknod sys_mknod
|
||||
37 common pipe sys_pipe
|
||||
38 common unlink sys_unlink
|
||||
39 common rmdir sys_rmdir
|
||||
40 common mkdir sys_mkdir
|
||||
41 common chdir sys_chdir
|
||||
42 common fchdir sys_fchdir
|
||||
43 common getcwd sys_getcwd
|
||||
44 common chmod sys_chmod
|
||||
45 common chown sys_chown
|
||||
46 common stat sys_newstat
|
||||
47 common stat64 sys_stat64
|
||||
48 common lchown sys_lchown
|
||||
49 common lstat sys_newlstat
|
||||
50 common lstat64 sys_lstat64
|
||||
51 common available51 sys_ni_syscall
|
||||
52 common fchmod sys_fchmod
|
||||
53 common fchown sys_fchown
|
||||
54 common fstat sys_newfstat
|
||||
55 common fstat64 sys_fstat64
|
||||
56 common flock sys_flock
|
||||
57 common access sys_access
|
||||
58 common umask sys_umask
|
||||
59 common getdents sys_getdents
|
||||
60 common getdents64 sys_getdents64
|
||||
61 common fcntl64 sys_fcntl64
|
||||
62 common fallocate sys_fallocate
|
||||
63 common fadvise64_64 xtensa_fadvise64_64
|
||||
64 common utime sys_utime32
|
||||
65 common utimes sys_utimes_time32
|
||||
66 common ioctl sys_ioctl
|
||||
67 common fcntl sys_fcntl
|
||||
68 common setxattr sys_setxattr
|
||||
69 common getxattr sys_getxattr
|
||||
70 common listxattr sys_listxattr
|
||||
71 common removexattr sys_removexattr
|
||||
72 common lsetxattr sys_lsetxattr
|
||||
73 common lgetxattr sys_lgetxattr
|
||||
74 common llistxattr sys_llistxattr
|
||||
75 common lremovexattr sys_lremovexattr
|
||||
76 common fsetxattr sys_fsetxattr
|
||||
77 common fgetxattr sys_fgetxattr
|
||||
78 common flistxattr sys_flistxattr
|
||||
79 common fremovexattr sys_fremovexattr
|
||||
# File Map / Shared Memory Operations
|
||||
80 common mmap2 sys_mmap_pgoff
|
||||
81 common munmap sys_munmap
|
||||
82 common mprotect sys_mprotect
|
||||
83 common brk sys_brk
|
||||
84 common mlock sys_mlock
|
||||
85 common munlock sys_munlock
|
||||
86 common mlockall sys_mlockall
|
||||
87 common munlockall sys_munlockall
|
||||
88 common mremap sys_mremap
|
||||
89 common msync sys_msync
|
||||
90 common mincore sys_mincore
|
||||
91 common madvise sys_madvise
|
||||
92 common shmget sys_shmget
|
||||
93 common shmat xtensa_shmat
|
||||
94 common shmctl sys_old_shmctl
|
||||
95 common shmdt sys_shmdt
|
||||
# Socket Operations
|
||||
96 common socket sys_socket
|
||||
97 common setsockopt sys_setsockopt
|
||||
98 common getsockopt sys_getsockopt
|
||||
99 common shutdown sys_shutdown
|
||||
100 common bind sys_bind
|
||||
101 common connect sys_connect
|
||||
102 common listen sys_listen
|
||||
103 common accept sys_accept
|
||||
104 common getsockname sys_getsockname
|
||||
105 common getpeername sys_getpeername
|
||||
106 common sendmsg sys_sendmsg
|
||||
107 common recvmsg sys_recvmsg
|
||||
108 common send sys_send
|
||||
109 common recv sys_recv
|
||||
110 common sendto sys_sendto
|
||||
111 common recvfrom sys_recvfrom
|
||||
112 common socketpair sys_socketpair
|
||||
113 common sendfile sys_sendfile
|
||||
114 common sendfile64 sys_sendfile64
|
||||
115 common sendmmsg sys_sendmmsg
|
||||
# Process Operations
|
||||
116 common clone sys_clone
|
||||
117 common execve sys_execve
|
||||
118 common exit sys_exit
|
||||
119 common exit_group sys_exit_group
|
||||
120 common getpid sys_getpid
|
||||
121 common wait4 sys_wait4
|
||||
122 common waitid sys_waitid
|
||||
123 common kill sys_kill
|
||||
124 common tkill sys_tkill
|
||||
125 common tgkill sys_tgkill
|
||||
126 common set_tid_address sys_set_tid_address
|
||||
127 common gettid sys_gettid
|
||||
128 common setsid sys_setsid
|
||||
129 common getsid sys_getsid
|
||||
130 common prctl sys_prctl
|
||||
131 common personality sys_personality
|
||||
132 common getpriority sys_getpriority
|
||||
133 common setpriority sys_setpriority
|
||||
134 common setitimer sys_setitimer
|
||||
135 common getitimer sys_getitimer
|
||||
136 common setuid sys_setuid
|
||||
137 common getuid sys_getuid
|
||||
138 common setgid sys_setgid
|
||||
139 common getgid sys_getgid
|
||||
140 common geteuid sys_geteuid
|
||||
141 common getegid sys_getegid
|
||||
142 common setreuid sys_setreuid
|
||||
143 common setregid sys_setregid
|
||||
144 common setresuid sys_setresuid
|
||||
145 common getresuid sys_getresuid
|
||||
146 common setresgid sys_setresgid
|
||||
147 common getresgid sys_getresgid
|
||||
148 common setpgid sys_setpgid
|
||||
149 common getpgid sys_getpgid
|
||||
150 common getppid sys_getppid
|
||||
151 common getpgrp sys_getpgrp
|
||||
# 152 was set_thread_area
|
||||
152 common reserved152 sys_ni_syscall
|
||||
# 153 was get_thread_area
|
||||
153 common reserved153 sys_ni_syscall
|
||||
154 common times sys_times
|
||||
155 common acct sys_acct
|
||||
156 common sched_setaffinity sys_sched_setaffinity
|
||||
157 common sched_getaffinity sys_sched_getaffinity
|
||||
158 common capget sys_capget
|
||||
159 common capset sys_capset
|
||||
160 common ptrace sys_ptrace
|
||||
161 common semtimedop sys_semtimedop_time32
|
||||
162 common semget sys_semget
|
||||
163 common semop sys_semop
|
||||
164 common semctl sys_old_semctl
|
||||
165 common available165 sys_ni_syscall
|
||||
166 common msgget sys_msgget
|
||||
167 common msgsnd sys_msgsnd
|
||||
168 common msgrcv sys_msgrcv
|
||||
169 common msgctl sys_old_msgctl
|
||||
170 common available170 sys_ni_syscall
|
||||
# File System
|
||||
171 common umount2 sys_umount
|
||||
172 common mount sys_mount
|
||||
173 common swapon sys_swapon
|
||||
174 common chroot sys_chroot
|
||||
175 common pivot_root sys_pivot_root
|
||||
176 common umount sys_oldumount
|
||||
177 common swapoff sys_swapoff
|
||||
178 common sync sys_sync
|
||||
179 common syncfs sys_syncfs
|
||||
180 common setfsuid sys_setfsuid
|
||||
181 common setfsgid sys_setfsgid
|
||||
182 common sysfs sys_sysfs
|
||||
183 common ustat sys_ustat
|
||||
184 common statfs sys_statfs
|
||||
185 common fstatfs sys_fstatfs
|
||||
186 common statfs64 sys_statfs64
|
||||
187 common fstatfs64 sys_fstatfs64
|
||||
# System
|
||||
188 common setrlimit sys_setrlimit
|
||||
189 common getrlimit sys_getrlimit
|
||||
190 common getrusage sys_getrusage
|
||||
191 common futex sys_futex_time32
|
||||
192 common gettimeofday sys_gettimeofday
|
||||
193 common settimeofday sys_settimeofday
|
||||
194 common adjtimex sys_adjtimex_time32
|
||||
195 common nanosleep sys_nanosleep_time32
|
||||
196 common getgroups sys_getgroups
|
||||
197 common setgroups sys_setgroups
|
||||
198 common sethostname sys_sethostname
|
||||
199 common setdomainname sys_setdomainname
|
||||
200 common syslog sys_syslog
|
||||
201 common vhangup sys_vhangup
|
||||
202 common uselib sys_uselib
|
||||
203 common reboot sys_reboot
|
||||
204 common quotactl sys_quotactl
|
||||
# 205 was old nfsservctl
|
||||
205 common nfsservctl sys_ni_syscall
|
||||
206 common _sysctl sys_ni_syscall
|
||||
207 common bdflush sys_ni_syscall
|
||||
208 common uname sys_newuname
|
||||
209 common sysinfo sys_sysinfo
|
||||
210 common init_module sys_init_module
|
||||
211 common delete_module sys_delete_module
|
||||
212 common sched_setparam sys_sched_setparam
|
||||
213 common sched_getparam sys_sched_getparam
|
||||
214 common sched_setscheduler sys_sched_setscheduler
|
||||
215 common sched_getscheduler sys_sched_getscheduler
|
||||
216 common sched_get_priority_max sys_sched_get_priority_max
|
||||
217 common sched_get_priority_min sys_sched_get_priority_min
|
||||
218 common sched_rr_get_interval sys_sched_rr_get_interval_time32
|
||||
219 common sched_yield sys_sched_yield
|
||||
222 common available222 sys_ni_syscall
|
||||
# Signal Handling
|
||||
223 common restart_syscall sys_restart_syscall
|
||||
224 common sigaltstack sys_sigaltstack
|
||||
225 common rt_sigreturn xtensa_rt_sigreturn
|
||||
226 common rt_sigaction sys_rt_sigaction
|
||||
227 common rt_sigprocmask sys_rt_sigprocmask
|
||||
228 common rt_sigpending sys_rt_sigpending
|
||||
229 common rt_sigtimedwait sys_rt_sigtimedwait_time32
|
||||
230 common rt_sigqueueinfo sys_rt_sigqueueinfo
|
||||
231 common rt_sigsuspend sys_rt_sigsuspend
|
||||
# Message
|
||||
232 common mq_open sys_mq_open
|
||||
233 common mq_unlink sys_mq_unlink
|
||||
234 common mq_timedsend sys_mq_timedsend_time32
|
||||
235 common mq_timedreceive sys_mq_timedreceive_time32
|
||||
236 common mq_notify sys_mq_notify
|
||||
237 common mq_getsetattr sys_mq_getsetattr
|
||||
238 common available238 sys_ni_syscall
|
||||
239 common io_setup sys_io_setup
|
||||
# IO
|
||||
240 common io_destroy sys_io_destroy
|
||||
241 common io_submit sys_io_submit
|
||||
242 common io_getevents sys_io_getevents_time32
|
||||
243 common io_cancel sys_io_cancel
|
||||
244 common clock_settime sys_clock_settime32
|
||||
245 common clock_gettime sys_clock_gettime32
|
||||
246 common clock_getres sys_clock_getres_time32
|
||||
247 common clock_nanosleep sys_clock_nanosleep_time32
|
||||
# Timer
|
||||
248 common timer_create sys_timer_create
|
||||
249 common timer_delete sys_timer_delete
|
||||
250 common timer_settime sys_timer_settime32
|
||||
251 common timer_gettime sys_timer_gettime32
|
||||
252 common timer_getoverrun sys_timer_getoverrun
|
||||
# System
|
||||
253 common reserved253 sys_ni_syscall
|
||||
254 common lookup_dcookie sys_ni_syscall
|
||||
255 common available255 sys_ni_syscall
|
||||
256 common add_key sys_add_key
|
||||
257 common request_key sys_request_key
|
||||
258 common keyctl sys_keyctl
|
||||
259 common available259 sys_ni_syscall
|
||||
260 common readahead sys_readahead
|
||||
261 common remap_file_pages sys_remap_file_pages
|
||||
262 common migrate_pages sys_migrate_pages
|
||||
263 common mbind sys_mbind
|
||||
264 common get_mempolicy sys_get_mempolicy
|
||||
265 common set_mempolicy sys_set_mempolicy
|
||||
266 common unshare sys_unshare
|
||||
267 common move_pages sys_move_pages
|
||||
268 common splice sys_splice
|
||||
269 common tee sys_tee
|
||||
270 common vmsplice sys_vmsplice
|
||||
271 common available271 sys_ni_syscall
|
||||
272 common pselect6 sys_pselect6_time32
|
||||
273 common ppoll sys_ppoll_time32
|
||||
274 common epoll_pwait sys_epoll_pwait
|
||||
275 common epoll_create1 sys_epoll_create1
|
||||
276 common inotify_init sys_inotify_init
|
||||
277 common inotify_add_watch sys_inotify_add_watch
|
||||
278 common inotify_rm_watch sys_inotify_rm_watch
|
||||
279 common inotify_init1 sys_inotify_init1
|
||||
280 common getcpu sys_getcpu
|
||||
281 common kexec_load sys_ni_syscall
|
||||
282 common ioprio_set sys_ioprio_set
|
||||
283 common ioprio_get sys_ioprio_get
|
||||
284 common set_robust_list sys_set_robust_list
|
||||
285 common get_robust_list sys_get_robust_list
|
||||
286 common available286 sys_ni_syscall
|
||||
287 common available287 sys_ni_syscall
|
||||
# Relative File Operations
|
||||
288 common openat sys_openat
|
||||
289 common mkdirat sys_mkdirat
|
||||
290 common mknodat sys_mknodat
|
||||
291 common unlinkat sys_unlinkat
|
||||
292 common renameat sys_renameat
|
||||
293 common linkat sys_linkat
|
||||
294 common symlinkat sys_symlinkat
|
||||
295 common readlinkat sys_readlinkat
|
||||
296 common utimensat sys_utimensat_time32
|
||||
297 common fchownat sys_fchownat
|
||||
298 common futimesat sys_futimesat_time32
|
||||
299 common fstatat64 sys_fstatat64
|
||||
300 common fchmodat sys_fchmodat
|
||||
301 common faccessat sys_faccessat
|
||||
302 common available302 sys_ni_syscall
|
||||
303 common available303 sys_ni_syscall
|
||||
304 common signalfd sys_signalfd
|
||||
# 305 was timerfd
|
||||
306 common eventfd sys_eventfd
|
||||
307 common recvmmsg sys_recvmmsg_time32
|
||||
308 common setns sys_setns
|
||||
309 common signalfd4 sys_signalfd4
|
||||
310 common dup3 sys_dup3
|
||||
311 common pipe2 sys_pipe2
|
||||
312 common timerfd_create sys_timerfd_create
|
||||
313 common timerfd_settime sys_timerfd_settime32
|
||||
314 common timerfd_gettime sys_timerfd_gettime32
|
||||
315 common available315 sys_ni_syscall
|
||||
316 common eventfd2 sys_eventfd2
|
||||
317 common preadv sys_preadv
|
||||
318 common pwritev sys_pwritev
|
||||
319 common available319 sys_ni_syscall
|
||||
320 common fanotify_init sys_fanotify_init
|
||||
321 common fanotify_mark sys_fanotify_mark
|
||||
322 common process_vm_readv sys_process_vm_readv
|
||||
323 common process_vm_writev sys_process_vm_writev
|
||||
324 common name_to_handle_at sys_name_to_handle_at
|
||||
325 common open_by_handle_at sys_open_by_handle_at
|
||||
326 common sync_file_range2 sys_sync_file_range2
|
||||
327 common perf_event_open sys_perf_event_open
|
||||
328 common rt_tgsigqueueinfo sys_rt_tgsigqueueinfo
|
||||
329 common clock_adjtime sys_clock_adjtime32
|
||||
330 common prlimit64 sys_prlimit64
|
||||
331 common kcmp sys_kcmp
|
||||
332 common finit_module sys_finit_module
|
||||
333 common accept4 sys_accept4
|
||||
334 common sched_setattr sys_sched_setattr
|
||||
335 common sched_getattr sys_sched_getattr
|
||||
336 common renameat2 sys_renameat2
|
||||
337 common seccomp sys_seccomp
|
||||
338 common getrandom sys_getrandom
|
||||
339 common memfd_create sys_memfd_create
|
||||
340 common bpf sys_bpf
|
||||
341 common execveat sys_execveat
|
||||
342 common userfaultfd sys_userfaultfd
|
||||
343 common membarrier sys_membarrier
|
||||
344 common mlock2 sys_mlock2
|
||||
345 common copy_file_range sys_copy_file_range
|
||||
346 common preadv2 sys_preadv2
|
||||
347 common pwritev2 sys_pwritev2
|
||||
348 common pkey_mprotect sys_pkey_mprotect
|
||||
349 common pkey_alloc sys_pkey_alloc
|
||||
350 common pkey_free sys_pkey_free
|
||||
351 common statx sys_statx
|
||||
352 common rseq sys_rseq
|
||||
# 353 through 402 are unassigned to sync up with generic numbers
|
||||
403 common clock_gettime64 sys_clock_gettime
|
||||
404 common clock_settime64 sys_clock_settime
|
||||
405 common clock_adjtime64 sys_clock_adjtime
|
||||
406 common clock_getres_time64 sys_clock_getres
|
||||
407 common clock_nanosleep_time64 sys_clock_nanosleep
|
||||
408 common timer_gettime64 sys_timer_gettime
|
||||
409 common timer_settime64 sys_timer_settime
|
||||
410 common timerfd_gettime64 sys_timerfd_gettime
|
||||
411 common timerfd_settime64 sys_timerfd_settime
|
||||
412 common utimensat_time64 sys_utimensat
|
||||
413 common pselect6_time64 sys_pselect6
|
||||
414 common ppoll_time64 sys_ppoll
|
||||
416 common io_pgetevents_time64 sys_io_pgetevents
|
||||
417 common recvmmsg_time64 sys_recvmmsg
|
||||
418 common mq_timedsend_time64 sys_mq_timedsend
|
||||
419 common mq_timedreceive_time64 sys_mq_timedreceive
|
||||
420 common semtimedop_time64 sys_semtimedop
|
||||
421 common rt_sigtimedwait_time64 sys_rt_sigtimedwait
|
||||
422 common futex_time64 sys_futex
|
||||
423 common sched_rr_get_interval_time64 sys_sched_rr_get_interval
|
||||
424 common pidfd_send_signal sys_pidfd_send_signal
|
||||
425 common io_uring_setup sys_io_uring_setup
|
||||
426 common io_uring_enter sys_io_uring_enter
|
||||
427 common io_uring_register sys_io_uring_register
|
||||
428 common open_tree sys_open_tree
|
||||
429 common move_mount sys_move_mount
|
||||
430 common fsopen sys_fsopen
|
||||
431 common fsconfig sys_fsconfig
|
||||
432 common fsmount sys_fsmount
|
||||
433 common fspick sys_fspick
|
||||
434 common pidfd_open sys_pidfd_open
|
||||
435 common clone3 sys_clone3
|
||||
436 common close_range sys_close_range
|
||||
437 common openat2 sys_openat2
|
||||
438 common pidfd_getfd sys_pidfd_getfd
|
||||
439 common faccessat2 sys_faccessat2
|
||||
440 common process_madvise sys_process_madvise
|
||||
441 common epoll_pwait2 sys_epoll_pwait2
|
||||
442 common mount_setattr sys_mount_setattr
|
||||
443 common quotactl_fd sys_quotactl_fd
|
||||
444 common landlock_create_ruleset sys_landlock_create_ruleset
|
||||
445 common landlock_add_rule sys_landlock_add_rule
|
||||
446 common landlock_restrict_self sys_landlock_restrict_self
|
||||
# 447 reserved for memfd_secret
|
||||
448 common process_mrelease sys_process_mrelease
|
||||
449 common futex_waitv sys_futex_waitv
|
||||
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
|
||||
451 common cachestat sys_cachestat
|
||||
452 common fchmodat2 sys_fchmodat2
|
||||
453 common map_shadow_stack sys_map_shadow_stack
|
||||
454 common futex_wake sys_futex_wake
|
||||
455 common futex_wait sys_futex_wait
|
||||
456 common futex_requeue sys_futex_requeue
|
||||
457 common statmount sys_statmount
|
||||
458 common listmount sys_listmount
|
||||
459 common lsm_get_self_attr sys_lsm_get_self_attr
|
||||
460 common lsm_set_self_attr sys_lsm_set_self_attr
|
||||
461 common lsm_list_modules sys_lsm_list_modules
|
||||
462 common mseal sys_mseal
|
||||
463 common setxattrat sys_setxattrat
|
||||
464 common getxattrat sys_getxattrat
|
||||
465 common listxattrat sys_listxattrat
|
||||
466 common removexattrat sys_removexattrat
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue