/frameworks/libs/binary_translation/kernel_api/riscv64/ |
D | gen_syscall_emulation_riscv64_to_x86_64-inl.h | 6 long arg_2, in RunGuestSyscallImpl() argument 13 return syscall(43, arg_1, arg_2, arg_3); in RunGuestSyscallImpl() 15 return syscall(288, arg_1, arg_2, arg_3, arg_4); in RunGuestSyscallImpl() 19 return syscall(248, arg_1, arg_2, arg_3, arg_4, arg_5); in RunGuestSyscallImpl() 23 return syscall(49, arg_1, arg_2, arg_3); in RunGuestSyscallImpl() 25 return syscall(321, arg_1, arg_2, arg_3); in RunGuestSyscallImpl() 29 return syscall(125, arg_1, arg_2); in RunGuestSyscallImpl() 31 return syscall(126, arg_1, arg_2); in RunGuestSyscallImpl() 37 return syscall(305, arg_1, arg_2); in RunGuestSyscallImpl() 39 return syscall(229, arg_1, arg_2); in RunGuestSyscallImpl() [all …]
|
D | syscall_emulation.cc | 83 long RunGuestSyscall___NR_execveat(long arg_1, long arg_2, long arg_3, long arg_4, long arg_5) { in RunGuestSyscall___NR_execveat() argument 84 UNUSED(arg_1, arg_2, arg_3, arg_4, arg_5); in RunGuestSyscall___NR_execveat() 90 long RunGuestSyscall___NR_fadvise64(long arg_1, long arg_2, long arg_3, long arg_4) { in RunGuestSyscall___NR_fadvise64() argument 92 return syscall(__NR_fadvise64, arg_1, arg_2, arg_3, arg_4); in RunGuestSyscall___NR_fadvise64() 95 long RunGuestSyscall___NR_ioctl(long arg_1, long arg_2, long arg_3) { in RunGuestSyscall___NR_ioctl() argument 97 KAPI_TRACE("unimplemented ioctl 0x%lx, running host syscall as is", arg_2); in RunGuestSyscall___NR_ioctl() 98 return syscall(__NR_ioctl, arg_1, arg_2, arg_3); in RunGuestSyscall___NR_ioctl() 101 long RunGuestSyscall___NR_newfstatat(long arg_1, long arg_2, long arg_3, long arg_4) { in RunGuestSyscall___NR_newfstatat() argument 104 bit_cast<const char*>(arg_2), // path in RunGuestSyscall___NR_newfstatat() 114 long arg_2, in RunGuestSyscall___NR_riscv_hwprobe() argument [all …]
|
D | epoll_emulation.cc | 60 long RunGuestSyscall___NR_epoll_ctl(long arg_1, long arg_2, long arg_3, long arg_4) { in RunGuestSyscall___NR_epoll_ctl() argument 62 return syscall(__NR_epoll_ctl, arg_1, arg_2, arg_3, nullptr); in RunGuestSyscall___NR_epoll_ctl() 69 return syscall(__NR_epoll_ctl, arg_1, arg_2, arg_3, &host_event); in RunGuestSyscall___NR_epoll_ctl() 73 long arg_2, in RunGuestSyscall___NR_epoll_pwait() argument 78 long res = syscall(__NR_epoll_pwait, arg_1, arg_2, arg_3, arg_4, arg_5, arg_6); in RunGuestSyscall___NR_epoll_pwait() 79 if (res != -1 && arg_2 != 0) { in RunGuestSyscall___NR_epoll_pwait() 80 ConvertHostEPollEventArrayToGuestInPlace(bit_cast<Guest_epoll_event*>(arg_2), arg_3); in RunGuestSyscall___NR_epoll_pwait()
|
D | epoll_emulation.h | 22 long RunGuestSyscall___NR_epoll_ctl(long arg_1, long arg_2, long arg_3, long arg_4); 25 long arg_2, 32 long arg_2,
|
/frameworks/libs/binary_translation/kernel_api/include/berberis/kernel_api/ |
D | syscall_emulation_common.h | 42 inline long RunGuestSyscall___NR_clone3(long arg_1, long arg_2) { in RunGuestSyscall___NR_clone3() argument 43 UNUSED(arg_1, arg_2); in RunGuestSyscall___NR_clone3() 54 inline long RunGuestSyscall___NR_execve(long arg_1, long arg_2, long arg_3) { in RunGuestSyscall___NR_execve() argument 56 bit_cast<char* const*>(arg_2), // argv in RunGuestSyscall___NR_execve() 60 inline long RunGuestSyscall___NR_faccessat(long arg_1, long arg_2, long arg_3) { in RunGuestSyscall___NR_faccessat() argument 63 return syscall(__NR_faccessat, arg_1, arg_2, arg_3); in RunGuestSyscall___NR_faccessat() 66 inline long RunGuestSyscall___NR_fstat(long arg_1, long arg_2) { in RunGuestSyscall___NR_fstat() argument 81 ConvertHostStatToGuestArch(host_stat, bit_cast<GuestAddr>(arg_2)); in RunGuestSyscall___NR_fstat() 86 inline long RunGuestSyscall___NR_fstatfs(long arg_1, long arg_2) { in RunGuestSyscall___NR_fstatfs() argument 92 return syscall(__NR_statfs, "/proc/self/maps", arg_2); in RunGuestSyscall___NR_fstatfs() [all …]
|
D | runtime_bridge.h | 27 long RunGuestSyscall___NR_timer_create(long arg_1, long arg_2, long arg_3); 29 long RunGuestSyscall___NR_clone(long arg_1, long arg_2, long arg_3, long arg_4, long arg_5); 31 long arg_2, 37 long arg_2, 42 long RunGuestSyscall___NR_munmap(long arg_1, long arg_2); 43 long RunGuestSyscall___NR_mprotect(long arg_1, long arg_2, long arg_3); 44 long RunGuestSyscall___NR_mremap(long arg_1, long arg_2, long arg_3, long arg_4, long arg_5);
|
/frameworks/libs/binary_translation/kernel_api/ |
D | runtime_bridge.cc | 67 long RunGuestSyscall___NR_timer_create(long arg_1, long arg_2, long arg_3) { in RunGuestSyscall___NR_timer_create() argument 71 ConvertGuestSigeventToHost(bit_cast<struct sigevent*>(arg_2), &host_sigevent), in RunGuestSyscall___NR_timer_create() 80 long RunGuestSyscall___NR_clone(long arg_1, long arg_2, long arg_3, long arg_4, long arg_5) { in RunGuestSyscall___NR_clone() argument 83 return CloneGuestThread(GetCurrentGuestThread(), arg_1, arg_2, arg_3, arg_4, arg_5); in RunGuestSyscall___NR_clone() 87 long arg_2, in RunGuestSyscall___NR_mmap() argument 93 bit_cast<size_t>(arg_2), // length in RunGuestSyscall___NR_mmap() 101 long arg_2, in RunGuestSyscall___NR_mmap2() argument 108 bit_cast<size_t>(arg_2), // length in RunGuestSyscall___NR_mmap2() 115 long RunGuestSyscall___NR_munmap(long arg_1, long arg_2) { in RunGuestSyscall___NR_munmap() argument 117 bit_cast<size_t>(arg_2))); // length in RunGuestSyscall___NR_munmap() [all …]
|
/frameworks/libs/binary_translation/jni/ |
D | jni_trampolines.cc | 203 auto [arg_env, arg_1, arg_2, arg_va] = GuestParamsValues<PFN_callee>(state); in DoTrampoline_JNIEnv_CallStaticVoidMethodV() 205 std::vector<jvalue> arg_vector = ConvertVAList(arg_0, arg_2, ToGuestAddr(arg_va)); in DoTrampoline_JNIEnv_CallStaticVoidMethodV() 209 JNIEnv_CallStaticVoidMethodV_ForGuest(arg_0, arg_1, arg_2, arg_3); in DoTrampoline_JNIEnv_CallStaticVoidMethodV() 211 (arg_0->functions)->CallStaticVoidMethodA(arg_0, arg_1, arg_2, arg_3); in DoTrampoline_JNIEnv_CallStaticVoidMethodV()
|