/external/compiler-rt/lib/sanitizer_common/ |
sanitizer_stacktrace.h | 20 static const uptr kStackTraceMax = 256; 35 uptr top_frame_bp; 36 uptr size; 37 uptr trace[kStackTraceMax]; 40 static void PrintStack(const uptr *addr, uptr size); 45 void CopyFrom(const uptr *src, uptr src_size) { 49 for (uptr i = 0; i < size; i++) 65 void Unwind(uptr max_depth, uptr pc, uptr bp, void *context, uptr stack_top [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_libc.h | 28 void *internal_memchr(const void *s, int c, uptr n); 29 int internal_memcmp(const void* s1, const void* s2, uptr n); 30 void *internal_memcpy(void *dest, const void *src, uptr n); 31 void *internal_memmove(void *dest, const void *src, uptr n); 33 void internal_bzero_aligned16(void *s, uptr n); 35 void *internal_memset(void *s, int c, uptr n); 39 uptr internal_strcspn(const char *s, const char *reject); 41 uptr internal_strlen(const char *s); 42 char *internal_strncat(char *dst, const char *src, uptr n); 43 int internal_strncmp(const char *s1, const char *s2, uptr n) [all...] |
sanitizer_procmaps.h | 26 uptr mmaped_size; 27 uptr len; 35 bool Next(uptr *start, uptr *end, uptr *offset, 36 char filename[], uptr filename_size, uptr *protection); 44 uptr DumpListOfModules(LoadedModule *modules, uptr max_modules, 48 static const uptr kProtectionRead = 1 [all...] |
sanitizer_allocator.h | 90 template <uptr kMaxSizeLog, uptr kMaxNumCachedT, uptr kMaxBytesCachedLog> 92 static const uptr kMinSizeLog = 4; 93 static const uptr kMidSizeLog = kMinSizeLog + 4; 94 static const uptr kMinSize = 1 << kMinSizeLog; 95 static const uptr kMidSize = 1 << kMidSizeLog; 96 static const uptr kMidClass = kMidSize / kMinSize; 97 static const uptr S = 2; 98 static const uptr M = (1 << S) - 1 [all...] |
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_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_bitvector.h | 22 template <class basic_int_t = uptr> 27 uptr size() const { return kSize; } 34 bool setBit(uptr idx) { 41 bool clearBit(uptr idx) { 47 bool getBit(uptr idx) const { return (bits_ & mask(idx)) != 0; } 49 uptr getAndClearFirstOne() { 51 uptr idx = LeastSignificantSetBitIndex(bits_); 85 // uptr idx = it.next(); 93 uptr next() { return bv_.getAndClearFirstOne(); } 100 basic_int_t mask(uptr idx) const [all...] |
/external/compiler-rt/lib/asan/ |
asan_report.h | 23 void DescribeHeapAddress(uptr addr, uptr access_size); 24 bool DescribeAddressIfGlobal(uptr addr, uptr access_size); 25 bool DescribeAddressRelativeToGlobal(uptr addr, uptr access_size, 27 bool DescribeAddressIfShadow(uptr addr); 28 bool DescribeAddressIfStack(uptr addr, uptr access_size); 30 void DescribeAddress(uptr addr, uptr access_size) [all...] |
asan_interface_internal.h | 22 using __sanitizer::uptr; 35 uptr beg; // The address of the global. 36 uptr size; // The original size of the global. 37 uptr size_with_redzone; // The size with the redzone. 41 uptr has_dynamic_init; // Non-zero if the global has dynamic initializer. 49 void __asan_register_globals(__asan_global *globals, uptr n); 51 void __asan_unregister_globals(__asan_global *globals, uptr n); 65 void __asan_poison_stack_memory(uptr addr, uptr size); 67 void __asan_unpoison_stack_memory(uptr addr, uptr size) [all...] |
asan_stats.h | 26 // AsanStats must be a struct consisting of uptr fields only. 27 // When merging two AsanStats structs, we treat them as arrays of uptr. 28 uptr mallocs; 29 uptr malloced; 30 uptr malloced_redzones; 31 uptr frees; 32 uptr freed; 33 uptr real_frees; 34 uptr really_freed; 35 uptr really_freed_redzones [all...] |
asan_fake_stack.h | 24 uptr magic; // Modified by the instrumented code. 25 uptr descr; // Modified by the instrumented code. 26 uptr pc; // Modified by the instrumented code. 27 uptr real_stack; 58 static const uptr kMinStackFrameSizeLog = 6; // Min frame is 64B. 59 static const uptr kMaxStackFrameSizeLog = 16; // Max stack frame is 64K. 62 static const uptr kNumberOfSizeClasses = 66 static FakeStack *Create(uptr stack_size_log); 71 static uptr SizeRequiredForFlags(uptr stack_size_log) [all...] |
asan_allocator.h | 31 static const uptr kNumberOfSizeClasses = 255; 42 uptr Beg(); // First byte of user memory. 43 uptr End(); // Last byte of user memory. 44 uptr UsedSize(); // Size requested by the user. 45 uptr AllocTid(); 46 uptr FreeTid(); 50 bool AddrIsInside(uptr addr, uptr access_size, sptr *offset) { 57 bool AddrIsAtLeft(uptr addr, uptr access_size, sptr *offset) [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...] |
asan_fake_stack.cc | 26 ALWAYS_INLINE void SetShadow(uptr ptr, uptr size, uptr class_id, u64 magic) { 30 for (uptr i = 0; i < (1U << class_id); i++) 38 FakeStack *FakeStack::Create(uptr stack_size_log) { 39 static uptr kMinStackSizeLog = 16; 40 static uptr kMaxStackSizeLog = FIRST_32_SECOND_64(24, 28); 45 uptr size = RequiredSize(stack_size_log); 63 for (uptr class_id = 0; class_id < kNumberOfSizeClasses; class_id++) 68 uptr size = RequiredSize(stack_size_log_) [all...] |
asan_allocator2.cc | 34 void AsanMapUnmapCallback::OnMap(uptr p, uptr size) const { 41 void AsanMapUnmapCallback::OnUnmap(uptr p, uptr size) const { 62 static const uptr kMaxAllowedMallocSize = 65 static const uptr kMaxThreadLocalQuarantine = 94 static uptr ComputeRZLog(uptr user_requested_size) { 117 // value in the first uptr word of the memory block and store the address of 118 // ChunkBase in the next uptr [all...] |
/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...] |
/external/compiler-rt/lib/tsan/tests/unit/ |
tsan_sync_test.cc | 23 m->AllocBlock(thr, 0, (uptr)&block[0], 1 * sizeof(u64)); 24 MBlock *mb = m->GetBlock((uptr)&block[0]); 28 uptr sz = m->FreeBlock(thr, 0, (uptr)&block[0]); 30 mb = m->GetBlock((uptr)&block[0]); 38 m->AllocBlock(thr, 0, (uptr)&block[0], 1 * sizeof(u64)); 39 m->AllocBlock(thr, 0, (uptr)&block[1], 3 * sizeof(u64)); 40 MBlock *mb1 = m->GetBlock((uptr)&block[0]); 42 MBlock *mb2 = m->GetBlock((uptr)&block[1]); 44 m->FreeRange(thr, 0, (uptr)&block[0], 4 * sizeof(u64)) [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/lsan/ |
lsan_common.h | 41 uptr pointer_alignment() const { 42 return use_unaligned ? 1 : sizeof(uptr); 86 uptr hit_count; 87 uptr total_size; 95 uptr addr; 96 uptr size; 103 void AddLeakedChunk(uptr chunk, u32 stack_trace_id, uptr leaked_size, 105 void ReportTopLeaks(uptr max_leaks); 108 uptr UnsuppressedLeakCount() [all...] |
/external/compiler-rt/lib/tsan/rtl/ |
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_sync.h | 31 uptr addr; // overwritten by DenseSlabAlloc freelist 49 void Init(ThreadState *thr, uptr pc, uptr addr, u64 uid); 60 static uptr SplitId(u64 id, u64 *uid) { 62 return (uptr)GetLsb(id, 47); 74 void AllocBlock(ThreadState *thr, uptr pc, uptr p, uptr sz); 75 uptr FreeBlock(ThreadState *thr, uptr pc, uptr p) [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_platform.h | 74 static const uptr kLinuxAppMemBeg = 0x000000000000ULL; 75 static const uptr kLinuxAppMemEnd = 0x04dfffffffffULL; 77 static const uptr kLinuxShadowMsk = 0x010000000000ULL; 78 static const uptr kMetaShadow = 0x076000000000ULL; 79 static const uptr kMetaSize = 0x007000000000ULL; 81 static const uptr kLinuxShadowMsk = 0x200000000000ULL; 82 static const uptr kMetaShadow = 0x300000000000ULL; 83 static const uptr kMetaSize = 0x100000000000ULL; 86 static const uptr kMetaShadow = 0x300000000000ULL; 87 static const uptr kMetaSize = 0x100000000000ULL [all...] |
/external/compiler-rt/lib/msan/ |
msan_allocator.cc | 27 uptr requested_size; 31 void OnMap(uptr p, uptr size) const {} 32 void OnUnmap(uptr p, uptr size) const { 43 static const uptr kAllocatorSpace = 0x600000000000ULL; 44 static const uptr kAllocatorSize = 0x80000000000; // 8T. 45 static const uptr kMetadataSize = sizeof(Metadata); 46 static const uptr kMaxAllowedMallocSize = 8UL << 30; 79 static void *MsanAllocate(StackTrace *stack, uptr size, uptr alignment [all...] |