| /freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_posix_libcdep.cpp | 381 static bool MmapFixed(uptr fixed_addr, uptr size, int additional_flags, in MmapFixed() argument 384 fixed_addr = RoundDownTo(fixed_addr, GetPageSizeCached()); in MmapFixed() 386 MmapNamed((void *)fixed_addr, size, PROT_READ | PROT_WRITE, in MmapFixed() 393 SanitizerToolName, size, size, (void *)fixed_addr, reserrno); in MmapFixed() 400 bool MmapFixedNoReserve(uptr fixed_addr, uptr size, const char *name) { in MmapFixedNoReserve() argument 401 return MmapFixed(fixed_addr, size, MAP_NORESERVE, name); in MmapFixedNoReserve() 404 bool MmapFixedSuperNoReserve(uptr fixed_addr, uptr size, const char *name) { in MmapFixedSuperNoReserve() argument 407 return MmapFixedNoReserve(fixed_addr, size, name); in MmapFixedSuperNoReserve() 409 return MmapFixed(fixed_addr, size, MAP_ALIGNED_SUPER, name); in MmapFixedSuperNoReserve() 411 bool r = MmapFixedNoReserve(fixed_addr, size, name); in MmapFixedSuperNoReserve() [all …]
|
| H A D | sanitizer_win.cpp | 257 bool ZeroMmapFixedRegion(uptr fixed_addr, uptr size) { in ZeroMmapFixedRegion() argument 258 internal_memset((void*) fixed_addr, 0, size); in ZeroMmapFixedRegion() 262 bool MmapFixedNoReserve(uptr fixed_addr, uptr size, const char *name) { in MmapFixedNoReserve() argument 270 void *p = VirtualAlloc((LPVOID)fixed_addr, size, MEM_RESERVE, PAGE_READWRITE); in MmapFixedNoReserve() 272 void *p = VirtualAlloc((LPVOID)fixed_addr, size, MEM_RESERVE | MEM_COMMIT, in MmapFixedNoReserve() 278 SanitizerToolName, size, size, fixed_addr, GetLastError()); in MmapFixedNoReserve() 284 bool MmapFixedSuperNoReserve(uptr fixed_addr, uptr size, const char *name) { in MmapFixedSuperNoReserve() argument 286 return MmapFixedNoReserve(fixed_addr, size, name); in MmapFixedSuperNoReserve() 291 void *MmapFixedOrDie(uptr fixed_addr, uptr size, const char *name) { in MmapFixedOrDie() argument 292 void *p = VirtualAlloc((LPVOID)fixed_addr, size, in MmapFixedOrDie() [all …]
|
| H A D | sanitizer_posix.cpp | 122 static void *MmapFixedImpl(uptr fixed_addr, uptr size, bool tolerate_enomem, in MmapFixedImpl() argument 125 fixed_addr = RoundDownTo(fixed_addr, GetPageSizeCached()); in MmapFixedImpl() 126 uptr p = MmapNamed((void *)fixed_addr, size, PROT_READ | PROT_WRITE, in MmapFixedImpl() 134 (void *)fixed_addr); in MmapFixedImpl() 141 void *MmapFixedOrDie(uptr fixed_addr, uptr size, const char *name) { in MmapFixedOrDie() argument 142 return MmapFixedImpl(fixed_addr, size, false /*tolerate_enomem*/, name); in MmapFixedOrDie() 145 void *MmapFixedOrDieOnFatalError(uptr fixed_addr, uptr size, const char *name) { in MmapFixedOrDieOnFatalError() argument 146 return MmapFixedImpl(fixed_addr, size, true /*tolerate_enomem*/, name); in MmapFixedOrDieOnFatalError()
|
| H A D | sanitizer_fuchsia.cpp | 230 uptr fixed_addr) { in Init() argument 249 static uptr DoMmapFixedOrDie(zx_handle_t vmar, uptr fixed_addr, uptr map_size, in DoMmapFixedOrDie() argument 251 uptr offset = fixed_addr - reinterpret_cast<uptr>(base); in DoMmapFixedOrDie() 278 uptr ReservedAddressRange::Map(uptr fixed_addr, uptr map_size, in Map() argument 280 return DoMmapFixedOrDie(os_handle_, fixed_addr, map_size, base_, in Map() 284 uptr ReservedAddressRange::MapOrDie(uptr fixed_addr, uptr map_size, in MapOrDie() argument 286 return DoMmapFixedOrDie(os_handle_, fixed_addr, map_size, base_, in MapOrDie() 332 void *MmapFixedNoAccess(uptr fixed_addr, uptr size, const char *name) { in MmapFixedNoAccess() argument
|
| H A D | sanitizer_common.h | 99 bool MmapFixedNoReserve(uptr fixed_addr, uptr size, const char *name = nullptr) 101 bool MmapFixedSuperNoReserve(uptr fixed_addr, uptr size, 104 void *MmapFixedOrDie(uptr fixed_addr, uptr size, const char *name = nullptr); 107 void *MmapFixedOrDieOnFatalError(uptr fixed_addr, uptr size, 109 void *MmapFixedNoAccess(uptr fixed_addr, uptr size, const char *name = nullptr); 125 bool ZeroMmapFixedRegion(uptr fixed_addr, uptr size) WARN_UNUSED_RESULT; 184 uptr Init(uptr size, const char *name = nullptr, uptr fixed_addr = 0); 186 uptr Map(uptr fixed_addr, uptr size, const char *name = nullptr); 187 uptr MapOrDie(uptr fixed_addr, uptr size, const char *name = nullptr);
|
| /freebsd/contrib/llvm-project/lldb/source/DataFormatters/ |
| H A D | CXXFunctionPointer.cpp | 52 addr_t fixed_addr = abi_sp->FixCodeAddress(func_ptr_address); in CXXFunctionPointerSummaryProvider() local 53 if (fixed_addr != func_ptr_address) { in CXXFunctionPointerSummaryProvider() 55 test_address.SetLoadAddress(fixed_addr, target); in CXXFunctionPointerSummaryProvider() 59 addrsize * 2, fixed_addr); in CXXFunctionPointerSummaryProvider()
|
| /freebsd/contrib/llvm-project/lldb/source/Target/ |
| H A D | Target.cpp | 1993 Address fixed_addr = addr; in ReadMemory() local 1996 fixed_addr.SetLoadAddress(abi->FixAnyAddress(addr.GetLoadAddress(this)), in ReadMemory() 2009 if (!fixed_addr.IsSectionOffset()) { in ReadMemory() 2015 fixed_addr.GetOffset(); // "fixed_addr" doesn't have a section, so in ReadMemory() 2024 fixed_addr.GetOffset(); // "fixed_addr" doesn't have a section, so in ReadMemory() 2030 resolved_addr = fixed_addr; in ReadMemory()
|