Home
last modified time | relevance | path

Searched refs:GuestAddr (Results 1 – 25 of 134) sorted by relevance

123456

/frameworks/libs/binary_translation/native_activity/include/berberis/native_activity/
Dnative_activity.h31 GuestAddr onStart;
32 GuestAddr onResume;
33 GuestAddr onSaveInstanceState;
34 GuestAddr onPause;
35 GuestAddr onStop;
36 GuestAddr onDestroy;
37 GuestAddr onWindowFocusChanged;
38 GuestAddr onNativeWindowCreated;
39 GuestAddr onNativeWindowResized;
40 GuestAddr onNativeWindowRedrawNeeded;
[all …]
/frameworks/libs/native_bridge_support/android_api/libEGL/proxy/
Dopengl_trampolines-inl.h5 HostCode (*wrapper)(GuestAddr);
7 {"eglBindAPI", GetTrampolineFunc<uint32_t(uint32_t)>(),[](GuestAddr pc) { return WrapGuestFunctionI…
8 {"eglBindTexImage", GetTrampolineFunc<uint32_t(void*, void*, uint32_t)>(),[](GuestAddr pc) { return…
9 … GetTrampolineFunc<uint32_t(void*, void*, void*, uint32_t, void*)>(),[](GuestAddr pc) { return Wra…
10 {"eglClientSignalSyncEXT", GetTrampolineFunc<uint32_t(void*, void*, void*)>(),[](GuestAddr pc) { re…
11 {"eglClientWaitSync", GetTrampolineFunc<uint32_t(void*, void*, uint32_t, uint64_t)>(),[](GuestAddr
12 …HR", GetTrampolineFunc<uint32_t(void*, void*, uint32_t, uint64_t)>(),[](GuestAddr pc) { return Wra…
13 {"eglClientWaitSyncNV", GetTrampolineFunc<uint32_t(void*, uint32_t, uint64_t)>(),[](GuestAddr pc) {…
14 {"eglCompositorBindTexWindowEXT", GetTrampolineFunc<uint32_t(uint32_t)>(),[](GuestAddr pc) { return…
15 …ibutesEXT", GetTrampolineFunc<uint32_t(uint32_t, void*, uint32_t)>(),[](GuestAddr pc) { return Wra…
[all …]
/frameworks/libs/binary_translation/runtime_primitives/include/berberis/runtime_primitives/
Dtranslation_cache.h112 bool SetStop(GuestAddr pc) { in SetStop()
121 void TestingClearStop(GuestAddr pc) { in TestingClearStop()
130 [[nodiscard]] GuestCodeEntry* AddAndLockForTranslation(GuestAddr pc, uint32_t counter_threshold);
134 [[nodiscard]] GuestCodeEntry* LockForGearUpTranslation(GuestAddr pc);
138 void SetTranslatedAndUnlock(GuestAddr pc,
145 [[nodiscard]] GuestCodeEntry* AddAndLockForWrapping(GuestAddr pc);
147 void SetWrappedAndUnlock(GuestAddr pc,
152 [[nodiscard]] bool IsHostFunctionWrapped(GuestAddr pc) const;
155 [[nodiscard]] GuestCodeEntry* ProfilerLookupGuestCodeEntryByGuestPC(GuestAddr pc);
157 [[nodiscard]] uint32_t GetInvocationCounter(GuestAddr pc) const;
[all …]
Dmemory_region_reservation.h34 static GuestAddr Clear(CPUState* cpu) { in Clear()
35 GuestAddr previous_address = cpu->reservation_address; in Clear()
41 static Type Load(CPUState* cpu, GuestAddr addr, std::memory_order mem_order) { in Load()
45 GuestAddr aligned_addr = addr - (addr % sizeof(Reservation)); in Load()
56 static uint32_t Store(CPUState* cpu, GuestAddr addr, Type value, std::memory_order mem_order) { in Store()
60 GuestAddr reservation_address = Clear(cpu); in Store()
62 GuestAddr aligned_addr = addr - (addr % sizeof(Reservation)); in Store()
78 static void SetOwner(GuestAddr aligned_addr, void* cpu);
79 static Entry* TryLock(GuestAddr aligned_addr, void* cpu);
84 GuestAddr aligned_addr,
[all …]
Dvirtual_guest_call_frame.h48 ScopedVirtualGuestCallFrame(CPUState* cpu, GuestAddr pc);
51 static void SetReturnAddress(GuestAddr ra) { g_return_address_ = ra; } in SetReturnAddress()
54 static GuestAddr g_return_address_;
59 GuestAddr stack_pointer_;
60 GuestAddr link_register_;
61 GuestAddr program_counter_;
65 void InitVirtualGuestCallFrameReturnAddress(GuestAddr ra);
Dguest_function_wrapper_impl.h40 using GuestRunnerFunc = void (*)(GuestAddr pc, GuestArgumentBuffer* buf);
41 using IsAddressGuestExecutableFunc = bool (*)(GuestAddr pc);
43 HostCode WrapGuestFunctionImpl(GuestAddr pc,
50 HostCode (*wrapper)(GuestAddr pc);
53 GuestAddr SlowFindGuestAddrByWrapperAddr(void* wrapper_addr);
/frameworks/libs/binary_translation/guest_os_primitives/
Dguest_map_shadow.cc40 constexpr size_t kGuestAddressSizeLog2 = sizeof(GuestAddr) * CHAR_BIT;
45 inline GuestAddr AlignDownGuestPageSize(GuestAddr addr) { in AlignDownGuestPageSize()
49 inline GuestAddr AlignUpGuestPageSize(GuestAddr addr) { in AlignUpGuestPageSize()
68 bool GuestMapShadow::IsExecAddr(GuestAddr addr) const { in IsExecAddr()
74 bool GuestMapShadow::SetExecAddr(GuestAddr addr, int set) { in SetExecAddr()
87 void GuestMapShadow::CopyExecutable(GuestAddr from, in CopyExecutable()
89 GuestAddr to, in CopyExecutable()
114 BitValue GuestMapShadow::GetExecutable(GuestAddr start, size_t size) const { in GetExecutable()
115 GuestAddr pc = AlignDownGuestPageSize(start); in GetExecutable()
116 GuestAddr end = AlignUpGuestPageSize(start + size); in GetExecutable()
[all …]
/frameworks/libs/binary_translation/guest_os_primitives/include/berberis/guest_os_primitives/
Dguest_map_shadow.h41 [[nodiscard]] BitValue GetExecutable(GuestAddr start, size_t size) const;
44 [[nodiscard]] bool IsExecutable(GuestAddr start, size_t size) const;
47 void SetExecutable(GuestAddr start, size_t size);
50 void ClearExecutable(GuestAddr start, size_t size);
52 void RemapExecutable(GuestAddr old_start, size_t old_size, GuestAddr new_start, size_t new_size);
61 [[nodiscard]] bool IsExecAddr(GuestAddr addr) const;
62 bool SetExecAddr(GuestAddr addr, int set);
63 void CopyExecutable(GuestAddr from, size_t from_size, GuestAddr to, size_t to_size);
Dguest_thread.h39 GuestAddr func,
40 GuestAddr arg);
44 GuestAddr guest_stack_top,
45 GuestAddr parent_tid,
46 GuestAddr new_tls,
47 GuestAddr child_tid);
50 void RunGuestPthreadKeyDtor(GuestAddr pc, GuestArgumentBuffer* buf);
54 GuestAddr sp = {};
81 void GetAttr(GuestAddr* stack_base, size_t* stack_size, size_t* guard_size) const { in GetAttr()
100 [[nodiscard]] GuestAddr GetStackTop() const { return stack_top_; } in GetStackTop()
[all …]
Dguest_signal.h33 const GuestAddr Guest_SIG_DFL = GuestAddr{0U};
34 const GuestAddr Guest_SIG_IGN = GuestAddr{1U};
35 const GuestAddr Guest_SIG_ERR = GuestAddr{~0U};
83 GuestAddr WrapHostSigactionForGuest(const HostStructSigaction& host_sa);
/frameworks/libs/binary_translation/guest_state/arm/
Dguest_state_arch.cc24 void SetReturnValueRegister(CPUState& cpu, GuestAddr val) { in SetReturnValueRegister()
28 GuestAddr GetReturnValueRegister(const CPUState& cpu) { in GetReturnValueRegister()
32 void SetStackRegister(CPUState& cpu, GuestAddr val) { in SetStackRegister()
36 GuestAddr GetStackRegister(const CPUState& cpu) { in GetStackRegister()
40 void SetLinkRegister(CPUState& cpu, GuestAddr val) { in SetLinkRegister()
44 GuestAddr GetLinkRegister(const CPUState& cpu) { in GetLinkRegister()
48 void SetTlsAddr(ThreadState& state, GuestAddr addr) { in SetTlsAddr()
52 GuestAddr GetTlsAddr(const ThreadState& state) { in GetTlsAddr()
56 void SetShadowCallStackPointer(CPUState& cpu, GuestAddr scs_sp) { in SetShadowCallStackPointer()
/frameworks/libs/binary_translation/guest_state/include/berberis/guest_state/
Dguest_state_opaque.h68 GuestAddr GetReturnValueRegister(const CPUState& cpu);
69 void SetReturnValueRegister(CPUState& cpu, GuestAddr val);
71 void SetStackRegister(CPUState& cpu, GuestAddr val);
72 GuestAddr GetStackRegister(const CPUState& cpu);
74 void SetLinkRegister(CPUState& cpu, GuestAddr val);
75 GuestAddr GetLinkRegister(const CPUState& cpu);
77 void SetInsnAddr(CPUState& cpu, GuestAddr addr);
78 GuestAddr GetInsnAddr(const CPUState& cpu);
87 void SetTlsAddr(ThreadState& state, GuestAddr addr);
88 GuestAddr GetTlsAddr(const ThreadState& cpu);
[all …]
Dguest_addr.h25 using GuestAddr = uintptr_t; variable
27 constexpr GuestAddr kNullGuestAddr = {};
30 inline GuestAddr ToGuestAddr(T* addr) { in ToGuestAddr()
31 return reinterpret_cast<GuestAddr>(addr); in ToGuestAddr()
35 inline T* ToHostAddr(GuestAddr addr) { in ToHostAddr()
/frameworks/libs/binary_translation/guest_abi/riscv64/include/berberis/guest_abi/
Dguest_call_arch.h35 void RunVoid(GuestAddr func_addr);
36 uint32_t RunResInt32(GuestAddr func_addr);
37 uint64_t RunResInt64(GuestAddr func_addr);
39 static_assert(sizeof(GuestAddr) == sizeof(uint64_t), "unexpected sizeof(GuestAddr)");
40 void AddArgGuestAddr(GuestAddr arg) { AddArgInt64(arg); } in AddArgGuestAddr()
41 GuestAddr RunResGuestAddr(GuestAddr func_addr) { return RunResInt64(func_addr); } in RunResGuestAddr()
/frameworks/libs/binary_translation/guest_abi/arm64/include/berberis/guest_abi/
Dguest_call_arch.h40 void RunVoid(GuestAddr func_addr);
41 uint32_t RunResInt32(GuestAddr func_addr);
42 uint64_t RunResInt64(GuestAddr func_addr);
44 static_assert(sizeof(GuestAddr) == sizeof(uint64_t), "unexpected sizeof(GuestAddr)");
45 void AddArgGuestAddr(GuestAddr arg) { AddArgInt64(arg); } in AddArgGuestAddr()
46 GuestAddr RunResGuestAddr(GuestAddr func_addr) { return RunResInt64(func_addr); } in RunResGuestAddr()
/frameworks/libs/binary_translation/guest_state/arm64/
Dguest_state_arch.cc24 void SetReturnValueRegister(CPUState& cpu, GuestAddr val) { in SetReturnValueRegister()
28 GuestAddr GetReturnValueRegister(const CPUState& cpu) { in GetReturnValueRegister()
32 void SetStackRegister(CPUState& cpu, GuestAddr val) { in SetStackRegister()
36 GuestAddr GetStackRegister(const CPUState& cpu) { in GetStackRegister()
40 void SetLinkRegister(CPUState& cpu, GuestAddr val) { in SetLinkRegister()
44 GuestAddr GetLinkRegister(const CPUState& cpu) { in GetLinkRegister()
48 void SetTlsAddr(ThreadState& state, GuestAddr addr) { in SetTlsAddr()
52 GuestAddr GetTlsAddr(const ThreadState& state) { in GetTlsAddr()
56 void SetShadowCallStackPointer(CPUState& cpu, GuestAddr scs_sp) { in SetShadowCallStackPointer()
/frameworks/libs/binary_translation/lite_translator/riscv64_to_x86_64/
Dlite_translate_region.cc35 void Finalize(LiteTranslator* translator, GuestAddr pc) { in Finalize()
63 std::tuple<bool, GuestAddr> TryLiteTranslateRegionImpl(GuestAddr start_pc, in TryLiteTranslateRegionImpl()
64 GuestAddr end_pc, in TryLiteTranslateRegionImpl()
92 bool LiteTranslateRange(GuestAddr start_pc, in LiteTranslateRange()
93 GuestAddr end_pc, in LiteTranslateRange()
100 std::tuple<bool, GuestAddr> TryLiteTranslateRegion(GuestAddr start_pc, in TryLiteTranslateRegion()
106 start_pc, std::numeric_limits<GuestAddr>::max(), machine_code, params); in TryLiteTranslateRegion()
/frameworks/libs/binary_translation/guest_state/riscv64/
Dguest_state_arch.cc25 void SetReturnValueRegister(CPUState& cpu, GuestAddr val) { in SetReturnValueRegister()
29 GuestAddr GetReturnValueRegister(const CPUState& cpu) { in GetReturnValueRegister()
33 void SetStackRegister(CPUState& cpu, GuestAddr val) { in SetStackRegister()
37 GuestAddr GetStackRegister(const CPUState& cpu) { in GetStackRegister()
41 void SetLinkRegister(CPUState& cpu, GuestAddr val) { in SetLinkRegister()
45 GuestAddr GetLinkRegister(const CPUState& cpu) { in GetLinkRegister()
49 void SetTlsAddr(ThreadState& state, GuestAddr addr) { in SetTlsAddr()
53 GuestAddr GetTlsAddr(const ThreadState& state) { in GetTlsAddr()
57 void SetShadowCallStackPointer(CPUState& cpu, GuestAddr scs_sp) { in SetShadowCallStackPointer()
/frameworks/libs/binary_translation/guest_abi/arm/include/berberis/guest_abi/
Dguest_call_arch.h38 void RunVoid(GuestAddr func_addr);
39 uint32_t RunResInt32(GuestAddr func_addr);
41 static_assert(sizeof(GuestAddr) == sizeof(uint32_t), "unexpected sizeof(GuestAddr)");
42 void AddArgGuestAddr(GuestAddr arg) { AddArgInt32(arg); } in AddArgGuestAddr()
43 GuestAddr RunResGuestAddr(GuestAddr func_addr) { return RunResInt32(func_addr); } in RunResGuestAddr()
/frameworks/libs/binary_translation/native_activity/
Dnative_activity_wrapper.cc59 GuestAddr func = GetGuestCallbacks(guest_activity)->onStart; in Wrap_OnStart()
70 GuestAddr func = GetGuestCallbacks(guest_activity)->onResume; in Wrap_OnResume()
81 GuestAddr func = GetGuestCallbacks(guest_activity)->onSaveInstanceState; in Wrap_OnSaveInstanceState()
93 GuestAddr func = GetGuestCallbacks(guest_activity)->onPause; in Wrap_OnPause()
104 GuestAddr func = GetGuestCallbacks(guest_activity)->onStop; in Wrap_OnStop()
115 GuestAddr func = GetGuestCallbacks(guest_activity)->onDestroy; in Wrap_OnDestroy()
127 GuestAddr func = GetGuestCallbacks(guest_activity)->onWindowFocusChanged; in Wrap_OnWindowFocusChanged()
139 GuestAddr func = GetGuestCallbacks(guest_activity)->onNativeWindowCreated; in Wrap_OnNativeWindowCreated()
151 GuestAddr func = GetGuestCallbacks(guest_activity)->onNativeWindowResized; in Wrap_OnNativeWindowResized()
163 GuestAddr func = GetGuestCallbacks(guest_activity)->onNativeWindowRedrawNeeded; in Wrap_OnNativeWindowRedrawNeeded()
[all …]
/frameworks/libs/binary_translation/runtime_primitives/
Dtranslation_cache.cc35 GuestCodeEntry* TranslationCache::AddAndLockForTranslation(GuestAddr pc, in AddAndLockForTranslation()
66 GuestCodeEntry* TranslationCache::LockForGearUpTranslation(GuestAddr pc) { in LockForGearUpTranslation()
93 void TranslationCache::SetTranslatedAndUnlock(GuestAddr pc, in SetTranslatedAndUnlock()
135 GuestCodeEntry* TranslationCache::AddAndLockForWrapping(GuestAddr pc) { in AddAndLockForWrapping()
150 void TranslationCache::SetWrappedAndUnlock(GuestAddr pc, in SetWrappedAndUnlock()
180 bool TranslationCache::IsHostFunctionWrapped(GuestAddr pc) const { in IsHostFunctionWrapped()
188 GuestCodeEntry* TranslationCache::AddUnsafe(GuestAddr pc, in AddUnsafe()
205 GuestCodeEntry* TranslationCache::ProfilerLookupGuestCodeEntryByGuestPC(GuestAddr pc) { in ProfilerLookupGuestCodeEntryByGuestPC()
210 uint32_t TranslationCache::GetInvocationCounter(GuestAddr pc) const { in GetInvocationCounter()
219 GuestCodeEntry* TranslationCache::LookupGuestCodeEntryUnsafe(GuestAddr pc) { in LookupGuestCodeEntryUnsafe()
[all …]
Dmemory_region_reservation.cc35 inline ReservationType MemoryRegionReservationLoadTemplate(GuestAddr addr, in MemoryRegionReservationLoadTemplate()
82 inline Reservation MemoryRegionReservationLoad(GuestAddr addr, std::memory_order mem_order) { in MemoryRegionReservationLoad()
86 MemoryRegionReservation::Entry& GetEntry(GuestAddr addr) { in GetEntry()
99 void MemoryRegionReservation::SetOwner(GuestAddr aligned_addr, void* cpu) { in SetOwner()
110 MemoryRegionReservation::Entry* MemoryRegionReservation::TryLock(GuestAddr aligned_addr, in TryLock()
128 GuestAddr aligned_addr, in ReservationLoad()
147 GuestAddr aligned_addr, in ReservationExchange()
Dtranslation_cache_test.cc35 constexpr GuestAddr pc = 0x12345678; in TEST()
45 constexpr GuestAddr pc = 0x12345678; in TEST()
60 constexpr GuestAddr pc = 0x12345678; in TEST()
94 constexpr GuestAddr pc = 0x12345678; in TEST()
125 void TestWrappingWorker(TranslationCache* tc, GuestAddr pc) { in TestWrappingWorker()
155 void TestTranslationWorker(TranslationCache* tc, GuestAddr pc) { in TestTranslationWorker()
181 template <void(WorkerFunc)(TranslationCache*, GuestAddr)>
197 GuestAddr pc = 0x12345678; in TranslationCacheTestRunThreads()
208 constexpr GuestAddr pc = 0x12345678; in TEST()
222 constexpr GuestAddr pc = 0x12345678; in TEST()
[all …]
/frameworks/libs/binary_translation/guest_loader/
Dguest_loader_impl.h41 GuestAddr InitKernelArgs(GuestAddr guest_sp,
45 GuestAddr linker_base_addr,
46 GuestAddr main_executable_entry_point,
47 GuestAddr phdr,
49 GuestAddr ehdr_vdso,
/frameworks/libs/binary_translation/guest_loader/riscv64/
Dguest_loader_arch.cc36 GuestAddr InitKernelArgs(GuestAddr guest_sp, in InitKernelArgs()
40 GuestAddr linker_base_addr, in InitKernelArgs()
41 GuestAddr main_executable_entry_point, in InitKernelArgs()
42 GuestAddr phdr, in InitKernelArgs()
44 GuestAddr ehdr_vdso, in InitKernelArgs()

123456