/frameworks/libs/binary_translation/runtime_primitives/include/berberis/runtime_primitives/ |
D | host_code.h | 24 using HostCode = const void*; variable 27 inline HostCode AsHostCode(T ptr) { in AsHostCode() 28 return reinterpret_cast<HostCode>(ptr); in AsHostCode() 32 inline T AsFuncPtr(HostCode ptr) { in AsFuncPtr() 39 AsFuncPtrAdaptor AsFuncPtr(HostCode ptr); 58 constexpr explicit AsFuncPtrAdaptor(HostCode ptr) noexcept : ptr_(const_cast<void*>(ptr)) {} in AsFuncPtrAdaptor() 59 friend AsFuncPtrAdaptor AsFuncPtr(HostCode); 65 inline AsFuncPtrAdaptor AsFuncPtr(HostCode ptr) { in AsFuncPtr() 70 HostCode code;
|
D | translation_cache.h | 37 std::atomic<HostCode>* const host_code; 161 GuestAddr SlowLookupGuestCodeEntryPCByHostPC(HostCode pc); 166 [[nodiscard]] const std::atomic<std::atomic<HostCode>*>* main_table_ptr() const { in main_table_ptr() 170 [[nodiscard]] const std::atomic<HostCode>* GetHostCodePtr(GuestAddr pc) { in GetHostCodePtr() 186 [[nodiscard]] std::atomic<HostCode>* GetHostCodePtrWritable(GuestAddr pc) { in GetHostCodePtrWritable() 192 std::atomic<HostCode>* host_code_ptr, 212 TableOfTables<GuestAddr, HostCode> address_map_{kEntryNotTranslated};
|
D | host_function_wrapper_impl.h | 32 using TrampolineFunc = void (*)(HostCode, ThreadState*); 42 HostCode func, 45 inline void WrapHostFunctionImpl(HostCode func, TrampolineFunc trampoline_func, const char* name) { in WrapHostFunctionImpl()
|
D | known_guest_function_wrapper.h | 25 void RegisterKnownGuestFunctionWrapper(const char* name, HostCode (*wrapper)(GuestAddr)); 26 HostCode WrapKnownGuestFunction(GuestAddr guest_addr, const char* name);
|
D | guest_function_wrapper_impl.h | 43 HostCode WrapGuestFunctionImpl(GuestAddr pc, 50 HostCode (*wrapper)(GuestAddr pc);
|
/frameworks/libs/binary_translation/runtime_primitives/ |
D | guest_function_wrapper_impl.cc | 63 HostCode Find(GuestAddr pc, const char* signature, HostCode guest_runner) const { in Find() 74 HostCode Insert(GuestAddr pc, const char* signature, HostCode guest_runner, MachineCode* mc) { in Insert() 96 using WrapperKey = std::tuple<GuestAddr, std::string, HostCode>; 97 using WrapperMap = ForeverMap<WrapperKey, HostCode>; 113 HostCode WrapGuestFunctionImpl(GuestAddr pc, in WrapGuestFunctionImpl() 121 HostCode guest_runner = AsHostCode(runner); in WrapGuestFunctionImpl() 123 HostCode wrapper = wrapper_cache->Find(pc, signature, guest_runner); in WrapGuestFunctionImpl()
|
D | known_guest_function_wrapper.cc | 30 std::map<std::string, HostCode (*)(GuestAddr)> g_function_wrappers; 35 void RegisterKnownGuestFunctionWrapper(const char* name, HostCode (*wrapper)(GuestAddr)) { in RegisterKnownGuestFunctionWrapper() 40 HostCode WrapKnownGuestFunction(GuestAddr guest_addr, const char* name) { in WrapKnownGuestFunction()
|
/frameworks/libs/native_bridge_support/android_api/libandroid/proxy/ |
D | libandroid_trampolines.cc | 75 void DoCustomTrampoline_ALooper_addFd(HostCode /* callee */, ProcessState* state) { in DoCustomTrampoline_ALooper_addFd() argument 83 void DoCustomTrampoline_ASensorManager_createEventQueue(HostCode /* callee */, in DoCustomTrampoline_ASensorManager_createEventQueue() argument 92 void DoCustomTrampoline_AInputQueue_attachLooper(HostCode /* callee */, ProcessState* state) { in DoCustomTrampoline_AInputQueue_attachLooper() argument 99 void DoCustomTrampoline_ANativeActivity_finish(HostCode /* callee */, ProcessState* state) { in DoCustomTrampoline_ANativeActivity_finish() argument 104 void DoCustomTrampoline_ANativeActivity_setWindowFormat(HostCode /* callee */, in DoCustomTrampoline_ANativeActivity_setWindowFormat() argument 111 void DoCustomTrampoline_ANativeActivity_setWindowFlags(HostCode /* callee */, ProcessState* state) { in DoCustomTrampoline_ANativeActivity_setWindowFlags() argument 117 void DoCustomTrampoline_ANativeActivity_showSoftInput(HostCode /* callee */, ProcessState* state) { in DoCustomTrampoline_ANativeActivity_showSoftInput() argument 122 void DoCustomTrampoline_ANativeActivity_hideSoftInput(HostCode /* callee */, ProcessState* state) { in DoCustomTrampoline_ANativeActivity_hideSoftInput() argument 141 void DoCustomTrampoline_AChoreographer_postFrameCallback(HostCode /* callee */, in DoCustomTrampoline_AChoreographer_postFrameCallback() argument 153 void DoCustomTrampoline_AChoreographer_postFrameCallbackDelayed(HostCode /* callee */, in DoCustomTrampoline_AChoreographer_postFrameCallbackDelayed() argument [all …]
|
/frameworks/libs/native_bridge_support/android_api/libc/proxy/ |
D | pthread_translation.h | 115 void DoCustomTrampoline_pthread_create(HostCode callee, ProcessState* state); 118 void DoCustomTrampoline_pthread_join(HostCode /* callee */, 122 void DoCustomTrampoline_pthread_getattr_np(HostCode callee, 126 void DoCustomTrampoline_pthread_key_create(HostCode callee, 131 void DoCustomTrampoline___pthread_cleanup_push(HostCode callee, 135 void DoCustomTrampoline___get_thread_stack_top(HostCode callee,
|
D | pthread_translation.cc | 47 void DoCustomTrampoline_pthread_create(HostCode /* callee */, in DoCustomTrampoline_pthread_create() argument 83 void DoCustomTrampoline_pthread_join(HostCode /* callee */, in DoCustomTrampoline_pthread_join() argument 94 void DoCustomTrampoline_pthread_getattr_np(HostCode /* callee */, in DoCustomTrampoline_pthread_getattr_np() argument 130 void DoCustomTrampoline___pthread_cleanup_push(HostCode /* callee */, in DoCustomTrampoline___pthread_cleanup_push() argument 140 void DoCustomTrampoline_pthread_key_create(HostCode /* callee */, in DoCustomTrampoline_pthread_key_create() argument 158 void DoCustomTrampoline___get_thread_stack_top(HostCode /* callee */, in DoCustomTrampoline___get_thread_stack_top() argument
|
D | malloc_translation.h | 36 void DoCustomTrampoline_native_bridge_malloc_info_helper(HostCode callee, 39 void DoCustomTrampoline_native_bridge_mallinfo(HostCode callee, 42 void DoCustomTrampoline_native_bridge_malloc_iterate(HostCode callee,
|
D | malloc_translation.cc | 35 void DoCustomTrampoline_native_bridge_malloc_info_helper(HostCode /*callee*/, in DoCustomTrampoline_native_bridge_malloc_info_helper() argument 53 void DoCustomTrampoline_native_bridge_mallinfo(HostCode /* callee */, in DoCustomTrampoline_native_bridge_mallinfo() argument 60 void DoCustomTrampoline_native_bridge_malloc_iterate(HostCode /* callee */, in DoCustomTrampoline_native_bridge_malloc_iterate() argument
|
D | system_properties_trampolines.h | 25 void DoCustomTrampoline___system_property_foreach(HostCode callee, 28 void DoCustomTrampoline___system_property_read_callback(HostCode callee,
|
D | system_properties_trampolines.cc | 29 void DoCustomTrampoline___system_property_foreach(HostCode /* callee */, in DoCustomTrampoline___system_property_foreach() argument 44 void DoCustomTrampoline___system_property_read_callback(HostCode /* callee */, in DoCustomTrampoline___system_property_read_callback() argument
|
/frameworks/libs/native_bridge_support/android_api/libmediandk/proxy/ |
D | media_trampolines.cc | 35 void DoCustomTrampoline_AImageReader_setBufferRemovedListener(HostCode /* callee */, in DoCustomTrampoline_AImageReader_setBufferRemovedListener() argument 58 void DoCustomTrampoline_AImageReader_setImageListener(HostCode /* callee */, ProcessState* state) { in DoCustomTrampoline_AImageReader_setImageListener() argument 116 void DoCustomTrampoline_AMediaCodec_setAsyncNotifyCallback(HostCode /* callee */, in DoCustomTrampoline_AMediaCodec_setAsyncNotifyCallback() argument 147 void DoCustomTrampoline_AMediaCodec_setAsyncNotifyCallback(HostCode /* callee */, in DoCustomTrampoline_AMediaCodec_setAsyncNotifyCallback() argument 174 void DoCustomTrampoline_AMediaDataSource_setClose(HostCode /* callee */, ProcessState* state) { in DoCustomTrampoline_AMediaDataSource_setClose() argument 183 void DoCustomTrampoline_AMediaDataSource_setGetSize(HostCode /* callee */, ProcessState* state) { in DoCustomTrampoline_AMediaDataSource_setGetSize() argument 194 void DoCustomTrampoline_AMediaDataSource_setReadAt(HostCode /* callee */, ProcessState* state) { in DoCustomTrampoline_AMediaDataSource_setReadAt() argument
|
/frameworks/libs/native_bridge_support/android_api/libnativehelper/proxy/ |
D | nativehelper_trampolines.cc | 31 void DoCustomTrampoline_AFileDescriptor_create(HostCode /* callee */, ProcessState* state) { in DoCustomTrampoline_AFileDescriptor_create() argument 38 void DoCustomTrampoline_AFileDescriptor_getFd(HostCode /* callee */, ProcessState* state) { in DoCustomTrampoline_AFileDescriptor_getFd() argument 45 void DoCustomTrampoline_AFileDescriptor_setFd(HostCode /* callee */, ProcessState* state) { in DoCustomTrampoline_AFileDescriptor_setFd() argument 51 void DoCustomTrampoline_JNI_CreateJavaVM(HostCode /* callee */, ProcessState* state) { in DoCustomTrampoline_JNI_CreateJavaVM() argument 64 void DoCustomTrampoline_JNI_GetCreatedJavaVMs(HostCode /* callee */, ProcessState* state) { in DoCustomTrampoline_JNI_GetCreatedJavaVMs() argument
|
/frameworks/libs/binary_translation/jni/ |
D | jni_trampolines.cc | 110 HostCode WrapGuestJNIFunction(GuestAddr pc, in WrapGuestJNIFunction() 122 HostCode WrapGuestJNIOnLoad(GuestAddr pc) { in WrapGuestJNIOnLoad() 177 void DoTrampoline_JNIEnv_RegisterNatives(HostCode /* callee */, ProcessState* state) { in DoTrampoline_JNIEnv_RegisterNatives() argument 188 void DoTrampoline_JNIEnv_GetJavaVM(HostCode /* callee */, ProcessState* state) { in DoTrampoline_JNIEnv_GetJavaVM() argument 201 void DoTrampoline_JNIEnv_CallStaticVoidMethodV(HostCode /* callee */, ProcessState* state) { in DoTrampoline_JNIEnv_CallStaticVoidMethodV() argument 221 void DoJavaVMTrampoline_DestroyJavaVM(HostCode /* callee */, ProcessState* state) { in DoJavaVMTrampoline_DestroyJavaVM() argument 231 void DoJavaVMTrampoline_AttachCurrentThread(HostCode /* callee */, ProcessState* state) { in DoJavaVMTrampoline_AttachCurrentThread() argument 245 void DoJavaVMTrampoline_DetachCurrentThread(HostCode /* callee */, ProcessState* state) { in DoJavaVMTrampoline_DetachCurrentThread() argument 255 void DoJavaVMTrampoline_GetEnv(HostCode /* callee */, ProcessState* state) { in DoJavaVMTrampoline_GetEnv() argument 273 void DoJavaVMTrampoline_AttachCurrentThreadAsDaemon(HostCode /* callee */, ProcessState* state) { in DoJavaVMTrampoline_AttachCurrentThreadAsDaemon() argument [all …]
|
/frameworks/libs/native_bridge_support/android_api/libEGL/proxy/ |
D | egl_trampolines.cc | 39 void DoCustomTrampolineWithThunk_glDebugMessageCallback(HostCode callee, ProcessState* state) { in DoCustomTrampolineWithThunk_glDebugMessageCallback() 84 void DoCustomTrampolineWithThunk_glGetPointerv(HostCode callee, ProcessState* state) { in DoCustomTrampolineWithThunk_glGetPointerv() 108 void DoCustomTrampolineWithThunk_eglGetProcAddress(HostCode callee, ProcessState* state); 113 bool WrapEglHostFunction(const char* name, HostCode function) { in WrapEglHostFunction() 133 HostCode WrapEglGuestFunction(const char* name, GuestAddr function) { in WrapEglGuestFunction() 153 void DoCustomTrampolineWithThunk_eglGetProcAddress(HostCode callee, ProcessState* state) { in DoCustomTrampolineWithThunk_eglGetProcAddress() 211 void DoCustomTrampolineWithThunk_eglNextLayerProcAddressProc(HostCode callee, ProcessState* state) { in DoCustomTrampolineWithThunk_eglNextLayerProcAddressProc()
|
/frameworks/libs/binary_translation/jni/include/berberis/jni/ |
D | jni_trampolines.h | 28 HostCode WrapGuestJNIFunction(GuestAddr pc, 32 HostCode WrapGuestJNIOnLoad(GuestAddr pc);
|
/frameworks/libs/binary_translation/guest_loader/ |
D | guest_loader.cc | 160 void TraceCallback(HostCode callee, ThreadState* state) { in TraceCallback() 170 void PostInitCallback(HostCode callee, ThreadState* state) { in PostInitCallback() 176 void InterceptGuestSymbolCallback(HostCode callee, ThreadState* state) { in InterceptGuestSymbolCallback() 185 void ConfigStaticTlsCallback(HostCode callee, ThreadState* state) { in ConfigStaticTlsCallback() 192 void GetHostPthreadCallback(HostCode callee, ThreadState* state) { in GetHostPthreadCallback() 405 void (*callback)(HostCode, ThreadState*), in MakeElfSymbolTrampolineCallable() argument 406 HostCode arg, in MakeElfSymbolTrampolineCallable()
|
D | guest_loader_impl.h | 55 void (*callback)(HostCode, ThreadState*), 56 HostCode arg,
|
/frameworks/libs/native_bridge_support/android_api/libGLESv3/proxy/ |
D | gles3_trampolines.cc | 34 void DoCustomTrampoline_glDebugMessageCallbackKHR(HostCode /* callee */, ProcessState* state) { in DoCustomTrampoline_glDebugMessageCallbackKHR() argument 41 void DoCustomTrampoline_glGetPointervKHR(HostCode /* callee */, ProcessState* state) { in DoCustomTrampoline_glGetPointervKHR() argument
|
/frameworks/libs/native_bridge_support/android_api/libGLESv2/proxy/ |
D | gles2_trampolines.cc | 34 void DoCustomTrampoline_glDebugMessageCallbackKHR(HostCode /* callee */, ProcessState* state) { in DoCustomTrampoline_glDebugMessageCallbackKHR() argument 41 void DoCustomTrampoline_glGetPointervKHR(HostCode /* callee */, ProcessState* state) { in DoCustomTrampoline_glGetPointervKHR() argument
|
/frameworks/libs/native_bridge_support/android_api/libOpenSLES/proxy/ |
D | sles_trampolines.cc | 112 void DoCustomTrampoline_SLAndroidBufferQueueItf_RegisterCallback(HostCode /* callee */, in DoCustomTrampoline_SLAndroidBufferQueueItf_RegisterCallback() argument 160 void DoCustomTrampoline_SLAndroidSimpleBufferQueueItf_RegisterCallback(HostCode callee, in DoCustomTrampoline_SLAndroidSimpleBufferQueueItf_RegisterCallback() 194 HostCode /* callee */, in DoCustomTrampoline_SLAudioIODeviceCapabilitiesItf_RegisterAvailableAudioInputsChangedCallback() argument 202 HostCode /* callee */, in DoCustomTrampoline_SLAudioIODeviceCapabilitiesItf_RegisterAvailableAudioOutputsChangedCallback() argument 210 HostCode /* callee */, in DoCustomTrampoline_SLAudioIODeviceCapabilitiesItf_RegisterDefaultDeviceIDMapChangedCallback() argument 241 void DoCustomTrampoline_SLBufferQueueItf_RegisterCallback(HostCode callee, ProcessState* state) { in DoCustomTrampoline_SLBufferQueueItf_RegisterCallback() 265 HostCode /* callee */, in DoCustomTrampoline_SLDynamicInterfaceManagementItf_RegisterCallback() argument 366 void DoCustomTrampoline_SLMIDIMessageItf_RegisterMetaEventCallback(HostCode /* callee */, in DoCustomTrampoline_SLMIDIMessageItf_RegisterMetaEventCallback() argument 371 void DoCustomTrampoline_SLMIDIMessageItf_RegisterMIDIMessageCallback(HostCode /* callee */, in DoCustomTrampoline_SLMIDIMessageItf_RegisterMIDIMessageCallback() argument 439 void DoCustomTrampoline_SLObjectItf_GetInterface(HostCode callee, ProcessState* state) { in DoCustomTrampoline_SLObjectItf_GetInterface() [all …]
|
/frameworks/libs/native_bridge_support/android_api/libvulkan/proxy/ |
D | vulkan_trampolines.cc | 49 void DoCustomTrampolineWithThunk_vkAllocateCommandBuffers(HostCode callee, ProcessState* state) { in DoCustomTrampolineWithThunk_vkAllocateCommandBuffers() 77 void DoCustomTrampolineWithThunk_vkBeginCommandBuffer(HostCode callee, ProcessState* state) { in DoCustomTrampolineWithThunk_vkBeginCommandBuffer() 97 void DoCustomTrampolineWithThunk_vkFreeCommandBuffers(HostCode callee, ProcessState* state) { in DoCustomTrampolineWithThunk_vkFreeCommandBuffers() 148 void DoCustomTrampolineWithThunk_vkEnumerateDeviceExtensionProperties(HostCode callee, in DoCustomTrampolineWithThunk_vkEnumerateDeviceExtensionProperties() 192 void DoCustomTrampolineWithThunk_vkEnumerateInstanceExtensionProperties(HostCode callee, in DoCustomTrampolineWithThunk_vkEnumerateInstanceExtensionProperties() 225 void DoCustomTrampolineWithThunk_vkGetDeviceProcAddr(HostCode callee, ProcessState* state) { in DoCustomTrampolineWithThunk_vkGetDeviceProcAddr() 242 void DoCustomTrampolineWithThunk_vkGetInstanceProcAddr(HostCode callee, ProcessState* state) { in DoCustomTrampolineWithThunk_vkGetInstanceProcAddr()
|