Home
last modified time | relevance | path

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

/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_posix_libcdep.cpp303 static bool MmapFixed(uptr fixed_addr, uptr size, int additional_flags, in MmapFixed() argument
306 fixed_addr = RoundDownTo(fixed_addr, GetPageSizeCached()); in MmapFixed()
308 MmapNamed((void *)fixed_addr, size, PROT_READ | PROT_WRITE, in MmapFixed()
314 SanitizerToolName, size, size, fixed_addr, reserrno); in MmapFixed()
321 bool MmapFixedNoReserve(uptr fixed_addr, uptr size, const char *name) { in MmapFixedNoReserve() argument
322 return MmapFixed(fixed_addr, size, MAP_NORESERVE, name); in MmapFixedNoReserve()
325 bool MmapFixedSuperNoReserve(uptr fixed_addr, uptr size, const char *name) { in MmapFixedSuperNoReserve() argument
328 return MmapFixedNoReserve(fixed_addr, size, name); in MmapFixedSuperNoReserve()
330 return MmapFixed(fixed_addr, size, MAP_ALIGNED_SUPER, name); in MmapFixedSuperNoReserve()
332 bool r = MmapFixedNoReserve(fixed_addr, size, name); in MmapFixedSuperNoReserve()
[all …]
Dsanitizer_win.cpp224 bool MmapFixedNoReserve(uptr fixed_addr, uptr size, const char *name) { in MmapFixedNoReserve() argument
232 void *p = VirtualAlloc((LPVOID)fixed_addr, size, MEM_RESERVE, PAGE_READWRITE); in MmapFixedNoReserve()
234 void *p = VirtualAlloc((LPVOID)fixed_addr, size, MEM_RESERVE | MEM_COMMIT, in MmapFixedNoReserve()
240 SanitizerToolName, size, size, fixed_addr, GetLastError()); in MmapFixedNoReserve()
246 bool MmapFixedSuperNoReserve(uptr fixed_addr, uptr size, const char *name) { in MmapFixedSuperNoReserve() argument
248 return MmapFixedNoReserve(fixed_addr, size, name); in MmapFixedSuperNoReserve()
253 void *MmapFixedOrDie(uptr fixed_addr, uptr size, const char *name) { in MmapFixedOrDie() argument
254 void *p = VirtualAlloc((LPVOID)fixed_addr, size, in MmapFixedOrDie()
259 fixed_addr); in MmapFixedOrDie()
267 uptr ReservedAddressRange::Map(uptr fixed_addr, uptr size, const char *name) { in Map() argument
[all …]
Dsanitizer_posix.cpp114 static void *MmapFixedImpl(uptr fixed_addr, uptr size, bool tolerate_enomem, in MmapFixedImpl() argument
117 fixed_addr = RoundDownTo(fixed_addr, GetPageSizeCached()); in MmapFixedImpl()
118 uptr p = MmapNamed((void *)fixed_addr, size, PROT_READ | PROT_WRITE, in MmapFixedImpl()
126 fixed_addr); in MmapFixedImpl()
133 void *MmapFixedOrDie(uptr fixed_addr, uptr size, const char *name) { in MmapFixedOrDie() argument
134 return MmapFixedImpl(fixed_addr, size, false /*tolerate_enomem*/, name); in MmapFixedOrDie()
137 void *MmapFixedOrDieOnFatalError(uptr fixed_addr, uptr size, const char *name) { in MmapFixedOrDieOnFatalError() argument
138 return MmapFixedImpl(fixed_addr, size, true /*tolerate_enomem*/, name); in MmapFixedOrDieOnFatalError()
Dsanitizer_fuchsia.cpp216 uptr fixed_addr) { in Init() argument
236 static uptr DoMmapFixedOrDie(zx_handle_t vmar, uptr fixed_addr, uptr map_size, in DoMmapFixedOrDie() argument
238 uptr offset = fixed_addr - reinterpret_cast<uptr>(base); in DoMmapFixedOrDie()
265 uptr ReservedAddressRange::Map(uptr fixed_addr, uptr map_size, in Map() argument
267 return DoMmapFixedOrDie(os_handle_, fixed_addr, map_size, base_, in Map()
271 uptr ReservedAddressRange::MapOrDie(uptr fixed_addr, uptr map_size, in MapOrDie() argument
273 return DoMmapFixedOrDie(os_handle_, fixed_addr, map_size, base_, in MapOrDie()
313 void *MmapFixedNoAccess(uptr fixed_addr, uptr size, const char *name) { in MmapFixedNoAccess() argument
Dsanitizer_common.h101 bool MmapFixedNoReserve(uptr fixed_addr, uptr size, const char *name = nullptr)
103 bool MmapFixedSuperNoReserve(uptr fixed_addr, uptr size,
106 void *MmapFixedOrDie(uptr fixed_addr, uptr size, const char *name = nullptr);
109 void *MmapFixedOrDieOnFatalError(uptr fixed_addr, uptr size,
111 void *MmapFixedNoAccess(uptr fixed_addr, uptr size, const char *name = nullptr);
170 uptr Init(uptr size, const char *name = nullptr, uptr fixed_addr = 0);
172 uptr Map(uptr fixed_addr, uptr size, const char *name = nullptr);
173 uptr MapOrDie(uptr fixed_addr, uptr size, const char *name = nullptr);
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_win.cc171 void *MmapFixedNoReserve(uptr fixed_addr, uptr size, const char *name) { in MmapFixedNoReserve() argument
179 void *p = VirtualAlloc((LPVOID)fixed_addr, size, MEM_RESERVE, PAGE_READWRITE); in MmapFixedNoReserve()
181 void *p = VirtualAlloc((LPVOID)fixed_addr, size, MEM_RESERVE | MEM_COMMIT, in MmapFixedNoReserve()
187 SanitizerToolName, size, size, fixed_addr, GetLastError()); in MmapFixedNoReserve()
193 void *MmapFixedOrDie(uptr fixed_addr, uptr size) { in MmapFixedOrDie() argument
194 void *p = VirtualAlloc((LPVOID)fixed_addr, size, in MmapFixedOrDie()
199 fixed_addr); in MmapFixedOrDie()
210 void *MmapFixedNoAccess(uptr fixed_addr, uptr size, const char *name) { in MmapFixedNoAccess() argument
212 void *res = VirtualAlloc((LPVOID)fixed_addr, size, in MmapFixedNoAccess()
217 SanitizerToolName, size, size, fixed_addr, GetLastError()); in MmapFixedNoAccess()
Dsanitizer_posix_libcdep.cc259 void *MmapFixedNoReserve(uptr fixed_addr, uptr size, const char *name) { in MmapFixedNoReserve() argument
265 uptr p = internal_mmap((void *)(fixed_addr & ~(PageSize - 1)), in MmapFixedNoReserve()
272 SanitizerToolName, size, size, fixed_addr, reserrno); in MmapFixedNoReserve()
277 void *MmapFixedNoAccess(uptr fixed_addr, uptr size, const char *name) { in MmapFixedNoAccess() argument
282 return (void *)internal_mmap((void *)fixed_addr, size, PROT_NONE, flags, fd, in MmapFixedNoAccess()
Dsanitizer_posix.cc182 void *MmapFixedOrDie(uptr fixed_addr, uptr size) { in MmapFixedOrDie() argument
184 uptr p = internal_mmap((void*)(fixed_addr & ~(PageSize - 1)), in MmapFixedOrDie()
193 fixed_addr); in MmapFixedOrDie()
Dsanitizer_common.h88 void *MmapFixedNoReserve(uptr fixed_addr, uptr size,
91 void *MmapFixedOrDie(uptr fixed_addr, uptr size);
92 void *MmapFixedNoAccess(uptr fixed_addr, uptr size, const char *name = nullptr);
/external/ipsec-tools/src/racoon/
Dracoonctl.c221 char * fixed_addr __P((char *, char *, int));
1156 p = fixed_addr(_addr1_, _addr2_, 22);
1160 p = fixed_addr(_addr1_, _addr2_, 45);
1171 p = fixed_addr(_addr1_, _addr2_, 22);
1175 p = fixed_addr(_addr1_, _addr2_, 45);
1246 fixed_addr(_addr1_, _addr2_, 45)
1247 : fixed_addr(_addr1_, _addr2_, 22));
1253 fixed_addr(_addr1_, _addr2_, 45)
1254 : fixed_addr(_addr1_, _addr2_, 22));
1520 fixed_addr(addr, port, len) in fixed_addr() function