Home
last modified time | relevance | path

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

123

/bionic/libc/tools/
Dgensyscalls.py208 def add_footer(pointer_length, stub, syscall): argument
210 aliases = syscall["aliases"]
212 stub += "\nALIAS_SYMBOL(%s, %s)\n" % (alias, syscall["func"])
215 if pointer_length == 64 and syscall["func"].startswith("__"):
216 stub += '.hidden ' + syscall["func"] + '\n'
221 def arm_eabi_genstub(syscall): argument
222 num_regs = count_arm_param_registers(syscall["params"])
224 return arm_eabi_call_long % syscall
225 return arm_eabi_call_default % syscall
228 def arm64_genstub(syscall): argument
[all …]
Dgenfunctosyscallnrs.py18 for syscall in parser.syscalls:
19 if syscall.get(architecture):
20 arch_map[syscall["func"]] = syscall["name"];
28 for func,syscall in base_names.iteritems():
29 … out_file.write("#define __" + arch + "_" + func + " " + str(syscall_NRs[arch][syscall]) + ";\n")
Dgenseccomp.py70 [syscall for syscall in syscalls if syscall[0] not in priorities]
73 syscall_dict = {syscall[0]: syscall[1] for syscall in syscalls}
165 for i, syscall in enumerate(priority_syscalls):
166 result.append(BPF_JEQ.format(syscall[1], "{allow}", 0) +
167 ", //" + syscall[0])
/bionic/libc/bionic/
Dsys_shm.cpp36 return reinterpret_cast<void*>(syscall(SYS_shmat, id, address, flags)); in shmat()
40 if (syscall(SYS_ipc, SHMAT, id, flags, &result, address, 0) == -1) { in shmat()
53 return syscall(SYS_shmctl, id, cmd, buf); in shmctl()
55 return syscall(SYS_ipc, SHMCTL, id, cmd, 0, buf, 0); in shmctl()
61 return syscall(SYS_shmdt, address); in shmdt()
63 return syscall(SYS_ipc, SHMDT, 0, 0, 0, address, 0); in shmdt()
69 return syscall(SYS_shmget, key, size, flags); in shmget()
71 return syscall(SYS_ipc, SHMGET, key, size, flags, 0, 0); in shmget()
Dsys_msg.cpp40 return syscall(SYS_msgctl, id, cmd, buf); in msgctl()
42 return syscall(SYS_ipc, MSGCTL, id, cmd, 0, buf, 0); in msgctl()
48 return syscall(SYS_msgget, key, flags); in msgget()
50 return syscall(SYS_ipc, MSGGET, key, flags, 0, 0, 0); in msgget()
56 return syscall(SYS_msgrcv, id, msg, n, type, flags); in msgrcv()
58 return syscall(SYS_ipc, IPCCALL(1, MSGRCV), id, n, flags, msg, type); in msgrcv()
64 return syscall(SYS_msgsnd, id, msg, n, flags); in msgsnd()
66 return syscall(SYS_ipc, MSGSND, id, n, flags, msg, 0); in msgsnd()
Dsys_sem.cpp45 return syscall(SYS_semctl, id, num, cmd, arg); in semctl()
47 return syscall(SYS_ipc, SEMCTL, id, num, cmd, &arg, 0); in semctl()
53 return syscall(SYS_semget, key, n, flags); in semget()
55 return syscall(SYS_ipc, SEMGET, key, n, flags, 0, 0); in semget()
65 return syscall(SYS_semtimedop, id, ops, op_count, ts); in semtimedop()
67 return syscall(SYS_ipc, SEMTIMEDOP, id, op_count, 0, ops, ts); in semtimedop()
Dclone.cpp50 self->tid = syscall(__NR_gettid); in __start_thread()
106 clone_result = syscall(__NR_clone, flags, child_stack, parent_tid, child_tid, new_tls); in clone()
108 clone_result = syscall(__NR_clone, flags, child_stack, parent_tid, new_tls, child_tid); in clone()
122 self->tid = syscall(__NR_gettid); in clone()
Draise.cpp37 pid_t pid = syscall(__NR_getpid); in raise()
38 pid_t tid = syscall(__NR_gettid); in raise()
Dgettid.cpp41 self->tid = syscall(__NR_gettid); in gettid()
44 return syscall(__NR_gettid); in gettid()
Dpthread_sigqueue.cpp52 return syscall(__NR_rt_tgsigqueueinfo, getpid(), tid, sig, &siginfo) ? errno : 0; in pthread_sigqueue()
/bionic/tests/
Dmembarrier_test.cpp33 int supported_cmds = syscall(__NR_membarrier, MEMBARRIER_CMD_QUERY, 0); in HasMembarrier()
39 int supported = syscall(__NR_membarrier, MEMBARRIER_CMD_QUERY, 0); in TEST()
51 ASSERT_EQ(0, syscall(__NR_membarrier, MEMBARRIER_CMD_GLOBAL, 0)); in TEST()
91 ASSERT_EQ(0, syscall(__NR_membarrier, membarrier_cmd_barrier, 0)); in TestRegisterAndBarrierCommands()
94 ASSERT_EQ(-1, syscall(__NR_membarrier, membarrier_cmd_barrier, 0)); in TestRegisterAndBarrierCommands()
100 ASSERT_EQ(0, syscall(__NR_membarrier, membarrier_cmd_register, 0)); in TestRegisterAndBarrierCommands()
103 ASSERT_EQ(0, syscall(__NR_membarrier, membarrier_cmd_barrier, 0)); in TestRegisterAndBarrierCommands()
Dsys_syscall_test.cpp21 TEST(unistd, syscall) { in TEST() argument
22 ASSERT_EQ(getpid(), syscall(SYS_getpid)); in TEST()
Dunistd_test.cpp262 ASSERT_EQ(p, static_cast<uintptr_t>(syscall(__NR_brk, 0))); in TEST()
444 ASSERT_EQ(syscall(__NR_getpid), cached_pid); in TEST()
465 ASSERT_EQ(syscall(__NR_getpid), cached_pid); in TEST()
479 pid_t getpid_syscall_result = syscall(__NR_getpid); in AssertGetPidCorrect()
487 ASSERT_EQ(syscall(__NR_getpid), parent_pid); in TestGetPidCachingWithFork()
513 pid_t gettid_syscall_result = syscall(__NR_gettid); in AssertGetTidCorrect()
521 ASSERT_EQ(syscall(__NR_gettid), parent_tid); in TestGetTidCachingWithFork()
527 EXPECT_EQ(syscall(__NR_getpid), syscall(__NR_gettid)); in TestGetTidCachingWithFork()
528 EXPECT_EQ(getpid(), GetTidForTest()) << "real tid is " << syscall(__NR_gettid) in TestGetTidCachingWithFork()
529 << ", pid is " << syscall(__NR_getpid); in TestGetTidCachingWithFork()
[all …]
/bionic/libc/arch-x86_64/bionic/
Dsyscall.S43 ENTRY(syscall)
45 # (Not all will be valid, depending on the syscall.)
55 syscall
63 END(syscall)
D_exit_with_stack_teardown.S34 syscall
39 syscall
Dvfork.S45 syscall
/bionic/libc/private/
Dbionic_inline_raise.h41 pid_t pid = syscall(__NR_getpid);
42 pid_t tid = syscall(__NR_gettid);
64 syscall(__NR_rt_tgsigqueueinfo, pid, tid, sig, &info);
/bionic/libc/arch-x86/bionic/
Dsyscall.S15 ENTRY(syscall)
37 # (Not all will be valid, depending on the syscall.)
73 END(syscall)
/bionic/libc/arch-arm64/bionic/
Dsyscall.S31 ENTRY(syscall)
49 END(syscall)
/bionic/libc/arch-arm/bionic/
Dsyscall.S31 ENTRY(syscall)
51 END(syscall)
/bionic/benchmarks/
Dunistd_benchmark.cpp31 BIONIC_TRIVIAL_BENCHMARK(BM_unistd_getpid_syscall, syscall(__NR_getpid));
37 BIONIC_TRIVIAL_BENCHMARK(BM_unistd_gettid_syscall, syscall(__NR_gettid));
Dtime_benchmark.cpp38 syscall(__NR_clock_gettime, CLOCK_MONOTONIC, &t); in BM_time_clock_gettime_syscall()
101 syscall(__NR_clock_getres, CLOCK_MONOTONIC, &t); in BM_time_clock_getres_syscall()
162 syscall(__NR_gettimeofday, &tv, nullptr); in BM_time_gettimeofday_syscall()
/bionic/libc/kernel/tools/
Dupdate_all.py107 for syscall in sorted(syscalls):
108 nr_name = make__NR_name(syscall)
110 content += ' #define SYS_%s %s\n' % (syscall, nr_name)
/bionic/libc/include/android/
Dlegacy_sys_wait_inlines.h42 return __BIONIC_CAST(static_cast, pid_t, syscall(__NR_wait4, pid, status, options, rusage)); in wait4()
/bionic/benchmarks/linker_relocation/gen/
Dliblinker_reloc_bench_112.S47 CALL(syscall)

123