Home
last modified time | relevance | path

Searched refs:syscall (Results 1 - 25 of 758) sorted by relevance

12345678910>>...31

/kernel/linux/linux-5.10/arch/x86/um/shared/sysdep/
H 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), " in stub_syscall4()
64 stub_syscall5(long syscall, long arg1, long arg2, long arg3, long arg4, long arg5) stub_syscall5() argument
[all...]
H A Dstub_64.h16 #define __syscall "syscall"
18 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, lon argument
[all...]
/kernel/linux/linux-6.6/arch/x86/um/shared/sysdep/
H 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), " in stub_syscall4()
64 stub_syscall5(long syscall, long arg1, long arg2, long arg3, long arg4, long arg5) stub_syscall5() argument
[all...]
H A Dstub_64.h17 #define __syscall "syscall"
19 static inline long stub_syscall0(long syscall) in stub_syscall0() argument
25 : "0" (syscall) : __syscall_clobber ); in stub_syscall0()
30 static inline long stub_syscall2(long syscall, long arg1, long arg2) in stub_syscall2() argument
36 : "0" (syscall), "D" (arg1), "S" (arg2) : __syscall_clobber ); in stub_syscall2()
41 static inline long stub_syscall3(long syscall, long arg1, long arg2, long arg3) in stub_syscall3() argument
47 : "0" (syscall), "D" (arg1), "S" (arg2), "d" (arg3) in stub_syscall3()
53 static inline long stub_syscall4(long syscall, long arg1, long arg2, long arg3, in stub_syscall4() argument
60 : "0" (syscall), "D" (arg1), "S" (arg2), "d" (arg3), in stub_syscall4()
67 static inline long stub_syscall5(long syscall, lon argument
[all...]
/kernel/linux/linux-5.10/tools/perf/examples/bpf/
H A Daugmented_syscalls.c37 #define augmented_filename_syscall(syscall) \
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) \
110 struct augmented_enter_##syscall##_args { \
111 struct syscall_enter_##syscall##_arg
[all...]
H A Detcsnoop.c33 #define augmented_filename_syscall_enter(syscall) \
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, }; \
/kernel/linux/linux-5.10/kernel/entry/
H A Dcommon.c34 static inline void syscall_enter_audit(struct pt_regs *regs, long syscall) in syscall_enter_audit() argument
40 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
63 /* Either of the above might have changed the syscall number */ in syscall_trace_enter()
64 syscall = syscall_get_nr(current, regs); in syscall_trace_enter()
67 trace_sys_enter(regs, syscall); in syscall_trace_enter()
69 syscall_enter_audit(regs, syscall); in syscall_trace_enter()
71 return ret ? : syscall; in syscall_trace_enter()
75 __syscall_enter_from_user_work(struct pt_regs *regs, long syscall) in __syscall_enter_from_user_work() argument
81 syscall in __syscall_enter_from_user_work()
86 syscall_enter_from_user_mode_work(struct pt_regs *regs, long syscall) syscall_enter_from_user_mode_work() argument
91 syscall_enter_from_user_mode(struct pt_regs *regs, long syscall) syscall_enter_from_user_mode() argument
[all...]
/kernel/linux/linux-5.10/arch/um/os-Linux/skas/
H A Dmem.c53 unsigned long * syscall; in do_syscall_stub() local
84 syscall = (unsigned long *)((unsigned long)data + data[0]); in do_syscall_stub()
85 printk(UM_KERN_ERR "do_syscall_stub: syscall %ld failed, " in do_syscall_stub()
87 syscall[0], ret, syscall[7]); in do_syscall_stub()
88 printk(UM_KERN_ERR " syscall parameters: " in do_syscall_stub()
90 syscall[1], syscall[2], syscall[3], in do_syscall_stub()
91 syscall[ in do_syscall_stub()
110 run_syscall_stub(struct mm_id * mm_idp, int syscall, unsigned long *args, long expected, void **addr, int done) run_syscall_stub() argument
[all...]
/kernel/linux/linux-6.6/arch/um/os-Linux/skas/
H A Dmem.c55 unsigned long * syscall; in do_syscall_stub() local
86 syscall = (unsigned long *)((unsigned long)data + data[0]); in do_syscall_stub()
87 printk(UM_KERN_ERR "%s: syscall %ld failed, return value = 0x%lx, expected return value = 0x%lx\n", in do_syscall_stub()
88 __func__, syscall[0], ret, syscall[7]); in do_syscall_stub()
89 printk(UM_KERN_ERR " syscall parameters: 0x%lx 0x%lx 0x%lx 0x%lx 0x%lx 0x%lx\n", in do_syscall_stub()
90 syscall[1], syscall[2], syscall[3], in do_syscall_stub()
91 syscall[ in do_syscall_stub()
109 run_syscall_stub(struct mm_id * mm_idp, int syscall, unsigned long *args, long expected, void **addr, int done) run_syscall_stub() argument
[all...]
/kernel/linux/linux-5.10/arch/powerpc/kernel/syscalls/
H A DMakefile8 syscall := $(srctree)/$(src)/syscall.tbl macro
25 $(uapi)/unistd_32.h: $(syscall) $(syshdr)
29 $(uapi)/unistd_64.h: $(syscall) $(syshdr)
34 $(kapi)/syscall_table_32.h: $(syscall) $(systbl)
39 $(kapi)/syscall_table_64.h: $(syscall) $(systbl)
44 $(kapi)/syscall_table_c32.h: $(syscall) $(systbl)
49 $(kapi)/syscall_table_spu.h: $(syscall) $(systbl)
/kernel/linux/linux-5.10/arch/mips/kernel/
H 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
98 /* This is not an n32 compatibility syscall, pas
[all...]
H 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)
104 /* This also isn't a 64-bit syscall, throw an error. */
/kernel/linux/linux-6.6/arch/mips/kernel/
H 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
98 /* This is not an n32 compatibility syscall, pas
[all...]
/kernel/linux/linux-5.10/arch/parisc/kernel/syscalls/
H A DMakefile8 syscall := $(srctree)/$(src)/syscall.tbl macro
25 $(uapi)/unistd_32.h: $(syscall) $(syshdr)
29 $(uapi)/unistd_64.h: $(syscall) $(syshdr)
33 $(kapi)/syscall_table_32.h: $(syscall) $(systbl)
37 $(kapi)/syscall_table_64.h: $(syscall) $(systbl)
42 $(kapi)/syscall_table_c32.h: $(syscall) $(systbl)
/kernel/linux/linux-5.10/arch/sparc/kernel/syscalls/
H A DMakefile8 syscall := $(srctree)/$(src)/syscall.tbl macro
25 $(uapi)/unistd_32.h: $(syscall) $(syshdr)
29 $(uapi)/unistd_64.h: $(syscall) $(syshdr)
33 $(kapi)/syscall_table_32.h: $(syscall) $(systbl)
37 $(kapi)/syscall_table_64.h: $(syscall) $(systbl)
42 $(kapi)/syscall_table_c32.h: $(syscall) $(systbl)
/kernel/linux/linux-6.6/arch/powerpc/kernel/syscalls/
H A DMakefile7 syscall := $(src)/syscall.tbl macro
18 $(uapi)/unistd_32.h: $(syscall) $(syshdr) FORCE
22 $(uapi)/unistd_64.h: $(syscall) $(syshdr) FORCE
26 $(kapi)/syscall_table_32.h: $(syscall) $(systbl) FORCE
30 $(kapi)/syscall_table_64.h: $(syscall) $(systbl) FORCE
34 $(kapi)/syscall_table_spu.h: $(syscall) $(systbl) FORCE
/kernel/linux/linux-6.6/kernel/entry/
H A Dcommon.c38 static inline void syscall_enter_audit(struct pt_regs *regs, long syscall) in syscall_enter_audit() argument
44 audit_syscall_entry(syscall, args[0], args[1], args[2], args[3]); in syscall_enter_audit()
48 static long syscall_trace_enter(struct pt_regs *regs, long syscall, in syscall_trace_enter() argument
77 /* Either of the above might have changed the syscall number */ in syscall_trace_enter()
78 syscall = syscall_get_nr(current, regs); in syscall_trace_enter()
81 trace_sys_enter(regs, syscall); in syscall_trace_enter()
83 syscall_enter_audit(regs, syscall); in syscall_trace_enter()
85 return ret ? : syscall; in syscall_trace_enter()
89 __syscall_enter_from_user_work(struct pt_regs *regs, long syscall) in __syscall_enter_from_user_work() argument
94 syscall in __syscall_enter_from_user_work()
99 syscall_enter_from_user_mode_work(struct pt_regs *regs, long syscall) syscall_enter_from_user_mode_work() argument
104 syscall_enter_from_user_mode(struct pt_regs *regs, long syscall) syscall_enter_from_user_mode() argument
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/x86/
H A Dfsgsbase.c12 #include <sys/syscall.h>
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_fute in test_wrbase()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/x86/
H A Dfsgsbase.c12 #include <sys/syscall.h>
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_fute in test_wrbase()
[all...]
/kernel/linux/linux-5.10/arch/arm/tools/
H A DMakefile14 syscall := $(srctree)/$(src)/syscall.tbl macro
58 $(uapi)/unistd-common.h: $(syscall) $(syshdr) FORCE
62 $(uapi)/unistd-oabi.h: $(syscall) $(syshdr) FORCE
66 $(uapi)/unistd-eabi.h: $(syscall) $(syshdr) FORCE
70 $(kapi)/unistd-nr.h: $(syscall) $(sysnr) FORCE
74 $(gen)/calls-oabi.S: $(syscall) $(systbl) FORCE
78 $(gen)/calls-eabi.S: $(syscall) $(systbl) FORCE
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dmap_ops.c5 #include <sys/syscall.h>
13 (void)syscall(__NR_getpid); in map_update()
18 (void)syscall(__NR_getppid); in map_delete()
23 (void)syscall(__NR_getuid); in map_push()
28 (void)syscall(__NR_geteuid); in map_pop()
33 (void)syscall(__NR_getgid); in map_peek()
38 (void)syscall(__NR_gettid); in map_for_each_pass()
43 (void)syscall(__NR_getpgid); in map_for_each_fail()
/kernel/linux/linux-5.10/arch/um/kernel/skas/
H A Dsyscall.c19 int syscall; in handle_syscall() local
22 * If we have infinite CPU resources, then make every syscall also a in handle_syscall()
32 /* Initialize the syscall number and default return value. */ in handle_syscall()
43 syscall = UPT_SYSCALL_NR(r); in handle_syscall()
44 if (syscall >= 0 && syscall <= __NR_syscall_max) in handle_syscall()
46 EXECUTE_SYSCALL(syscall, regs)); in handle_syscall()
/kernel/linux/linux-6.6/arch/um/kernel/skas/
H A Dsyscall.c19 int syscall; in handle_syscall() local
22 * If we have infinite CPU resources, then make every syscall also a in handle_syscall()
32 /* Initialize the syscall number and default return value. */ in handle_syscall()
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()
/kernel/linux/linux-5.10/arch/s390/kernel/syscalls/
H 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
/kernel/linux/linux-6.6/arch/s390/kernel/syscalls/
H A DMakefile7 syscall := $(srctree)/$(src)/syscall.tbl macro
33 $(uapi)/unistd_32.h: $(syscall) FORCE
37 $(uapi)/unistd_64.h: $(syscall) FORCE
40 $(kapi)/syscall_table.h: $(syscall) FORCE
44 $(kapi)/unistd_nr.h: $(syscall) FORCE

Completed in 9 milliseconds

12345678910>>...31