/Linux-v5.4/arch/x86/um/shared/sysdep/ |
D | stub_32.h | 15 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 …]
|
D | stub_64.h | 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, long arg1, long arg2, long arg3, in stub_syscall5() argument 73 : "0" (syscall), "D" (arg1), "S" (arg2), "d" (arg3), in stub_syscall5()
|
/Linux-v5.4/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, }; \
|
/Linux-v5.4/arch/um/os-Linux/skas/ |
D | mem.c | 53 unsigned long * syscall; in do_syscall_stub() local 84 syscall = (unsigned long *)((unsigned long)data + data[0]); in do_syscall_stub() 87 syscall[0], ret, syscall[7]); in do_syscall_stub() 90 syscall[1], syscall[2], syscall[3], in do_syscall_stub() 91 syscall[4], syscall[5], syscall[6]); in do_syscall_stub() 110 long run_syscall_stub(struct mm_id * mm_idp, int syscall, in run_syscall_stub() argument 119 *stack++ = syscall; in run_syscall_stub()
|
/Linux-v5.4/arch/powerpc/kernel/syscalls/ |
D | Makefile | 8 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)
|
/Linux-v5.4/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 …]
|
/Linux-v5.4/arch/sparc/kernel/syscalls/ |
D | Makefile | 8 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)
|
/Linux-v5.4/arch/parisc/kernel/syscalls/ |
D | Makefile | 8 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)
|
/Linux-v5.4/Documentation/powerpc/ |
D | syscall64-abi.rst | 5 syscall chapter 8 syscall calling sequence\ [1]_ matches the Power Architecture 64-bit ELF ABI 19 There is a maximum of 6 integer parameters to a syscall, passed in r3-r8. 23 the syscall succeeded and r3 is the return value. When cr0.SO is set, the 24 syscall failed and r3 is the error code that generally corresponds to errno. 50 The syscall is performed with the sc instruction, and returns with execution 56 transaction state, and the syscall can affect the behavior of the transaction. 58 If the processor is in suspended state when a syscall is made, the syscall 59 will be performed as normal, and will return as normal. The syscall will be 61 to the usual transactional memory semantics. A syscall may or may not result [all …]
|
/Linux-v5.4/arch/mips/kernel/ |
D | scall64-n32.S | 35 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
|
D | scall64-n64.S | 43 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)
|
D | scall32-o32.S | 33 lw t1, PT_EPC(sp) # skip syscall on return 38 sw a3, PT_R26(sp) # save a3 for syscall restarting 83 lw t0, TI_FLAGS($28) # syscall tracing enabled? 88 subu v0, v0, __NR_O32_Linux # check syscall number 95 lw t2, (t1) # syscall routine 106 lw t1, PT_R2(sp) # syscall number 108 sw t1, PT_R0(sp) # save it for syscall restarting 131 bltz v0, 1f # seccomp failed? Skip syscall 134 lw v0, PT_R2(sp) # Restore syscall (maybe modified) 184 subu t0, a0, __NR_O32_Linux # check syscall number [all …]
|
D | scall64-o32.S | 34 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-v5.4/arch/um/kernel/skas/ |
D | syscall.c | 18 int syscall; in handle_syscall() local 41 syscall = UPT_SYSCALL_NR(r); in handle_syscall() 42 if (syscall >= 0 && syscall <= __NR_syscall_max) in handle_syscall() 44 EXECUTE_SYSCALL(syscall, regs)); in handle_syscall()
|
/Linux-v5.4/arch/arm/tools/ |
D | Makefile | 14 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
|
/Linux-v5.4/arch/s390/kernel/syscalls/ |
D | Makefile | 7 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-v5.4/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()
|
/Linux-v5.4/samples/seccomp/ |
D | bpf-direct.c | 65 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()
|
/Linux-v5.4/arch/powerpc/platforms/cell/ |
D | spu_callbacks.c | 45 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-v5.4/arch/arm/kernel/ |
D | entry-common.S | 55 ldr r1, [tsk, #TI_FLAGS] @ re-check for syscall tracing 92 ldr r1, [tsk, #TI_FLAGS] @ re-check for syscall tracing 227 adr tbl, sys_call_table @ load syscall table pointer 251 ldr r10, [tsk, #TI_FLAGS] @ check for syscall tracing 263 mov why, #0 @ no longer a real syscall 293 cmp scno, #-1 @ skip the syscall? 323 .macro syscall, nr, func macro 344 #define NATIVE(nr, func) syscall nr, func 351 #define COMPAT(nr, native, compat) syscall nr, native 363 @ r0 = syscall number [all …]
|
/Linux-v5.4/arch/xtensa/kernel/syscalls/ |
D | Makefile | 8 syscall := $(srctree)/$(src)/syscall.tbl macro 24 $(uapi)/unistd_32.h: $(syscall) $(syshdr) 27 $(kapi)/syscall_table.h: $(syscall) $(systbl)
|
/Linux-v5.4/arch/sh/kernel/syscalls/ |
D | Makefile | 8 syscall := $(srctree)/$(src)/syscall.tbl macro 24 $(uapi)/unistd_32.h: $(syscall) $(syshdr) 27 $(kapi)/syscall_table.h: $(syscall) $(systbl)
|
/Linux-v5.4/arch/alpha/kernel/syscalls/ |
D | Makefile | 8 syscall := $(srctree)/$(src)/syscall.tbl macro 24 $(uapi)/unistd_32.h: $(syscall) $(syshdr) 27 $(kapi)/syscall_table.h: $(syscall) $(systbl)
|
/Linux-v5.4/arch/m68k/kernel/syscalls/ |
D | Makefile | 8 syscall := $(srctree)/$(src)/syscall.tbl macro 24 $(uapi)/unistd_32.h: $(syscall) $(syshdr) 27 $(kapi)/syscall_table.h: $(syscall) $(systbl)
|