| /freebsd-12.1/contrib/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_posix_libcdep.cc | 333 bool MmapFixedNoReserve(uptr fixed_addr, uptr size, const char *name) { in MmapFixedNoReserve() argument 339 uptr p = internal_mmap((void *)(fixed_addr & ~(PageSize - 1)), in MmapFixedNoReserve() 346 SanitizerToolName, size, size, fixed_addr, reserrno); in MmapFixedNoReserve() 353 uptr ReservedAddressRange::Init(uptr size, const char *name, uptr fixed_addr) { in Init() argument 359 base_ = fixed_addr ? MmapFixedNoAccess(fixed_addr, size) : MmapNoAccess(size); in Init() 368 uptr ReservedAddressRange::Map(uptr fixed_addr, uptr size) { in Map() argument 369 return reinterpret_cast<uptr>(MmapFixedOrDieOnFatalError(fixed_addr, size)); in Map() 372 uptr ReservedAddressRange::MapOrDie(uptr fixed_addr, uptr size) { in MapOrDie() argument 373 return reinterpret_cast<uptr>(MmapFixedOrDie(fixed_addr, size)); in MapOrDie() 387 void *MmapFixedNoAccess(uptr fixed_addr, uptr size, const char *name) { in MmapFixedNoAccess() argument [all …]
|
| H A D | sanitizer_win.cc | 233 void *MmapFixedOrDie(uptr fixed_addr, uptr size) { in MmapFixedOrDie() argument 234 void *p = VirtualAlloc((LPVOID)fixed_addr, size, in MmapFixedOrDie() 239 fixed_addr); in MmapFixedOrDie() 247 uptr ReservedAddressRange::Map(uptr fixed_addr, uptr size) { in Map() argument 251 uptr ReservedAddressRange::MapOrDie(uptr fixed_addr, uptr size) { in MapOrDie() argument 252 return reinterpret_cast<uptr>(MmapFixedOrDie(fixed_addr, size)); in MapOrDie() 264 void *MmapFixedOrDieOnFatalError(uptr fixed_addr, uptr size) { in MmapFixedOrDieOnFatalError() argument 265 void *p = VirtualAlloc((LPVOID)fixed_addr, size, in MmapFixedOrDieOnFatalError() 270 fixed_addr); in MmapFixedOrDieOnFatalError() 282 base_ = fixed_addr ? MmapFixedNoAccess(fixed_addr, size) : MmapNoAccess(size); in Init() [all …]
|
| H A D | sanitizer_posix.cc | 120 void *MmapFixedImpl(uptr fixed_addr, uptr size, bool tolerate_enomem) { in MmapFixedImpl() argument 122 uptr p = internal_mmap((void*)(fixed_addr & ~(PageSize - 1)), in MmapFixedImpl() 133 fixed_addr); in MmapFixedImpl() 140 void *MmapFixedOrDie(uptr fixed_addr, uptr size) { in MmapFixedOrDie() argument 141 return MmapFixedImpl(fixed_addr, size, false /*tolerate_enomem*/); in MmapFixedOrDie() 144 void *MmapFixedOrDieOnFatalError(uptr fixed_addr, uptr size) { in MmapFixedOrDieOnFatalError() argument 145 return MmapFixedImpl(fixed_addr, size, true /*tolerate_enomem*/); in MmapFixedOrDieOnFatalError()
|
| H A D | sanitizer_fuchsia.cc | 207 uptr fixed_addr) { in Init() argument 227 static uptr DoMmapFixedOrDie(zx_handle_t vmar, uptr fixed_addr, uptr map_size, in DoMmapFixedOrDie() argument 229 uptr offset = fixed_addr - reinterpret_cast<uptr>(base); in DoMmapFixedOrDie() 256 uptr ReservedAddressRange::Map(uptr fixed_addr, uptr map_size) { in Map() argument 257 return DoMmapFixedOrDie(os_handle_, fixed_addr, map_size, base_, in Map() 261 uptr ReservedAddressRange::MapOrDie(uptr fixed_addr, uptr map_size) { in MapOrDie() argument 262 return DoMmapFixedOrDie(os_handle_, fixed_addr, map_size, base_, in MapOrDie() 302 void *MmapFixedNoAccess(uptr fixed_addr, uptr size, const char *name) { in MmapFixedNoAccess() argument
|
| H A D | sanitizer_common.h | 102 bool MmapFixedNoReserve(uptr fixed_addr, uptr size, const char *name = nullptr) 105 void *MmapFixedOrDie(uptr fixed_addr, uptr size); 108 void *MmapFixedOrDieOnFatalError(uptr fixed_addr, uptr size); 109 void *MmapFixedNoAccess(uptr fixed_addr, uptr size, const char *name = nullptr); 143 uptr Init(uptr size, const char *name = nullptr, uptr fixed_addr = 0); 144 uptr Map(uptr fixed_addr, uptr size); 145 uptr MapOrDie(uptr fixed_addr, uptr size);
|