Home
last modified time | relevance | path

Searched refs:HostCode (Results 1 – 25 of 56) sorted by relevance

123

/frameworks/libs/binary_translation/runtime_primitives/include/berberis/runtime_primitives/
Dhost_code.h24 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;
Dtranslation_cache.h37 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};
Dhost_function_wrapper_impl.h32 using TrampolineFunc = void (*)(HostCode, ThreadState*);
42 HostCode func,
45 inline void WrapHostFunctionImpl(HostCode func, TrampolineFunc trampoline_func, const char* name) { in WrapHostFunctionImpl()
Dknown_guest_function_wrapper.h25 void RegisterKnownGuestFunctionWrapper(const char* name, HostCode (*wrapper)(GuestAddr));
26 HostCode WrapKnownGuestFunction(GuestAddr guest_addr, const char* name);
Dguest_function_wrapper_impl.h43 HostCode WrapGuestFunctionImpl(GuestAddr pc,
50 HostCode (*wrapper)(GuestAddr pc);
/frameworks/libs/binary_translation/runtime_primitives/
Dguest_function_wrapper_impl.cc63 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()
Dknown_guest_function_wrapper.cc30 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/
Dlibandroid_trampolines.cc75 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/
Dpthread_translation.h115 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,
Dpthread_translation.cc47 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
Dmalloc_translation.h36 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,
Dmalloc_translation.cc35 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
Dsystem_properties_trampolines.h25 void DoCustomTrampoline___system_property_foreach(HostCode callee,
28 void DoCustomTrampoline___system_property_read_callback(HostCode callee,
Dsystem_properties_trampolines.cc29 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/
Dmedia_trampolines.cc35 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/
Dnativehelper_trampolines.cc31 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/
Djni_trampolines.cc110 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/
Degl_trampolines.cc39 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/
Djni_trampolines.h28 HostCode WrapGuestJNIFunction(GuestAddr pc,
32 HostCode WrapGuestJNIOnLoad(GuestAddr pc);
/frameworks/libs/binary_translation/guest_loader/
Dguest_loader.cc160 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()
Dguest_loader_impl.h55 void (*callback)(HostCode, ThreadState*),
56 HostCode arg,
/frameworks/libs/native_bridge_support/android_api/libGLESv3/proxy/
Dgles3_trampolines.cc34 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/
Dgles2_trampolines.cc34 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/
Dsles_trampolines.cc112 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/
Dvulkan_trampolines.cc49 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()

123