Home
last modified time | relevance | path

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

12345678910>>...26

/linux/arch/x86/um/shared/sysdep/
A Dstub_32.h15 static inline long stub_syscall0(long syscall) in stub_syscall0() argument
19 __asm__ volatile ("int $0x80" : "=a" (ret) : "0" (syscall)); in stub_syscall0()
24 static inline long stub_syscall1(long syscall, long arg1) in stub_syscall1() argument
28 __asm__ volatile ("int $0x80" : "=a" (ret) : "0" (syscall), "b" (arg1)); in stub_syscall1()
33 static inline long stub_syscall2(long syscall, long arg1, long arg2) in stub_syscall2() argument
37 __asm__ volatile ("int $0x80" : "=a" (ret) : "0" (syscall), "b" (arg1), in stub_syscall2()
43 static inline long stub_syscall3(long syscall, long arg1, long arg2, long arg3) in stub_syscall3() argument
47 __asm__ volatile ("int $0x80" : "=a" (ret) : "0" (syscall), "b" (arg1), in stub_syscall3()
53 static inline long stub_syscall4(long syscall, long arg1, long arg2, long arg3, in stub_syscall4() argument
58 __asm__ volatile ("int $0x80" : "=a" (ret) : "0" (syscall), "b" (arg1), in stub_syscall4()
[all …]
A Dstub_64.h18 static inline long stub_syscall0(long syscall) in stub_syscall0() argument
24 : "0" (syscall) : __syscall_clobber ); in stub_syscall0()
29 static inline long stub_syscall2(long syscall, long arg1, long arg2) in stub_syscall2() argument
35 : "0" (syscall), "D" (arg1), "S" (arg2) : __syscall_clobber ); in stub_syscall2()
40 static inline long stub_syscall3(long syscall, long arg1, long arg2, long arg3) in stub_syscall3() argument
46 : "0" (syscall), "D" (arg1), "S" (arg2), "d" (arg3) in stub_syscall3()
52 static inline long stub_syscall4(long syscall, long arg1, long arg2, long arg3, in stub_syscall4() argument
59 : "0" (syscall), "D" (arg1), "S" (arg2), "d" (arg3), in stub_syscall4()
66 static inline long stub_syscall5(long syscall, long arg1, long arg2, long arg3, in stub_syscall5() argument
73 : "0" (syscall), "D" (arg1), "S" (arg2), "d" (arg3), in stub_syscall5()
/linux/tools/perf/examples/bpf/
A 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) \
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) \
116 struct augmented_enter_##syscall##_args augmented_args; \
[all …]
A 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, }; \
/linux/arch/um/os-Linux/skas/
A Dmem.c55 unsigned long * syscall; in do_syscall_stub() local
86 syscall = (unsigned long *)((unsigned long)data + data[0]); in do_syscall_stub()
89 syscall[0], ret, syscall[7]); in do_syscall_stub()
92 syscall[1], syscall[2], syscall[3], in do_syscall_stub()
93 syscall[4], syscall[5], syscall[6]); in do_syscall_stub()
112 long run_syscall_stub(struct mm_id * mm_idp, int syscall, in run_syscall_stub() argument
121 *stack++ = syscall; in run_syscall_stub()
/linux/kernel/entry/
A Dcommon.c40 audit_syscall_entry(syscall, args[0], args[1], args[2], args[3]); in syscall_enter_audit()
44 static long syscall_trace_enter(struct pt_regs *regs, long syscall, in syscall_trace_enter() argument
74 syscall = syscall_get_nr(current, regs); in syscall_trace_enter()
77 trace_sys_enter(regs, syscall); in syscall_trace_enter()
79 syscall_enter_audit(regs, syscall); in syscall_trace_enter()
81 return ret ? : syscall; in syscall_trace_enter()
85 __syscall_enter_from_user_work(struct pt_regs *regs, long syscall) in __syscall_enter_from_user_work() argument
90 syscall = syscall_trace_enter(regs, syscall, work); in __syscall_enter_from_user_work()
92 return syscall; in __syscall_enter_from_user_work()
97 return __syscall_enter_from_user_work(regs, syscall); in syscall_enter_from_user_mode_work()
[all …]
/linux/tools/testing/selftests/x86/
A 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()
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()
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()
379 if (syscall(SYS_arch_prctl, ARCH_SET_GS, local) != 0) in set_gs_and_switch_to()
405 syscall(SYS_futex, &ftx, FUTEX_WAKE, 0, NULL, NULL, 0); in set_gs_and_switch_to()
434 if (syscall(SYS_arch_prctl, ARCH_SET_GS, 0) != 0) in test_unexpected_base()
439 syscall(SYS_futex, &ftx, FUTEX_WAKE, 0, NULL, NULL, 0); in test_unexpected_base()
[all …]
A 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()
496 if (syscall(SYS_rt_sigaction, sig, &ksa, NULL, in fix_sa_restorer()
808 syscall(SYS_arch_prctl, ARCH_GET_FS, &saved_base); in test_gdt_invalidation()
828 syscall(SYS_arch_prctl, ARCH_GET_FS, &new_base); in test_gdt_invalidation()
835 syscall(SYS_arch_prctl, ARCH_SET_FS, saved_base); in test_gdt_invalidation()
861 syscall(SYS_arch_prctl, ARCH_GET_GS, &saved_base); in test_gdt_invalidation()
881 syscall(SYS_arch_prctl, ARCH_GET_GS, &new_base); in test_gdt_invalidation()
[all …]
/linux/arch/mips/kernel/
A Dscall64-n32.S35 dsubu t0, v0, __NR_N32_Linux # check syscall number
39 ld t1, PT_EPC(sp) # skip syscall on return
45 sd a3, PT_R26(sp) # save a3 for syscall restarting
48 LONG_L t0, TI_FLAGS($28) # syscall tracing enabled?
63 ld t1, PT_R2(sp) # syscall number
65 sd t1, PT_R0(sp) # save it for syscall restarting
78 bltz v0, 1f # seccomp failed? Skip syscall
81 ld v0, PT_R2(sp) # Restore syscall (maybe modified)
89 dsubu t2, v0, __NR_N32_Linux # check (new) syscall number
A Dscall64-n64.S43 ld t1, PT_EPC(sp) # skip syscall on return
48 sd a3, PT_R26(sp) # save a3 for syscall restarting
51 LONG_L t0, TI_FLAGS($28) # syscall tracing enabled?
63 ld t2, (t0) # syscall routine
73 ld t1, PT_R2(sp) # syscall number
75 sd t1, PT_R0(sp) # save it for syscall restarting
89 bltz v0, 1f # seccomp failed? Skip syscall
92 ld v0, PT_R2(sp) # Restore syscall (maybe modified)
A Dscall32-o32.S33 lw t1, PT_EPC(sp) # skip syscall on return
38 sw a3, PT_R26(sp) # save a3 for syscall restarting
81 lw t0, TI_FLAGS($28) # syscall tracing enabled?
86 subu v0, v0, __NR_O32_Linux # check syscall number
93 lw t2, (t1) # syscall routine
104 lw t1, PT_R2(sp) # syscall number
106 sw t1, PT_R0(sp) # save it for syscall restarting
129 bltz v0, 1f # seccomp failed? Skip syscall
132 lw v0, PT_R2(sp) # Restore syscall (maybe modified)
182 subu t0, a0, __NR_O32_Linux # check syscall number
[all …]
A Dscall64-o32.S34 ld t1, PT_EPC(sp) # skip syscall on return
36 dsubu t0, v0, __NR_O32_Linux # check syscall number
55 sd a3, PT_R26(sp) # save a3 for syscall restarting
83 LONG_L t0, TI_FLAGS($28) # syscall tracing enabled?
98 ld t1, PT_R2(sp) # syscall number
100 sd t1, PT_R0(sp) # save it for syscall restarting
133 bltz v0, 1f # seccomp failed? Skip syscall
136 ld v0, PT_R2(sp) # Restore syscall (maybe modified)
146 dsubu t0, v0, __NR_O32_Linux # check (new) syscall number
195 subu t0, a0, __NR_O32_Linux # check syscall number
[all …]
/linux/arch/powerpc/kernel/syscalls/
A DMakefile8 syscall := $(src)/syscall.tbl macro
19 $(uapi)/unistd_32.h: $(syscall) $(syshdr) FORCE
23 $(uapi)/unistd_64.h: $(syscall) $(syshdr) FORCE
27 $(kapi)/syscall_table_32.h: $(syscall) $(systbl) FORCE
31 $(kapi)/syscall_table_64.h: $(syscall) $(systbl) FORCE
35 $(kapi)/syscall_table_spu.h: $(syscall) $(systbl) FORCE
/linux/Documentation/powerpc/
A Dsyscall64-abi.rst5 syscall chapter
10 The syscall is made with the sc instruction, and returns with execution
17 syscall calling sequence\ [1]_ matches the Power Architecture 64-bit ELF ABI
28 There is a maximum of 6 integer parameters to a syscall, passed in r3-r8.
34 clear, the syscall succeeded and r3 is the return value. When cr0.SO is set,
35 the syscall failed and r3 is the error value (that normally corresponds to
90 If the processor is in suspended state when a syscall is made, the syscall
91 will be performed as normal, and will return as normal. The syscall will be
105 transactional state and the syscall will proceed as in the case of a
106 suspended state syscall, and will resume the transactional state before
[all …]
/linux/arch/s390/kernel/syscalls/
A DMakefile7 syscall := $(srctree)/$(src)/syscall.tbl macro
34 $(uapi)/unistd_32.h: $(syscall) FORCE
38 $(uapi)/unistd_64.h: $(syscall) FORCE
41 $(kapi)/syscall_table.h: $(syscall) FORCE
45 $(kapi)/unistd_nr.h: $(syscall) FORCE
/linux/arch/um/kernel/skas/
A Dsyscall.c19 int syscall; in handle_syscall() local
43 syscall = UPT_SYSCALL_NR(r); in handle_syscall()
44 if (syscall >= 0 && syscall < __NR_syscalls) in handle_syscall()
46 EXECUTE_SYSCALL(syscall, regs)); in handle_syscall()
/linux/tools/perf/util/
A Dsyscalltbl.c43 struct syscall { struct
51 const struct syscall *entry = ventry; in syscallcmpname() argument
58 const struct syscall *a = va, *b = vb; in syscallcmp()
66 struct syscall *entries; in syscalltbl__init_native()
72 entries = tbl->syscalls.entries = malloc(sizeof(struct syscall) * nr_entries); in syscalltbl__init_native()
84 qsort(tbl->syscalls.entries, nr_entries, sizeof(struct syscall), syscallcmp); in syscalltbl__init_native()
115 struct syscall *sc = bsearch(name, tbl->syscalls.entries, in syscalltbl__id()
125 struct syscall *syscalls = tbl->syscalls.entries; in syscalltbl__strglobmatch_next()
/linux/samples/seccomp/
A Dbpf-direct.c65 int syscall; in emulator() local
73 syscall = ctx->uc_mcontext.gregs[REG_SYSCALL]; in emulator()
77 if (syscall != __NR_write) in emulator()
172 syscall(__NR_write, STDOUT_FILENO, in main()
174 bytes = syscall(__NR_read, STDIN_FILENO, buf, sizeof(buf)); in main()
175 syscall(__NR_write, STDOUT_FILENO, payload("HELLO, ")); in main()
176 syscall(__NR_write, STDOUT_FILENO, buf, bytes); in main()
177 syscall(__NR_write, STDERR_FILENO, in main()
A Dbpf-fancy.c97 syscall(__NR_write, STDOUT_FILENO, msg1, strlen(msg1)); in main()
98 bytes = syscall(__NR_read, STDIN_FILENO, buf, sizeof(buf)-1); in main()
100 syscall(__NR_write, STDERR_FILENO, msg2, strlen(msg2)); in main()
101 syscall(__NR_write, STDERR_FILENO, buf, bytes); in main()
103 syscall(__NR_write, STDERR_FILENO, msg2, strlen(msg2)+2); in main()
/linux/tools/testing/selftests/seccomp/
A Dseccomp_bpf.c333 syscall(__NR_exit, 0); in TEST()
1069 syscall(__NR_getpid); in TEST_F_SIGNAL()
1084 syscall(__NR_getpid); in TEST_F_SIGNAL()
1124 ret = syscall(__NR_getpid); in TEST_F()
1241 res = syscall(__NR_getppid); in TEST_F()
1270 res = syscall(__NR_getpid); in TEST_F_SIGNAL()
1581 syscall(__NR_exit, 0); in setup_trace_fixture()
1923 if (!syscall && !ret) in __change_syscall()
1931 if (syscall) in __change_syscall()
1953 long syscall = -1; in change_syscall_ret() local
[all …]
/linux/arch/arm/tools/
A DMakefile14 syscall := $(src)/syscall.tbl macro
51 $(uapi)/unistd-%.h: $(syscall) $(syshdr) FORCE
54 $(kapi)/unistd-nr.h: $(syscall) $(sysnr) FORCE
57 $(gen)/calls-%.S: $(syscall) $(systbl) FORCE
/linux/arch/arm/kernel/
A Dentry-common.S52 ldr r1, [tsk, #TI_FLAGS] @ re-check for syscall tracing
86 ldr r1, [tsk, #TI_FLAGS] @ re-check for syscall tracing
220 adr tbl, sys_call_table @ load syscall table pointer
260 mov why, #0 @ no longer a real syscall
289 cmp scno, #-1 @ skip the syscall?
319 .macro syscall, nr, func macro
341 #define __SYSCALL(nr, func) syscall nr, func
358 @ r0 = syscall number
359 @ r8 = syscall table
379 mov why, #0 @ prevent syscall restart handling
[all …]
/linux/arch/powerpc/platforms/cell/
A Dspu_callbacks.c45 long (*syscall)(u64 a1, u64 a2, u64 a3, u64 a4, u64 a5, u64 a6); in spu_sys_callback() local
52 syscall = spu_syscall_table[s->nr_ret]; in spu_sys_callback()
56 syscall, in spu_sys_callback()
61 return syscall(s->parm[0], s->parm[1], s->parm[2], in spu_sys_callback()
/linux/tools/testing/selftests/pidfd/
A Dpidfd.h92 return syscall(__NR_pidfd_open, pid, flags); in sys_pidfd_open()
98 return syscall(__NR_pidfd_send_signal, pidfd, sig, info, flags); in sys_pidfd_send_signal()
103 return syscall(__NR_pidfd_getfd, pidfd, fd, flags); in sys_pidfd_getfd()
108 return syscall(__NR_memfd_create, name, flags); in sys_memfd_create()
/linux/arch/xtensa/kernel/syscalls/
A DMakefile8 syscall := $(src)/syscall.tbl macro
18 $(uapi)/unistd_32.h: $(syscall) $(syshdr) FORCE
21 $(kapi)/syscall_table.h: $(syscall) $(systbl) FORCE

Completed in 45 milliseconds

12345678910>>...26