• Home
  • Raw
  • Download

Lines Matching refs:uptr

37 uptr GetPageSize() {  in GetPageSize()
43 uptr GetMmapGranularity() { in GetMmapGranularity()
49 uptr GetMaxVirtualAddress() { in GetMaxVirtualAddress()
52 return (uptr)si.lpMaximumApplicationAddress; in GetMaxVirtualAddress()
59 uptr internal_getpid() { in internal_getpid()
65 uptr GetTid() { in GetTid()
69 uptr GetThreadSelf() { in GetThreadSelf()
74 void GetThreadStackTopAndBottom(bool at_initialization, uptr *stack_top, in GetThreadStackTopAndBottom()
75 uptr *stack_bottom) { in GetThreadStackTopAndBottom()
83 *stack_top = (uptr)mbi.BaseAddress + mbi.RegionSize; in GetThreadStackTopAndBottom()
84 *stack_bottom = (uptr)mbi.AllocationBase; in GetThreadStackTopAndBottom()
88 void *MmapOrDie(uptr size, const char *mem_type, bool raw_report) { in MmapOrDie()
96 void UnmapOrDie(void *addr, uptr size) { in UnmapOrDie()
117 void *MmapAlignedOrDie(uptr size, uptr alignment, const char *mem_type) { in MmapAlignedOrDie()
124 uptr mapped_addr = in MmapAlignedOrDie()
125 (uptr)VirtualAlloc(0, size, MEM_RESERVE | MEM_COMMIT, PAGE_READWRITE); in MmapAlignedOrDie()
145 (uptr)VirtualAlloc(0, size + alignment, MEM_RESERVE, PAGE_NOACCESS); in MmapAlignedOrDie()
151 uptr aligned_addr = RoundUpTo(mapped_addr, alignment); in MmapAlignedOrDie()
160 mapped_addr = (uptr)VirtualAlloc((void *)aligned_addr, size, in MmapAlignedOrDie()
171 void *MmapFixedNoReserve(uptr fixed_addr, uptr size, const char *name) { in MmapFixedNoReserve()
193 void *MmapFixedOrDie(uptr fixed_addr, uptr size) { in MmapFixedOrDie()
205 void *MmapNoReserveOrDie(uptr size, const char *mem_type) { in MmapNoReserveOrDie()
210 void *MmapFixedNoAccess(uptr fixed_addr, uptr size, const char *name) { in MmapFixedNoAccess()
221 void *MmapNoAccess(uptr size) { in MmapNoAccess()
226 bool MprotectNoAccess(uptr addr, uptr size) { in MprotectNoAccess()
232 void FlushUnneededShadowMemory(uptr addr, uptr size) { in FlushUnneededShadowMemory()
237 void NoHugePagesInRegion(uptr addr, uptr size) { in NoHugePagesInRegion()
241 void DontDumpShadowMemory(uptr addr, uptr length) { in DontDumpShadowMemory()
246 bool MemoryRangeIsAvailable(uptr range_start, uptr range_end) { in MemoryRangeIsAvailable()
250 (uptr)mbi.BaseAddress + mbi.RegionSize >= range_end; in MemoryRangeIsAvailable()
253 void *MapFileToMemory(const char *file_name, uptr *buff_size) { in MapFileToMemory()
257 void *MapWritableFileToMemory(void *addr, uptr size, fd_t fd, OFF_T offset) { in MapWritableFileToMemory()
307 uptr base_address;
308 uptr end_address;
326 uptr num_modules = modules.size(); in DumpProcessMap()
369 void SetStackSizeLimitInBytes(uptr limit) { in SetStackSizeLimitInBytes()
413 static uptr GetPreferredBase(const char *modname) { in GetPreferredBase()
421 uptr bytes_read; in GetPreferredBase()
457 return (uptr)pe_header->ImageBase; in GetPreferredBase()
467 uptr modules_buffer_size = sizeof(HMODULE) * 256; in init()
502 uptr base_address = (uptr)mi.lpBaseOfDll; in init()
503 uptr end_address = (uptr)mi.lpBaseOfDll + mi.SizeOfImage; in init()
509 uptr preferred_base = GetPreferredBase(&module_name[0]); in init()
510 uptr adjusted_base = base_address - preferred_base; in init()
533 for (uptr i = 0; i < atexit_functions.size(); ++i) { in RunAtexit()
568 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile()
589 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, uptr *bytes_written, in WriteToFile()
596 uptr dummy_bytes_written; in WriteToFile()
627 uptr internal_sched_yield() { in internal_sched_yield()
636 uptr internal_ftruncate(fd_t fd, uptr size) { in internal_ftruncate()
640 uptr GetRSS() { in GetRSS()
648 const uptr LOCK_UNINITIALIZED = 0;
649 const uptr LOCK_READY = (uptr)-1;
691 uptr GetTlsSize() { in GetTlsSize()
698 void GetThreadStackAndTls(bool main, uptr *stk_addr, uptr *stk_size, in GetThreadStackAndTls()
699 uptr *tls_addr, uptr *tls_size) { in GetThreadStackAndTls()
706 uptr stack_top, stack_bottom; in GetThreadStackAndTls()
716 void BufferedStackTrace::SlowUnwindStack(uptr pc, u32 max_depth) { in SlowUnwindStack()
727 uptr pc_location = LocatePcInTrace(pc); in SlowUnwindStack()
731 void BufferedStackTrace::SlowUnwindStackWithContext(uptr pc, void *context, in SlowUnwindStackWithContext()
755 trace_buffer[size++] = (uptr)stack_frame.AddrPC.Offset; in SlowUnwindStackWithContext()
760 void ReportFile::Write(const char *buffer, uptr length) { in Write()
789 bool IsAccessibleMemoryRange(uptr beg, uptr size) { in IsAccessibleMemoryRange()
792 uptr page_size = si.dwPageSize; in IsAccessibleMemoryRange()
793 uptr page_mask = ~(page_size - 1); in IsAccessibleMemoryRange()
795 for (uptr page = beg & page_mask, end = (beg + size - 1) & page_mask; in IsAccessibleMemoryRange()
818 uptr pc = (uptr)exception_record->ExceptionAddress; in Create()
820 uptr bp = (uptr)context_record->Rbp; in Create()
821 uptr sp = (uptr)context_record->Rsp; in Create()
823 uptr bp = (uptr)context_record->Ebp; in Create()
824 uptr sp = (uptr)context_record->Esp; in Create()
826 uptr access_addr = exception_record->ExceptionInformation[1]; in Create()
843 uptr ReadBinaryName(/*out*/char *buf, uptr buf_len) { in ReadBinaryName()
850 uptr ReadLongProcessName(/*out*/char *buf, uptr buf_len) { in ReadLongProcessName()