Home
last modified time | relevance | path

Searched refs:syscall (Results 1 – 25 of 144) sorted by relevance

123456

/tools/perf/examples/bpf/
Daugmented_syscalls.c37 #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 …]
Detcsnoop.c33 #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/
Dfsgsbase.c165 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 …]
Dfsgsbase_restore.c73 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()
Dldt_gdt.c154 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 …]
Dsyscall_numbering.c25 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()
Dvdso_restorer.c67 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/
Dsyscalltbl.c39 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/
Dpidfd.h99 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()
Dpidfd_test.c384 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/
Dsyscall.c39 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()
DMakefile10 io_uring-bench: syscall.o io_uring-bench.o
13 io_uring-cp: setup.o syscall.o queue.o
/tools/testing/selftests/size/
Dget_size.c42 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/
DMakefile5 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/
Dtest_lsm.c86 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()
Dget_stackid_cannot_attach.c36 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()
Dringbuf_multi.c71 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/
Dproc-fsconfig-hidepid.c25 return syscall(__NR_fsopen, fsname, flags); in fsopen()
30 return syscall(__NR_fsconfig, fd, cmd, key, val, aux); in fsconfig()
Dproc.h14 return syscall(SYS_getpid); in sys_getpid()
19 return syscall(SYS_gettid); in sys_gettid()
Dproc-uptime-002.c35 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/
Dpkeys.h65 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/
DMakefile15 syskrn := $(srctree)/arch/s390/kernel/syscalls/syscall.tbl
17 sysdef := $(sysprf)/syscall.tbl
/tools/testing/selftests/seccomp/
Dseccomp_bpf.c271 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/
DMakefile17 syskrn := $(srctree)/arch/powerpc/kernel/syscalls/syscall.tbl
19 sysdef := $(sysprf)/syscall.tbl
/tools/testing/selftests/powerpc/benchmarks/
Dexec_target.c15 syscall(SYS_exit, 0); in _start()

123456