• Home
  • Raw
  • Download

Lines Matching refs:uptr

47 uptr GetMmapGranularity() {  in GetMmapGranularity()
53 static uptr GetKernelAreaSize() { in GetKernelAreaSize()
55 const uptr gbyte = 1UL << 30; in GetKernelAreaSize()
60 uptr end, prot; in GetKernelAreaSize()
90 uptr GetMaxVirtualAddress() { in GetMaxVirtualAddress()
116 uptr res = (1ULL << 32) - 1; // 0xffffffff; in GetMaxVirtualAddress()
119 CHECK_LT(reinterpret_cast<uptr>(&res), res); in GetMaxVirtualAddress()
125 void *MmapOrDie(uptr size, const char *mem_type, bool raw_report) { in MmapOrDie()
127 uptr res = internal_mmap(nullptr, size, in MmapOrDie()
137 void UnmapOrDie(void *addr, uptr size) { in UnmapOrDie()
139 uptr res = internal_munmap(addr, size); in UnmapOrDie()
151 void *MmapAlignedOrDie(uptr size, uptr alignment, const char *mem_type) { in MmapAlignedOrDie()
154 uptr map_size = size + alignment; in MmapAlignedOrDie()
155 uptr map_res = (uptr)MmapOrDie(map_size, mem_type); in MmapAlignedOrDie()
156 uptr map_end = map_res + map_size; in MmapAlignedOrDie()
157 uptr res = map_res; in MmapAlignedOrDie()
160 uptr end = res + size; in MmapAlignedOrDie()
168 void *MmapNoReserveOrDie(uptr size, const char *mem_type) { in MmapNoReserveOrDie()
169 uptr PageSize = GetPageSizeCached(); in MmapNoReserveOrDie()
170 uptr p = internal_mmap(nullptr, in MmapNoReserveOrDie()
182 void *MmapFixedOrDie(uptr fixed_addr, uptr size) { in MmapFixedOrDie()
183 uptr PageSize = GetPageSizeCached(); in MmapFixedOrDie()
184 uptr p = internal_mmap((void*)(fixed_addr & ~(PageSize - 1)), in MmapFixedOrDie()
200 bool MprotectNoAccess(uptr addr, uptr size) { in MprotectNoAccess()
204 bool MprotectReadOnly(uptr addr, uptr size) { in MprotectReadOnly()
225 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile()
227 uptr res = internal_read(fd, buff, buff_size); in ReadFromFile()
235 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, uptr *bytes_written, in WriteToFile()
237 uptr res = internal_write(fd, buff, buff_size); in WriteToFile()
246 uptr res = internal_rename(oldpath, newpath); in RenameFile()
250 void *MapFileToMemory(const char *file_name, uptr *buff_size) { in MapFileToMemory()
253 uptr fsize = internal_filesize(fd); in MapFileToMemory()
254 CHECK_NE(fsize, (uptr)-1); in MapFileToMemory()
257 uptr map = internal_mmap(nullptr, *buff_size, PROT_READ, MAP_PRIVATE, fd, 0); in MapFileToMemory()
261 void *MapWritableFileToMemory(void *addr, uptr size, fd_t fd, OFF_T offset) { in MapWritableFileToMemory()
262 uptr flags = MAP_SHARED; in MapWritableFileToMemory()
264 uptr p = internal_mmap(addr, size, PROT_READ | PROT_WRITE, flags, fd, offset); in MapWritableFileToMemory()
274 static inline bool IntervalsAreSeparate(uptr start1, uptr end1, in IntervalsAreSeparate()
275 uptr start2, uptr end2) { in IntervalsAreSeparate()
285 bool MemoryRangeIsAvailable(uptr range_start, uptr range_end) { in MemoryRangeIsAvailable()
287 uptr start, end; in MemoryRangeIsAvailable()
301 uptr start, end; in DumpProcessMap()
325 void ReportFile::Write(const char *buffer, uptr length) { in Write()
336 bool GetCodeRangeForFile(const char *module, uptr *start, uptr *end) { in GetCodeRangeForFile()
337 uptr s, e, off, prot; in GetCodeRangeForFile()
353 uptr addr = (uptr)si->si_addr; in Create()
354 uptr pc, sp, bp; in Create()