Lines Matching refs:uptr
46 uptr GetMmapGranularity() { in GetMmapGranularity()
52 static uptr GetKernelAreaSize() { in GetKernelAreaSize()
54 const uptr gbyte = 1UL << 30; in GetKernelAreaSize()
59 uptr end, prot; in GetKernelAreaSize()
89 uptr GetMaxVirtualAddress() { in GetMaxVirtualAddress()
106 uptr res = (1ULL << 32) - 1; // 0xffffffff; in GetMaxVirtualAddress()
109 CHECK_LT(reinterpret_cast<uptr>(&res), res); in GetMaxVirtualAddress()
114 void *MmapOrDie(uptr size, const char *mem_type) { in MmapOrDie()
116 uptr res = internal_mmap(0, size, in MmapOrDie()
139 void UnmapOrDie(void *addr, uptr size) { in UnmapOrDie()
141 uptr res = internal_munmap(addr, size); in UnmapOrDie()
150 void *MmapNoReserveOrDie(uptr size, const char *mem_type) { in MmapNoReserveOrDie()
151 uptr PageSize = GetPageSizeCached(); in MmapNoReserveOrDie()
152 uptr p = internal_mmap(0, in MmapNoReserveOrDie()
168 void *MmapFixedNoReserve(uptr fixed_addr, uptr size) { in MmapFixedNoReserve()
169 uptr PageSize = GetPageSizeCached(); in MmapFixedNoReserve()
170 uptr p = internal_mmap((void*)(fixed_addr & ~(PageSize - 1)), in MmapFixedNoReserve()
184 void *MmapFixedOrDie(uptr fixed_addr, uptr size) { in MmapFixedOrDie()
185 uptr PageSize = GetPageSizeCached(); in MmapFixedOrDie()
186 uptr p = internal_mmap((void*)(fixed_addr & ~(PageSize - 1)), in MmapFixedOrDie()
202 void *MmapNoAccess(uptr fixed_addr, uptr size) { in MmapNoAccess()
209 bool MprotectNoAccess(uptr addr, uptr size) { in MprotectNoAccess()
230 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile()
232 uptr res = internal_read(fd, buff, buff_size); in ReadFromFile()
240 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, uptr *bytes_written, in WriteToFile()
242 uptr res = internal_write(fd, buff, buff_size); in WriteToFile()
251 uptr res = internal_rename(oldpath, newpath); in RenameFile()
255 void *MapFileToMemory(const char *file_name, uptr *buff_size) { in MapFileToMemory()
258 uptr fsize = internal_filesize(fd); in MapFileToMemory()
259 CHECK_NE(fsize, (uptr)-1); in MapFileToMemory()
262 uptr map = internal_mmap(0, *buff_size, PROT_READ, MAP_PRIVATE, fd, 0); in MapFileToMemory()
266 void *MapWritableFileToMemory(void *addr, uptr size, fd_t fd, uptr offset) { in MapWritableFileToMemory()
267 uptr flags = MAP_SHARED; in MapWritableFileToMemory()
269 uptr p = internal_mmap(addr, size, PROT_READ | PROT_WRITE, flags, fd, offset); in MapWritableFileToMemory()
279 static inline bool IntervalsAreSeparate(uptr start1, uptr end1, in IntervalsAreSeparate()
280 uptr start2, uptr end2) { in IntervalsAreSeparate()
290 bool MemoryRangeIsAvailable(uptr range_start, uptr range_end) { in MemoryRangeIsAvailable()
292 uptr start, end; in MemoryRangeIsAvailable()
305 uptr start, end; in DumpProcessMap()
325 uptr name_len = internal_strlen(name); in FindPathToBinary()
330 uptr prefix_len = end - beg; in FindPathToBinary()
353 void ReportFile::Write(const char *buffer, uptr length) { in Write()
364 bool GetCodeRangeForFile(const char *module, uptr *start, uptr *end) { in GetCodeRangeForFile()
365 uptr s, e, off, prot; in GetCodeRangeForFile()
380 uptr addr = (uptr)((siginfo_t*)siginfo)->si_addr; in Create()
381 uptr pc, sp, bp; in Create()