• Home
  • Raw
  • Download

Lines Matching refs:uptr

36 const uptr kWordSize = SANITIZER_WORDSIZE / 8;
37 const uptr kWordSizeInBits = 8 * kWordSize;
40 const uptr kCacheLineSize = 128;
42 const uptr kCacheLineSize = 64;
45 const uptr kMaxPathLength = 4096;
48 static const uptr kMaxNumberOfModules = 1 << 14;
50 const uptr kMaxThreadStackSize = 1 << 30; // 1Gb
52 static const uptr kErrorMessageBufferSize = 1 << 16;
68 uptr GetPageSize();
69 uptr GetPageSizeCached();
70 uptr GetMmapGranularity();
71 uptr GetMaxVirtualAddress();
73 uptr GetTid();
74 uptr GetThreadSelf();
75 void GetThreadStackTopAndBottom(bool at_initialization, uptr *stack_top,
76 uptr *stack_bottom);
77 void GetThreadStackAndTls(bool main, uptr *stk_addr, uptr *stk_size,
78 uptr *tls_addr, uptr *tls_size);
81 void *MmapOrDie(uptr size, const char *mem_type, bool raw_report = false);
82 INLINE void *MmapOrDieQuietly(uptr size, const char *mem_type) { in MmapOrDieQuietly()
85 void UnmapOrDie(void *addr, uptr size);
86 void *MmapFixedNoReserve(uptr fixed_addr, uptr size,
88 void *MmapNoReserveOrDie(uptr size, const char *mem_type);
89 void *MmapFixedOrDie(uptr fixed_addr, uptr size);
90 void *MmapNoAccess(uptr fixed_addr, uptr size, const char *name = nullptr);
92 void *MmapAlignedOrDie(uptr size, uptr alignment, const char *mem_type);
95 bool MprotectNoAccess(uptr addr, uptr size);
98 bool MemoryRangeIsAvailable(uptr range_start, uptr range_end);
99 void FlushUnneededShadowMemory(uptr addr, uptr size);
100 void IncreaseTotalMmap(uptr size);
101 void DecreaseTotalMmap(uptr size);
102 uptr GetRSS();
103 void NoHugePagesInRegion(uptr addr, uptr length);
104 void DontDumpShadowMemory(uptr addr, uptr length);
115 explicit InternalScopedBuffer(uptr cnt) { in InternalScopedBuffer()
122 T &operator[](uptr i) { return ptr_[i]; }
124 uptr size() { return cnt_ * sizeof(T); } in size()
128 uptr cnt_;
136 explicit InternalScopedString(uptr max_length) in InternalScopedString()
140 uptr length() { return length_; } in length()
148 uptr length_;
157 void *Allocate(uptr size);
162 typedef void (*LowLevelAllocateCallback)(uptr ptr, uptr size);
176 if ((uptr)Verbosity() >= (level)) Report(__VA_ARGS__); \
180 if ((uptr)Verbosity() >= (level)) Printf(__VA_ARGS__); \
187 void Write(const char *buffer, uptr length);
205 uptr fd_pid;
212 extern uptr stoptheworld_tracer_pid;
213 extern uptr stoptheworld_tracer_ppid;
227 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size,
228 uptr *bytes_read = nullptr, error_t *error_p = nullptr);
229 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size,
230 uptr *bytes_written = nullptr, error_t *error_p = nullptr);
249 bool ReadFileToBuffer(const char *file_name, char **buff, uptr *buff_size,
250 uptr *read_len, uptr max_len = 1 << 26,
255 void *MapFileToMemory(const char *file_name, uptr *buff_size);
256 void *MapWritableFileToMemory(void *addr, uptr size, fd_t fd, OFF_T offset);
258 bool IsAccessibleMemoryRange(uptr beg, uptr size);
267 uptr ReadBinaryName(/*out*/char *buf, uptr buf_len);
268 uptr ReadBinaryNameCached(/*out*/char *buf, uptr buf_len);
269 uptr ReadLongProcessName(/*out*/ char *buf, uptr buf_len);
286 void SetStackSizeLimitInBytes(uptr limit);
302 uptr GetTlsSize();
309 void SortArray(uptr *array, uptr size);
317 void NORETURN ReportMmapFailureAndDie(uptr size, const char *mem_type,
383 INLINE uptr MostSignificantSetBitIndex(uptr x) { in MostSignificantSetBitIndex()
400 INLINE uptr LeastSignificantSetBitIndex(uptr x) { in LeastSignificantSetBitIndex()
417 INLINE bool IsPowerOfTwo(uptr x) { in IsPowerOfTwo()
421 INLINE uptr RoundUpToPowerOfTwo(uptr size) { in RoundUpToPowerOfTwo()
425 uptr up = MostSignificantSetBitIndex(size); in RoundUpToPowerOfTwo()
431 INLINE uptr RoundUpTo(uptr size, uptr boundary) { in RoundUpTo()
436 INLINE uptr RoundDownTo(uptr x, uptr boundary) { in RoundDownTo()
440 INLINE bool IsAligned(uptr a, uptr alignment) { in IsAligned()
444 INLINE uptr Log2(uptr x) { in Log2()
477 void Initialize(uptr initial_capacity) { in Initialize()
478 capacity_ = Max(initial_capacity, (uptr)1); in Initialize()
485 T &operator[](uptr i) {
489 const T &operator[](uptr i) const {
496 uptr new_capacity = RoundUpToPowerOfTwo(size_ + 1); in push_back()
509 uptr size() const { in size()
518 uptr capacity() const { in capacity()
526 void Resize(uptr new_capacity) { in Resize()
539 uptr capacity_;
540 uptr size_;
546 explicit InternalMmapVector(uptr initial_capacity) { in InternalMmapVector()
557 void InternalSort(Container *v, uptr size, Compare comp) { in InternalSort()
561 for (uptr i = 1; i < size; i++) { in InternalSort()
562 uptr j, p; in InternalSort()
573 for (uptr i = size - 1; i > 0; i--) { in InternalSort()
575 uptr j, max_ind; in InternalSort()
577 uptr left = 2 * j + 1; in InternalSort()
578 uptr right = 2 * j + 2; in InternalSort()
593 uptr InternalBinarySearch(const Container &v, uptr first, uptr last, in InternalBinarySearch()
595 uptr not_found = last + 1; in InternalBinarySearch()
597 uptr mid = (first + last) / 2; in InternalBinarySearch()
613 void set(const char *module_name, uptr base_address);
615 void addAddressRange(uptr beg, uptr end, bool executable);
616 bool containsAddress(uptr address) const;
619 uptr base_address() const { return base_address_; } in base_address()
623 uptr beg;
624 uptr end;
627 AddressRange(uptr beg, uptr end, bool executable) in AddressRange()
636 uptr base_address_;
645 uptr GetListOfModules(LoadedModule *modules, uptr max_modules,
649 typedef void (*RangeIteratorCallback)(uptr begin, uptr end, void *arg);
690 INLINE uptr GetPthreadDestructorIterations() { in GetPthreadDestructorIterations()
719 uptr addr;
720 uptr pc;
721 uptr sp;
722 uptr bp;
724 SignalContext(void *context, uptr addr, uptr pc, uptr sp, uptr bp) : in SignalContext()
732 void GetPcSpBp(void *context, uptr *pc, uptr *sp, uptr *bp);
745 uptr n_uniq_ids;
746 uptr allocated;