/external/compiler-rt/lib/sanitizer_common/ |
sanitizer_allocator_internal.h | 26 static const uptr kInternalAllocatorSpace = 0; 29 static const uptr kInternalAllocatorRegionSizeLog = 20; 30 static const uptr kInternalAllocatorNumRegions = 34 static const uptr kInternalAllocatorRegionSizeLog = 24; 35 static const uptr kInternalAllocatorNumRegions = 49 void OnMap(uptr p, uptr size) const { 52 void OnUnmap(uptr p, uptr size) const { 61 void *InternalAlloc(uptr size, InternalAllocatorCache *cache = 0) [all...] |
sanitizer_stackdepot.h | 31 uptr size(); 32 uptr *stack(); 38 u32 StackDepotPut(const uptr *stack, uptr size); 39 StackDepotHandle StackDepotPut_WithHandle(const uptr *stack, uptr size); 41 const uptr *StackDepotGet(u32 id, uptr *size); 50 const uptr *Get(u32 id, uptr *size) [all...] |
sanitizer_linux.h | 31 uptr internal_getdents(fd_t fd, struct linux_dirent *dirp, unsigned int count); 32 uptr internal_sigaltstack(const struct sigaltstack* ss, 34 uptr internal_sigprocmask(int how, __sanitizer_sigset_t *set, 40 uptr internal_prctl(int option, uptr arg2, uptr arg3, uptr arg4, uptr arg5); 47 uptr internal_clone(int (*fn)(void *), void *child_stack, int flags, void *arg, 75 uptr ThreadDescriptorSize() [all...] |
sanitizer_bvgraph.h | 29 uptr size() const { return kSize; } 32 for (uptr i = 0; i < size(); i++) 37 for (uptr i = 0; i < size(); i++) 44 bool addEdge(uptr from, uptr to) { 50 uptr addEdges(const BV &from, uptr to, uptr added_edges[], 51 uptr max_added_edges) { 52 uptr res = 0 [all...] |
sanitizer_win.cc | 35 uptr GetPageSize() { 39 uptr GetMmapGranularity() { 43 uptr GetMaxVirtualAddress() { 46 return (uptr)si.lpMaximumApplicationAddress; 53 uptr internal_getpid() { 59 uptr GetTid() { 63 uptr GetThreadSelf() { 67 void GetThreadStackTopAndBottom(bool at_initialization, uptr *stack_top, 68 uptr *stack_bottom) { 76 *stack_top = (uptr)mbi.BaseAddress + mbi.RegionSize [all...] |
sanitizer_common.h | 28 const uptr kWordSize = SANITIZER_WORDSIZE / 8; 29 const uptr kWordSizeInBits = 8 * kWordSize; 32 const uptr kCacheLineSize = 128; 34 const uptr kCacheLineSize = 64; 37 const uptr kMaxPathLength = 512; 39 const uptr kMaxThreadStackSize = 1 << 30; // 1Gb 43 uptr GetPageSize(); 44 uptr GetPageSizeCached(); 45 uptr GetMmapGranularity(); 46 uptr GetMaxVirtualAddress() [all...] |
sanitizer_libignore.h | 42 bool IsIgnored(uptr pc) const; 53 uptr begin; 54 uptr end; 57 static const uptr kMaxLibs = 128; 65 uptr count_; 73 inline bool LibIgnore::IsIgnored(uptr pc) const { 74 const uptr n = atomic_load(&loaded_count_, memory_order_acquire); 75 for (uptr i = 0; i < n; i++) {
|
sanitizer_symbolizer_libbacktrace.h | 35 uptr SymbolizeCode(uptr addr, AddressInfo *frames, uptr max_frames, 36 const char *module_name, uptr module_offset);
|
sanitizer_mac.cc | 51 uptr internal_mmap(void *addr, size_t length, int prot, int flags, 53 return (uptr)mmap(addr, length, prot, flags, fd, offset); 56 uptr internal_munmap(void *addr, uptr length) { 60 uptr internal_close(fd_t fd) { 64 uptr internal_open(const char *filename, int flags) { 68 uptr internal_open(const char *filename, int flags, u32 mode) { 72 uptr OpenFile(const char *filename, bool write) { 77 uptr internal_read(fd_t fd, void *buf, uptr count) [all...] |
sanitizer_deadlock_detector.h | 49 void ensureCurrentEpoch(uptr current_epoch) { 55 uptr getEpoch() const { return epoch_; } 58 bool addLock(uptr lock_id, uptr current_epoch, u32 stk) { 75 void removeLock(uptr lock_id) { 99 u32 findLockContext(uptr lock_id) { 100 for (uptr i = 0; i < n_all_locks_; i++) 106 const BV &getLocks(uptr current_epoch) const { 111 uptr getNumLocks() const { return n_all_locks_; } 112 uptr getLock(uptr idx) const { return all_locks_with_contexts_[idx].lock; [all...] |
sanitizer_stoptheworld.h | 29 SuspendedThreadID GetThreadID(uptr index) const { 33 int GetRegistersAndSP(uptr index, uptr *buffer, uptr *sp) const; 35 static uptr RegisterCount(); 36 uptr thread_count() const { return thread_ids_.size(); } 38 for (uptr i = 0; i < thread_ids_.size(); i++) {
|
/external/compiler-rt/lib/tsan/tests/unit/ |
tsan_stack_test.cc | 22 uptr stack[128]; 28 EXPECT_EQ(trace->Size(), (uptr)0); 31 EXPECT_EQ(trace->Size(), (uptr)1); 32 EXPECT_EQ(trace->Get(0), (uptr)42); 37 EXPECT_EQ(trace->Size(), (uptr)2); 38 EXPECT_EQ(trace->Get(0), (uptr)100); 39 EXPECT_EQ(trace->Get(1), (uptr)101); 42 EXPECT_EQ(trace->Size(), (uptr)3); 43 EXPECT_EQ(trace->Get(0), (uptr)100); 44 EXPECT_EQ(trace->Get(1), (uptr)101) [all...] |
/external/compiler-rt/lib/sanitizer_common/tests/ |
sanitizer_stackdepot_test.cc | 21 uptr s1[] = {1, 2, 3, 4, 5}; 23 uptr sz1 = 0; 24 const uptr *sp1 = StackDepotGet(i1, &sz1); 25 EXPECT_NE(sp1, (uptr*)0); 31 uptr sz1 = 0; 32 const uptr *sp1 = StackDepotGet((1 << 30) - 1, &sz1); 33 EXPECT_EQ(sp1, (uptr*)0); 38 uptr sz1 = 0; 39 const uptr *sp1 = StackDepotGet(i1, &sz1); 40 EXPECT_EQ(sp1, (uptr*)0) [all...] |
/external/compiler-rt/lib/msan/ |
msan_thread.h | 31 uptr stack_top() { return stack_top_; } 32 uptr stack_bottom() { return stack_bottom_; } 33 uptr tls_begin() { return tls_begin_; } 34 uptr tls_end() { return tls_end_; } 37 bool AddrIsInStack(uptr addr) { 56 uptr stack_top_; 57 uptr stack_bottom_; 58 uptr tls_begin_; 59 uptr tls_end_;
|
msan.h | 28 #define MEM_TO_SHADOW(mem) (((uptr)mem) & ~0x400000000000ULL) 29 #define SHADOW_TO_ORIGIN(shadow) (((uptr)shadow) + 0x200000000000ULL) 31 #define MEM_IS_APP(mem) ((uptr)mem >= 0x600000000000ULL) 33 ((uptr)mem >= 0x200000000000ULL && (uptr)mem <= 0x400000000000ULL) 43 bool ProtectRange(uptr beg, uptr end); 49 void *MsanReallocate(StackTrace *stack, void *oldp, uptr size, 50 uptr alignment, bool zeroise); 56 const char *GetStackOriginDescr(u32 id, uptr *pc) [all...] |
/external/compiler-rt/lib/asan/ |
asan_poisoning.h | 23 void PoisonShadow(uptr addr, uptr size, u8 value); 27 void PoisonShadowPartialRightRedzone(uptr addr, 28 uptr size, 29 uptr redzone_size, 35 ALWAYS_INLINE void FastPoisonShadow(uptr aligned_beg, uptr aligned_size, 38 uptr PageSize = GetPageSizeCached(); 39 uptr shadow_beg = MEM_TO_SHADOW(aligned_beg); 40 uptr shadow_end = MEM_TO_SHADOW [all...] |
asan_malloc_linux.cc | 27 DECLARE_REAL_AND_INTERCEPTOR(void*, malloc, uptr size) 29 DECLARE_REAL_AND_INTERCEPTOR(void*, calloc, uptr nmemb, uptr size) 30 DECLARE_REAL_AND_INTERCEPTOR(void*, realloc, void *ptr, uptr size) 31 DECLARE_REAL_AND_INTERCEPTOR(void*, memalign, uptr boundary, uptr size) 32 DECLARE_REAL_AND_INTERCEPTOR(uptr, malloc_usable_size, void *mem) 35 void *(*malloc)(uptr bytes); 37 void *(*calloc)(uptr n_elements, uptr elem_size) [all...] |
/external/compiler-rt/lib/interception/ |
interception_linux.h | 26 bool GetRealFunctionAddress(const char *func_name, uptr *func_addr, 27 uptr real, uptr wrapper); 33 #func, (::__interception::uptr *)&__interception::PTR_TO_REAL(func), \ 34 (::__interception::uptr) & (func), \ 35 (::__interception::uptr) & WRAP(func))
|
/external/compiler-rt/lib/tsan/rtl/ |
tsan_mman.h | 20 const uptr kDefaultAlignment = 16; 28 void *user_alloc(ThreadState *thr, uptr pc, uptr sz, 29 uptr align = kDefaultAlignment); 31 void user_free(ThreadState *thr, uptr pc, void *p); 32 void *user_realloc(ThreadState *thr, uptr pc, void *p, uptr sz); 33 void *user_alloc_aligned(ThreadState *thr, uptr pc, uptr sz, uptr align) [all...] |
tsan_mutexset.h | 25 static const uptr kMaxSize = 16; 38 uptr Size() const; 39 Desc Get(uptr i) const; 47 uptr size_; 51 void RemovePos(uptr i); 63 void MutexSet::RemovePos(uptr i) {} 64 uptr MutexSet::Size() const { return 0; } 65 MutexSet::Desc MutexSet::Get(uptr i) const { return Desc(); }
|
tsan_interface_inl.h | 17 #define CALLERPC ((uptr)__builtin_return_address(0)) 22 MemoryRead(cur_thread(), CALLERPC, (uptr)addr, kSizeLog1); 26 MemoryRead(cur_thread(), CALLERPC, (uptr)addr, kSizeLog2); 30 MemoryRead(cur_thread(), CALLERPC, (uptr)addr, kSizeLog4); 34 MemoryRead(cur_thread(), CALLERPC, (uptr)addr, kSizeLog8); 38 MemoryWrite(cur_thread(), CALLERPC, (uptr)addr, kSizeLog1); 42 MemoryWrite(cur_thread(), CALLERPC, (uptr)addr, kSizeLog2); 46 MemoryWrite(cur_thread(), CALLERPC, (uptr)addr, kSizeLog4); 50 MemoryWrite(cur_thread(), CALLERPC, (uptr)addr, kSizeLog8); 58 MemoryWrite(thr, CALLERPC, (uptr)vptr_p, kSizeLog8) [all...] |
tsan_mman.cc | 22 extern "C" void WEAK __tsan_malloc_hook(void *ptr, uptr size) { 26 extern "C" void WEAK __sanitizer_malloc_hook(void *ptr, uptr size) { 41 void OnMap(uptr p, uptr size) const { } 42 void OnUnmap(uptr p, uptr size) const { 72 static void SignalUnsafeCall(ThreadState *thr, uptr pc) { 85 void *user_alloc(ThreadState *thr, uptr pc, uptr sz, uptr align) [all...] |
tsan_rtl.h | 57 const uptr kAllocatorSpace = 0x7d0000000000ULL; 59 const uptr kAllocatorSpace = 0x7d0000000000ULL; 61 const uptr kAllocatorSize = 0x10000000000ULL; // 1T. 313 uptr sp; 314 uptr mangled_sp; 315 uptr *shadow_stack_pos; 345 uptr *shadow_stack; 346 uptr *shadow_stack_end; 347 uptr *shadow_stack_pos; 366 const uptr stk_addr [all...] |
/external/compiler-rt/test/tsan/ |
bench_shadow_flush.cc | 15 typedef unsigned long uptr; typedef 18 uptr mem_size = 4 << 20; 20 mem_size = (uptr)atoi(argv[1]) << 20; 21 uptr stride = kSmallPage; 23 stride = (uptr)atoi(argv[2]) << 10; 30 uptr a = ((uptr)p + kLargePage - 1) & ~(kLargePage - 1); 34 for (uptr off = 0; off < mem_size; off += stride)
|
/external/compiler-rt/lib/tsan/go/ |
tsan_go.cc | 27 bool IsExpectedReport(uptr addr, uptr size) { 38 ReportLocation *SymbolizeData(uptr addr) { 42 ReportStack *NewReportStackEntry(uptr addr) { 50 void *internal_alloc(MBlockType typ, uptr sz) { 59 uptr pc; 62 uptr line; 63 uptr off; 64 uptr res; 70 ReportStack *SymbolizeCode(uptr addr) [all...] |