/tools/perf/examples/bpf/ |
D | augmented_syscalls.c | 37 #define augmented_filename_syscall(syscall) \ argument 38 struct augmented_enter_##syscall##_args { \ 39 struct syscall_enter_##syscall##_args args; \ 42 int syscall_enter(syscall)(struct syscall_enter_##syscall##_args *args) \ 44 struct augmented_enter_##syscall##_args augmented_args = { .filename.reserved = 0, }; \ 58 int syscall_exit(syscall)(struct syscall_exit_args *args) \ 109 #define augmented_sockaddr_syscall(syscall) \ argument 110 struct augmented_enter_##syscall##_args { \ 111 struct syscall_enter_##syscall##_args args; \ 114 int syscall_enter(syscall)(struct syscall_enter_##syscall##_args *args) \ [all …]
|
D | etcsnoop.c | 33 #define augmented_filename_syscall_enter(syscall) \ argument 34 struct augmented_enter_##syscall##_args { \ 35 struct syscall_enter_##syscall##_args args; \ 38 int syscall_enter(syscall)(struct syscall_enter_##syscall##_args *args) \ 41 struct augmented_enter_##syscall##_args augmented_args = { .filename.reserved = 0, }; \
|
D | augmented_raw_syscalls.c | 30 struct syscall { struct 35 bpf_map(syscalls, ARRAY, int, struct syscall, 512); argument 251 struct syscall *syscall; in sys_enter() local
|
/tools/testing/selftests/x86/ |
D | fsgsbase.c | 165 if (syscall(SYS_arch_prctl, ARCH_SET_GS, value) != 0) in check_gs_value() 179 if (syscall(SYS_arch_prctl, ARCH_GET_GS, &base) != 0) in check_gs_value() 196 if (syscall(SYS_arch_prctl, ARCH_SET_GS, initial_base) != 0) in mov_0_gs() 204 if (syscall(SYS_arch_prctl, ARCH_GET_GS, &arch_base) != 0) in mov_0_gs() 233 if (syscall(SYS_arch_prctl, ARCH_SET_GS, to_set) != 0) in do_remote_base() 255 if (syscall(SYS_arch_prctl, ARCH_SET_GS, 0) != 0) in load_gs() 270 if (syscall(SYS_modify_ldt, 1, &desc, sizeof(desc)) == 0) { in load_gs() 318 syscall(SYS_futex, &ftx, FUTEX_WAKE, 0, NULL, NULL, 0); in test_wrbase() 320 syscall(SYS_futex, &ftx, FUTEX_WAIT, 1, NULL, NULL, 0); in test_wrbase() 338 syscall(SYS_futex, &ftx, FUTEX_WAIT, 0, NULL, NULL, 0); in threadproc() [all …]
|
D | ldt_gdt.c | 154 ret = syscall(SYS_set_thread_area, &desc); in install_valid_mode() 156 ret = syscall(SYS_modify_ldt, oldmode ? 1 : 0x11, in install_valid_mode() 204 int ret = syscall(SYS_modify_ldt, oldmode ? 1 : 0x11, in install_invalid() 226 int ret = syscall(SYS_modify_ldt, 0x11, ptr, bytecount); in safe_modify_ldt() 444 syscall(SYS_futex, &ftx, FUTEX_WAIT, 0, NULL, NULL, 0); in threadproc() 452 if (syscall(SYS_modify_ldt, 1, &desc, sizeof(desc)) != 0) in threadproc() 485 if (syscall(SYS_rt_sigaction, sig, NULL, &ksa, 8) == 0) { in fix_sa_restorer() 496 if (syscall(SYS_rt_sigaction, sig, &ksa, NULL, in fix_sa_restorer() 593 syscall(SYS_futex, &ftx, FUTEX_WAKE, 0, NULL, NULL, 0); in do_multicpu_tests() 613 syscall(SYS_futex, &ftx, FUTEX_WAKE, 0, NULL, NULL, 0); in do_multicpu_tests() [all …]
|
D | syscall_numbering.c | 25 long ret = syscall(nr, 0, 0, 0, 0, 0, 0); in check_enosys() 78 if (syscall(39 | X32_BIT, 0, 0, 0, 0, 0, 0) >= 0) { in main()
|
D | vdso_restorer.c | 54 if (syscall(SYS_rt_sigaction, SIGUSR1, &sa, NULL, 8) != 0) in main() 68 if (syscall(SYS_sigaction, SIGUSR1, &sa, 0) != 0) in main()
|
D | single_step_syscall.c | 159 syscall(SYS_getpid); /* Force symbol binding without TF set. */ in main() 162 syscall(SYS_getpid); in main()
|
/tools/perf/util/ |
D | syscalltbl.c | 39 struct syscall { struct 47 const struct syscall *entry = ventry; in syscallcmpname() argument 54 const struct syscall *a = va, *b = vb; in syscallcmp() 62 struct syscall *entries; in syscalltbl__init_native() 68 entries = tbl->syscalls.entries = malloc(sizeof(struct syscall) * nr_entries); in syscalltbl__init_native() 80 qsort(tbl->syscalls.entries, nr_entries, sizeof(struct syscall), syscallcmp); in syscalltbl__init_native() 111 struct syscall *sc = bsearch(name, tbl->syscalls.entries, in syscalltbl__id() 121 struct syscall *syscalls = tbl->syscalls.entries; in syscalltbl__strglobmatch_next()
|
D | setns.c | 9 return syscall(__NR_setns, fd, nstype); in setns()
|
/tools/io_uring/ |
D | syscall.c | 39 return syscall(__NR_io_uring_register, fd, opcode, arg, nr_args); in io_uring_register() 44 return syscall(__NR_io_uring_setup, entries, p); in io_uring_setup() 50 return syscall(__NR_io_uring_enter, fd, to_submit, min_complete, in io_uring_enter()
|
D | Makefile | 10 io_uring-bench: syscall.o io_uring-bench.o 13 io_uring-cp: setup.o syscall.o queue.o
|
/tools/testing/selftests/size/ |
D | get_size.c | 42 return syscall(SYS_write, STDOUT_FILENO, s, len); in print() 94 ccode = syscall(SYS_sysinfo, &info); in _start() 99 syscall(SYS_exit, ccode); in _start() 115 syscall(SYS_exit, 0); in _start()
|
/tools/testing/selftests/powerpc/tm/ |
D | Makefile | 5 TEST_GEN_PROGS := tm-resched-dscr tm-syscall tm-signal-msr-resv tm-signal-stack \ 17 $(OUTPUT)/tm-syscall: tm-syscall-asm.S 18 $(OUTPUT)/tm-syscall: CFLAGS += -I../../../../../usr/include
|
/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 212 return syscall(__NR_seccomp, op, flags, args); in seccomp() 236 syscall(__NR_exit, 0); in TEST() 247 syscall(__NR_prctl, PR_SET_SECCOMP, SECCOMP_MODE_FILTER, in TEST_SIGNAL() 490 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST() 509 EXPECT_EQ(0, syscall(__NR_getpid)) { in TEST_SIGNAL() 531 EXPECT_EQ(0, syscall(__NR_getpid)) { in TEST_SIGNAL() 576 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST_SIGNAL() 578 EXPECT_EQ(0, syscall(__NR_getpid)); in TEST_SIGNAL() 611 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST_SIGNAL() 612 EXPECT_LE(clock, syscall(__NR_times, &timebuf)); in TEST_SIGNAL() [all …]
|
/tools/testing/selftests/proc/ |
D | proc.h | 14 return syscall(SYS_getpid); in sys_getpid() 19 return syscall(SYS_gettid); in sys_gettid()
|
D | proc-uptime-002.c | 35 return syscall(SYS_sched_getaffinity, pid, len, m); in sys_sched_getaffinity() 40 return syscall(SYS_sched_setaffinity, pid, len, m); in sys_sched_setaffinity()
|
/tools/testing/selftests/pidfd/ |
D | pidfd.h | 78 return syscall(__NR_pidfd_open, pid, flags); in sys_pidfd_open() 84 return syscall(__NR_pidfd_send_signal, pidfd, sig, info, flags); in sys_pidfd_send_signal()
|
D | pidfd_test.c | 347 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_exec_thread() 353 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_exec_thread() 393 syscall(SYS_gettid)); in child_poll_exec_test() 445 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_leader_exit_thread() 447 ksft_print_msg("Child Thread: DONE. pid %d tid %d\n", getpid(), syscall(SYS_gettid)); in test_pidfd_poll_leader_exit_thread() 456 ksft_print_msg("Child: starting. pid %d tid %d\n", getpid(), syscall(SYS_gettid)); in child_poll_leader_exit_test() 465 syscall(SYS_exit, 0); in child_poll_leader_exit_test()
|
/tools/perf/arch/s390/ |
D | Makefile | 15 syskrn := $(srctree)/arch/s390/kernel/syscalls/syscall.tbl 17 sysdef := $(sysprf)/syscall.tbl
|
/tools/perf/arch/powerpc/ |
D | Makefile | 17 syskrn := $(srctree)/arch/powerpc/kernel/syscalls/syscall.tbl 19 sysdef := $(sysprf)/syscall.tbl
|
/tools/testing/selftests/powerpc/benchmarks/ |
D | exec_target.c | 15 syscall(SYS_exit, 0); in _start()
|
/tools/perf/Documentation/ |
D | perf-script-python.txt | 32 'syscall-counts' script you see when you list the available perf script 37 The syscall-counts script is a simple script, but demonstrates all the 39 of its output (syscall names are not yet supported, they will appear 43 syscall events: 73 Basically our task is to keep a per-syscall tally that gets updated 81 allowable by perf. These individual syscall events will however be 88 'id' field can be used to distinguish between individual syscall 91 For this script, we only need to know that a syscall was entered; we 102 The options basically say to collect data for every syscall event 190 # mv perf-script.py syscall-counts.py [all …]
|
/tools/perf/scripts/python/bin/ |
D | syscall-counts-report | 10 perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/syscall-counts.py $comm
|
D | syscall-counts-by-pid-report | 10 perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/syscall-counts-by-pid.py $comm
|