Home
last modified time | relevance | path

Searched refs:GuestMapShadow (Results 1 – 9 of 9) sorted by relevance

/frameworks/libs/binary_translation/guest_os_primitives/
Dguest_map_shadow.cc63 GuestMapShadow* GuestMapShadow::GetInstance() { in GetInstance()
64 static GuestMapShadow g_map_shadow; in GetInstance()
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()
105 GuestMapShadow::GuestMapShadow() : protected_maps_(&arena_) { in GuestMapShadow() function in berberis::GuestMapShadow
110 GuestMapShadow::~GuestMapShadow() { in ~GuestMapShadow()
114 BitValue GuestMapShadow::GetExecutable(GuestAddr start, size_t size) const { in GetExecutable()
129 bool GuestMapShadow::IsExecutable(GuestAddr start, size_t size) const { in IsExecutable()
133 void GuestMapShadow::SetExecutable(GuestAddr start, size_t size) { in SetExecutable()
[all …]
Dguest_map_shadow_test.cc41 auto shadow = std::make_unique<GuestMapShadow>(); in TEST_F()
73 auto shadow = std::make_unique<GuestMapShadow>(); in TEST_F()
107 auto shadow = std::make_unique<GuestMapShadow>(); in TEST_F()
/frameworks/libs/binary_translation/kernel_api/
Dsys_mman_emulation.cc44 GuestMapShadow* shadow = GuestMapShadow::GetInstance(); in UpdateGuestProt()
82 GuestMapShadow::GetInstance()->ClearExecutable(ToGuestAddr(addr), length); in MunmapForGuest()
91 if (GuestMapShadow::GetInstance()->IntersectsWithProtectedMapping( in MprotectForGuest()
109 GuestMapShadow* shadow = GuestMapShadow::GetInstance(); in MremapForGuest()
Dopen_emulation.cc135 auto* maps_shadow = GuestMapShadow::GetInstance(); in OpenatProcSelfMapsForGuest()
/frameworks/libs/binary_translation/guest_os_primitives/include/berberis/guest_os_primitives/
Dguest_map_shadow.h36 class GuestMapShadow {
38 GuestMapShadow();
39 ~GuestMapShadow();
58 static GuestMapShadow* GetInstance();
/frameworks/libs/binary_translation/runtime/
Dexecute_guest_test.cc43 GuestMapShadow::GetInstance()->SetExecutable(ToGuestAddr(&code[0]), sizeof(code)); in TEST()
58 GuestMapShadow::GetInstance()->ClearExecutable(ToGuestAddr(&code[0]), sizeof(code)); in TEST()
Dberberis.cc34 return GuestMapShadow::GetInstance()->IsExecutable(pc, 1); in IsAddressGuestExecutable()
Dtranslator_riscv64.cc192 GuestMapShadow* guest_map_shadow = GuestMapShadow::GetInstance(); in TranslateRegion()
/frameworks/libs/binary_translation/native_bridge/
Dnative_bridge.cc324 berberis::GuestMapShadow::GetInstance()->AddProtectedMapping( in ProtectMappingsFromGuest()
488 if (!berberis::GuestMapShadow::GetInstance()->IsExecutable(guest_addr, 1)) { in native_bridge_getTrampolineForFunctionPointer()