/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, }; \
|
/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() 319 syscall(SYS_futex, &ftx, FUTEX_WAKE, 0, NULL, NULL, 0); in test_wrbase() 321 syscall(SYS_futex, &ftx, FUTEX_WAIT, 1, NULL, NULL, 0); in test_wrbase() 339 syscall(SYS_futex, &ftx, FUTEX_WAIT, 0, NULL, NULL, 0); in threadproc() [all …]
|
D | fsgsbase_restore.c | 73 if (syscall(SYS_modify_ldt, 1, &desc, sizeof(desc)) == 0) { in init_seg() 131 pid_t pid = getpid(), tid = syscall(SYS_gettid); in tracee_zap_segment() 134 syscall(SYS_tgkill, pid, tid, SIGSTOP); in tracee_zap_segment() 165 pid_t pid = getpid(), tid = syscall(SYS_gettid); in main() 168 syscall(SYS_tgkill, pid, tid, SIGSTOP); in main()
|
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 | 67 if (syscall(SYS_rt_sigaction, SIGUSR1, &sa, NULL, 8) != 0) in main() 83 if (syscall(SYS_sigaction, SIGUSR1, &sa, 0) != 0) 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()
|
/tools/testing/selftests/pidfd/ |
D | pidfd.h | 99 return syscall(__NR_pidfd_open, pid, flags); in sys_pidfd_open() 105 return syscall(__NR_pidfd_send_signal, pidfd, sig, info, flags); in sys_pidfd_send_signal() 110 return syscall(__NR_pidfd_getfd, pidfd, fd, flags); in sys_pidfd_getfd() 115 return syscall(__NR_memfd_create, name, flags); in sys_memfd_create()
|
D | pidfd_test.c | 384 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_exec_thread() 390 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_exec_thread() 430 syscall(SYS_gettid)); in child_poll_exec_test() 481 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_leader_exit_thread() 483 ksft_print_msg("Child Thread: DONE. pid %d tid %ld\n", getpid(), syscall(SYS_gettid)); in test_pidfd_poll_leader_exit_thread() 492 ksft_print_msg("Child: starting. pid %d tid %ld\n", getpid(), syscall(SYS_gettid)); in child_poll_leader_exit_test() 501 syscall(SYS_exit, 0); in child_poll_leader_exit_test()
|
/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 \ 19 $(OUTPUT)/tm-syscall: tm-syscall-asm.S 20 $(OUTPUT)/tm-syscall: CFLAGS += -I../../../../../usr/include
|
/tools/testing/selftests/bpf/prog_tests/ |
D | test_lsm.c | 86 syscall(__NR_setdomainname, &buf, -2L); in test_test_lsm() 87 syscall(__NR_setdomainname, 0, -3L); in test_test_lsm() 88 syscall(__NR_setdomainname, ~0L, -4L); in test_test_lsm()
|
D | get_stackid_cannot_attach.c | 36 pmu_fd = syscall(__NR_perf_event_open, &attr, -1 /* pid */, in test_get_stackid_cannot_attach() 58 pmu_fd = syscall(__NR_perf_event_open, &attr, -1 /* pid */, in test_get_stackid_cannot_attach() 75 pmu_fd = syscall(__NR_perf_event_open, &attr, -1 /* pid */, in test_get_stackid_cannot_attach()
|
D | ringbuf_multi.c | 71 syscall(__NR_getpgid); in test_ringbuf_multi() 76 syscall(__NR_getpgid); in test_ringbuf_multi() 80 syscall(__NR_getpgid); in test_ringbuf_multi()
|
/tools/testing/selftests/proc/ |
D | proc-fsconfig-hidepid.c | 25 return syscall(__NR_fsopen, fsname, flags); in fsopen() 30 return syscall(__NR_fsconfig, fd, cmd, key, val, aux); in fsconfig()
|
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/powerpc/include/ |
D | pkeys.h | 65 return syscall(__NR_pkey_mprotect, addr, len, prot, pkey); in sys_pkey_mprotect() 70 return syscall(__NR_pkey_alloc, flags, rights); in sys_pkey_alloc() 75 return syscall(__NR_pkey_free, pkey); in sys_pkey_free()
|
/tools/perf/arch/s390/ |
D | Makefile | 15 syskrn := $(srctree)/arch/s390/kernel/syscalls/syscall.tbl 17 sysdef := $(sysprf)/syscall.tbl
|
/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 271 return syscall(__NR_seccomp, op, flags, args); in seccomp() 291 return syscall(__NR_kcmp, pid1, pid2, KCMP_FILE, fd1, fd2); in __filecmp() 329 syscall(__NR_exit, 0); in TEST() 340 syscall(__NR_prctl, PR_SET_SECCOMP, SECCOMP_MODE_FILTER, in TEST_SIGNAL() 583 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST() 602 EXPECT_EQ(0, syscall(__NR_getpid)) { in TEST_SIGNAL() 624 EXPECT_EQ(0, syscall(__NR_getpid)) { in TEST_SIGNAL() 669 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST_SIGNAL() 671 EXPECT_EQ(0, syscall(__NR_getpid)); in TEST_SIGNAL() 704 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST_SIGNAL() [all …]
|
/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()
|