Home
last modified time | relevance | path

Searched refs:fixed_addr (Results 1 – 7 of 7) sorted by relevance

/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_posix_libcdep.cpp304 fixed_addr = RoundDownTo(fixed_addr, GetPageSizeCached()); in MmapFixed()
312 SanitizerToolName, size, size, fixed_addr, reserrno); in MmapFixed()
320 return MmapFixed(fixed_addr, size, MAP_NORESERVE, name); in MmapFixedNoReserve()
326 return MmapFixedNoReserve(fixed_addr, size, name); in MmapFixedSuperNoReserve()
328 return MmapFixed(fixed_addr, size, MAP_ALIGNED_SUPER, name); in MmapFixedSuperNoReserve()
330 bool r = MmapFixedNoReserve(fixed_addr, size, name); in MmapFixedSuperNoReserve()
332 SetShadowRegionHugePageMode(fixed_addr, size); in MmapFixedSuperNoReserve()
338 base_ = fixed_addr ? MmapFixedNoAccess(fixed_addr, size, name) in Init()
350 MmapFixedOrDieOnFatalError(fixed_addr, size, name)); in Map()
353 uptr ReservedAddressRange::MapOrDie(uptr fixed_addr, uptr size, in MapOrDie() argument
[all …]
H A Dsanitizer_win.cpp243 bool ZeroMmapFixedRegion(uptr fixed_addr, uptr size) { in ZeroMmapFixedRegion() argument
244 internal_memset((void*) fixed_addr, 0, size); in ZeroMmapFixedRegion()
272 return MmapFixedNoReserve(fixed_addr, size, name); in MmapFixedSuperNoReserve()
278 void *p = VirtualAlloc((LPVOID)fixed_addr, size, in MmapFixedOrDie()
283 fixed_addr); in MmapFixedOrDie()
295 uptr ReservedAddressRange::MapOrDie(uptr fixed_addr, uptr size, in MapOrDie() argument
297 return reinterpret_cast<uptr>(MmapFixedOrDie(fixed_addr, size)); in MapOrDie()
310 void *p = VirtualAlloc((LPVOID)fixed_addr, size, in MmapFixedOrDieOnFatalError()
315 fixed_addr); in MmapFixedOrDieOnFatalError()
327 base_ = fixed_addr ? MmapFixedNoAccess(fixed_addr, size) : MmapNoAccess(size); in Init()
[all …]
H A Dsanitizer_posix.cpp117 static void *MmapFixedImpl(uptr fixed_addr, uptr size, bool tolerate_enomem, in MmapFixedImpl() argument
120 fixed_addr = RoundDownTo(fixed_addr, GetPageSizeCached()); in MmapFixedImpl()
121 uptr p = MmapNamed((void *)fixed_addr, size, PROT_READ | PROT_WRITE, in MmapFixedImpl()
129 fixed_addr); in MmapFixedImpl()
136 void *MmapFixedOrDie(uptr fixed_addr, uptr size, const char *name) { in MmapFixedOrDie() argument
137 return MmapFixedImpl(fixed_addr, size, false /*tolerate_enomem*/, name); in MmapFixedOrDie()
140 void *MmapFixedOrDieOnFatalError(uptr fixed_addr, uptr size, const char *name) { in MmapFixedOrDieOnFatalError() argument
141 return MmapFixedImpl(fixed_addr, size, true /*tolerate_enomem*/, name); in MmapFixedOrDieOnFatalError()
H A Dsanitizer_fuchsia.cpp179 uptr fixed_addr) { in Init() argument
198 static uptr DoMmapFixedOrDie(zx_handle_t vmar, uptr fixed_addr, uptr map_size, in DoMmapFixedOrDie() argument
200 uptr offset = fixed_addr - reinterpret_cast<uptr>(base); in DoMmapFixedOrDie()
227 uptr ReservedAddressRange::Map(uptr fixed_addr, uptr map_size, in Map() argument
229 return DoMmapFixedOrDie(os_handle_, fixed_addr, map_size, base_, name_, in Map()
233 uptr ReservedAddressRange::MapOrDie(uptr fixed_addr, uptr map_size, in MapOrDie() argument
235 return DoMmapFixedOrDie(os_handle_, fixed_addr, map_size, base_, name_, true); in MapOrDie()
275 void *MmapFixedNoAccess(uptr fixed_addr, uptr size, const char *name) { in MmapFixedNoAccess() argument
H A Dsanitizer_common.h100 bool MmapFixedNoReserve(uptr fixed_addr, uptr size, const char *name = nullptr)
102 bool MmapFixedSuperNoReserve(uptr fixed_addr, uptr size,
105 void *MmapFixedOrDie(uptr fixed_addr, uptr size, const char *name = nullptr);
108 void *MmapFixedOrDieOnFatalError(uptr fixed_addr, uptr size,
110 void *MmapFixedNoAccess(uptr fixed_addr, uptr size, const char *name = nullptr);
125 bool ZeroMmapFixedRegion(uptr fixed_addr, uptr size) WARN_UNUSED_RESULT;
183 uptr Init(uptr size, const char *name = nullptr, uptr fixed_addr = 0);
185 uptr Map(uptr fixed_addr, uptr size, const char *name = nullptr);
186 uptr MapOrDie(uptr fixed_addr, uptr size, const char *name = nullptr);
/llvm-project-15.0.7/lldb/source/DataFormatters/
H A DCXXFunctionPointer.cpp54 addr_t fixed_addr = abi_sp->FixCodeAddress(func_ptr_address); in CXXFunctionPointerSummaryProvider() local
55 if (fixed_addr != func_ptr_address) { in CXXFunctionPointerSummaryProvider()
57 test_address.SetLoadAddress(fixed_addr, target); in CXXFunctionPointerSummaryProvider()
61 addrsize * 2, fixed_addr); in CXXFunctionPointerSummaryProvider()
/llvm-project-15.0.7/lldb/source/Target/
H A DTarget.cpp1740 Address fixed_addr = addr; in ReadMemory() local
1743 fixed_addr.SetLoadAddress(abi->FixAnyAddress(addr.GetLoadAddress(this)), in ReadMemory()
1756 if (!fixed_addr.IsSectionOffset()) { in ReadMemory()
1762 fixed_addr.GetOffset(); // "fixed_addr" doesn't have a section, so in ReadMemory()
1771 fixed_addr.GetOffset(); // "fixed_addr" doesn't have a section, so in ReadMemory()
1777 resolved_addr = fixed_addr; in ReadMemory()