Home
last modified time | relevance | path

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

12345678910

/Linux-v4.19/arch/x86/um/shared/sysdep/
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 …]
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-v4.19/tools/testing/selftests/x86/
Dfsgsbase.c122 if (syscall(SYS_arch_prctl, ARCH_SET_GS, value) != 0) in check_gs_value()
136 if (syscall(SYS_arch_prctl, ARCH_GET_GS, &base) != 0) in check_gs_value()
153 if (syscall(SYS_arch_prctl, ARCH_SET_GS, initial_base) != 0) in mov_0_gs()
161 if (syscall(SYS_arch_prctl, ARCH_GET_GS, &arch_base) != 0) in mov_0_gs()
190 if (syscall(SYS_arch_prctl, ARCH_SET_GS, to_set) != 0) in do_remote_base()
215 if (syscall(SYS_arch_prctl, ARCH_SET_GS, 0) != 0) in do_unexpected_base()
230 if (syscall(SYS_modify_ldt, 1, &desc, sizeof(desc)) == 0) { in do_unexpected_base()
272 syscall(SYS_futex, &ftx, FUTEX_WAIT, 0, NULL, NULL, 0); in threadproc()
284 syscall(SYS_futex, &ftx, FUTEX_WAKE, 0, NULL, NULL, 0); in threadproc()
305 if (syscall(SYS_arch_prctl, ARCH_SET_GS, local) != 0) in set_gs_and_switch_to()
[all …]
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 …]
/Linux-v4.19/arch/um/os-Linux/skas/
Dmem.c53 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-v4.19/Documentation/powerpc/
Dsyscall64-abi.txt5 syscall
8 syscall calling sequence[*] 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.
48 The syscall is performed with the sc instruction, and returns with execution
54 transaction state, and the syscall can affect the behavior of the transaction.
56 If the processor is in suspended state when a syscall is made, the syscall
57 will be performed as normal, and will return as normal. The syscall will be
59 to the usual transactional memory semantics. A syscall may or may not result
[all …]
/Linux-v4.19/arch/um/kernel/skas/
Dsyscall.c17 int syscall; in handle_syscall() local
30 syscall = UPT_SYSCALL_NR(r); in handle_syscall()
31 if (syscall >= 0 && syscall <= __NR_syscall_max) in handle_syscall()
33 EXECUTE_SYSCALL(syscall, regs)); in handle_syscall()
/Linux-v4.19/arch/arm/tools/
DMakefile14 syscall := $(srctree)/$(src)/syscall.tbl macro
59 $(uapi)/unistd-common.h: $(syscall) $(syshdr) FORCE
63 $(uapi)/unistd-oabi.h: $(syscall) $(syshdr) FORCE
67 $(uapi)/unistd-eabi.h: $(syscall) $(syshdr) FORCE
71 $(kapi)/unistd-nr.h: $(syscall) $(sysnr) FORCE
75 $(gen)/calls-oabi.S: $(syscall) $(systbl) FORCE
79 $(gen)/calls-eabi.S: $(syscall) $(systbl) FORCE
/Linux-v4.19/arch/s390/kernel/syscalls/
DMakefile7 syscall := $(srctree)/$(src)/syscall.tbl macro
40 $(uapi)/unistd_32.h: $(syscall) FORCE
44 $(uapi)/unistd_64.h: $(syscall) FORCE
47 $(kapi)/syscall_table.h: $(syscall) FORCE
51 $(kapi)/unistd_nr.h: $(syscall) FORCE
/Linux-v4.19/tools/perf/util/
Dsyscalltbl.c47 struct syscall { struct
55 const struct syscall *entry = ventry; in syscallcmpname() argument
62 const struct syscall *a = va, *b = vb; in syscallcmp()
70 struct syscall *entries; in syscalltbl__init_native()
76 entries = tbl->syscalls.entries = malloc(sizeof(struct syscall) * nr_entries); in syscalltbl__init_native()
88 qsort(tbl->syscalls.entries, nr_entries, sizeof(struct syscall), syscallcmp); in syscalltbl__init_native()
118 struct syscall *sc = bsearch(name, tbl->syscalls.entries, in syscalltbl__id()
128 struct syscall *syscalls = tbl->syscalls.entries; in syscalltbl__strglobmatch_next()
/Linux-v4.19/samples/seccomp/
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()
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-v4.19/tools/testing/selftests/seccomp/
Dseccomp_bpf.c161 return syscall(__NR_seccomp, op, flags, args); in seccomp()
185 syscall(__NR_exit, 0); in TEST()
196 syscall(__NR_prctl, PR_SET_SECCOMP, SECCOMP_MODE_FILTER, in TEST_SIGNAL()
439 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST()
458 EXPECT_EQ(0, syscall(__NR_getpid)) { in TEST_SIGNAL()
480 EXPECT_EQ(0, syscall(__NR_getpid)) { in TEST_SIGNAL()
525 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST_SIGNAL()
527 EXPECT_EQ(0, syscall(__NR_getpid)); in TEST_SIGNAL()
560 EXPECT_EQ(parent, syscall(__NR_getppid)); in TEST_SIGNAL()
561 EXPECT_LE(clock, syscall(__NR_times, &timebuf)); in TEST_SIGNAL()
[all …]
/Linux-v4.19/arch/arm/kernel/
Dentry-common.S58 ldr r1, [tsk, #TI_FLAGS] @ re-check for syscall tracing
95 ldr r1, [tsk, #TI_FLAGS] @ re-check for syscall tracing
230 adr tbl, sys_call_table @ load syscall table pointer
254 ldr r10, [tsk, #TI_FLAGS] @ check for syscall tracing
266 mov why, #0 @ no longer a real syscall
296 cmp scno, #-1 @ skip the syscall?
327 .macro syscall, nr, func macro
348 #define NATIVE(nr, func) syscall nr, func
355 #define COMPAT(nr, native, compat) syscall nr, native
367 @ r0 = syscall number
[all …]
/Linux-v4.19/arch/powerpc/platforms/cell/
Dspu_callbacks.c55 long (*syscall)(u64 a1, u64 a2, u64 a3, u64 a4, u64 a5, u64 a6); in spu_sys_callback() local
62 syscall = spu_syscall_table[s->nr_ret]; in spu_sys_callback()
66 syscall, in spu_sys_callback()
71 return syscall(s->parm[0], s->parm[1], s->parm[2], in spu_sys_callback()
/Linux-v4.19/arch/x86/entry/vsyscall/
Dvsyscall_emu_64.S22 syscall
27 syscall
32 syscall
/Linux-v4.19/arch/sh/kernel/vsyscall/
DMakefile2 obj-y += vsyscall.o vsyscall-syscall.o vsyscall-syms.o
4 $(obj)/vsyscall-syscall.o: \
25 $(call if_changed,syscall)
33 $(call if_changed,syscall)
/Linux-v4.19/tools/testing/selftests/powerpc/tm/
DMakefile5 TEST_GEN_PROGS := tm-resched-dscr tm-syscall tm-signal-msr-resv tm-signal-stack \
16 $(OUTPUT)/tm-syscall: tm-syscall-asm.S
17 $(OUTPUT)/tm-syscall: CFLAGS += -I../../../../../usr/include
/Linux-v4.19/arch/sparc/kernel/
Daudit.c43 int audit_classify_syscall(int abi, unsigned int syscall) in audit_classify_syscall() argument
47 return sparc32_classify_syscall(syscall); in audit_classify_syscall()
49 switch(syscall) { in audit_classify_syscall()
/Linux-v4.19/arch/s390/kernel/
Daudit.c42 int audit_classify_syscall(int abi, unsigned syscall) in audit_classify_syscall() argument
46 return s390_classify_syscall(syscall); in audit_classify_syscall()
48 switch(syscall) { in audit_classify_syscall()
/Linux-v4.19/
DCOPYING3 SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
10 With an explicit syscall exception, as stated at:
12 LICENSES/exceptions/Linux-syscall-note
/Linux-v4.19/lib/
Daudit.c40 int audit_classify_syscall(int abi, unsigned syscall) in audit_classify_syscall() argument
43 return audit_classify_compat_syscall(abi, syscall); in audit_classify_syscall()
45 switch(syscall) { in audit_classify_syscall()
/Linux-v4.19/Documentation/ABI/stable/
Dsyscalls1 What: The kernel syscall interface
9 documentation for details on the syscall numbers that are to be
10 mapped to each syscall.
/Linux-v4.19/arch/x86/kernel/
Daudit_64.c41 int audit_classify_syscall(int abi, unsigned syscall) in audit_classify_syscall() argument
46 return ia32_classify_syscall(syscall); in audit_classify_syscall()
48 switch(syscall) { in audit_classify_syscall()
/Linux-v4.19/arch/parisc/kernel/
Daudit.c41 int audit_classify_syscall(int abi, unsigned syscall) in audit_classify_syscall() argument
46 return parisc32_classify_syscall(syscall); in audit_classify_syscall()
48 switch (syscall) { in audit_classify_syscall()

12345678910