/external/chromium_org/chrome/test/pyautolib/ |
D | asan_stub.c | 113 typedef unsigned long long uptr; typedef 114 uptr __asan_stack_malloc_1(uptr size, uptr real_stack) {} in __asan_stack_malloc_1() 115 uptr __asan_stack_malloc_2(uptr size, uptr real_stack) {} in __asan_stack_malloc_2() 116 uptr __asan_stack_malloc_3(uptr size, uptr real_stack) {} in __asan_stack_malloc_3() 117 uptr __asan_stack_malloc_4(uptr size, uptr real_stack) {} in __asan_stack_malloc_4() 118 uptr __asan_stack_malloc_5(uptr size, uptr real_stack) {} in __asan_stack_malloc_5() 119 uptr __asan_stack_malloc_6(uptr size, uptr real_stack) {} in __asan_stack_malloc_6() 120 uptr __asan_stack_malloc_7(uptr size, uptr real_stack) {} in __asan_stack_malloc_7() 121 uptr __asan_stack_malloc_8(uptr size, uptr real_stack) {} in __asan_stack_malloc_8() 122 uptr __asan_stack_malloc_9(uptr size, uptr real_stack) {} in __asan_stack_malloc_9() [all …]
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_stacktrace.h | 20 static const uptr kStackTraceMax = 256; 34 uptr size; 35 uptr max_size; 36 uptr trace[kStackTraceMax]; 37 static void PrintStack(const uptr *addr, uptr size, 40 void CopyTo(uptr *dst, uptr dst_size) { in CopyTo() 41 for (uptr i = 0; i < size && i < dst_size; i++) in CopyTo() 43 for (uptr i = size; i < dst_size; i++) in CopyTo() 47 void CopyFrom(uptr *src, uptr src_size) { in CopyFrom() 50 for (uptr i = 0; i < size; i++) { in CopyFrom() [all …]
|
D | sanitizer_common.h | 27 const uptr kWordSize = SANITIZER_WORDSIZE / 8; 28 const uptr kWordSizeInBits = 8 * kWordSize; 31 const uptr kCacheLineSize = 128; 33 const uptr kCacheLineSize = 64; 36 const uptr kMaxPathLength = 512; 39 extern uptr SanitizerVerbosity; 41 uptr GetPageSize(); 42 uptr GetPageSizeCached(); 43 uptr GetMmapGranularity(); 44 uptr GetMaxVirtualAddress(); [all …]
|
D | 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_memset(void *s, int c, uptr n); 36 uptr internal_strcspn(const char *s, const char *reject); 38 uptr internal_strlen(const char *s); 39 char *internal_strncat(char *dst, const char *src, uptr n); 40 int internal_strncmp(const char *s1, const char *s2, uptr n); 41 char *internal_strncpy(char *dst, const char *src, uptr n); [all …]
|
D | sanitizer_win.cc | 35 uptr GetPageSize() { in GetPageSize() 39 uptr GetMmapGranularity() { in GetMmapGranularity() 43 uptr GetMaxVirtualAddress() { in GetMaxVirtualAddress() 46 return (uptr)si.lpMaximumApplicationAddress; in GetMaxVirtualAddress() 53 uptr internal_getpid() { in internal_getpid() 59 uptr GetTid() { in GetTid() 63 uptr GetThreadSelf() { in GetThreadSelf() 67 void GetThreadStackTopAndBottom(bool at_initialization, uptr *stack_top, in GetThreadStackTopAndBottom() 68 uptr *stack_bottom) { in GetThreadStackTopAndBottom() 76 *stack_top = (uptr)mbi.BaseAddress + mbi.RegionSize; in GetThreadStackTopAndBottom() [all …]
|
D | sanitizer_allocator.h | 87 template <uptr kMaxSizeLog, uptr kMaxNumCachedT, uptr kMaxBytesCachedLog> 89 static const uptr kMinSizeLog = 4; 90 static const uptr kMidSizeLog = kMinSizeLog + 4; 91 static const uptr kMinSize = 1 << kMinSizeLog; 92 static const uptr kMidSize = 1 << kMidSizeLog; 93 static const uptr kMidClass = kMidSize / kMinSize; 94 static const uptr S = 2; 95 static const uptr M = (1 << S) - 1; 98 static const uptr kMaxNumCached = kMaxNumCachedT; 104 uptr count; [all …]
|
D | sanitizer_procmaps.h | 28 bool GetObjectNameAndOffset(uptr addr, uptr *offset, in GetObjectNameAndOffset() 29 char filename[], uptr filename_size, in GetObjectNameAndOffset() 30 uptr *protection) { in GetObjectNameAndOffset() 39 uptr mmaped_size; 40 uptr len; 47 bool Next(uptr *start, uptr *end, uptr *offset, 48 char filename[], uptr filename_size, uptr *protection); 52 bool GetObjectNameAndOffset(uptr addr, uptr *offset, 53 char filename[], uptr filename_size, 54 uptr *protection); [all …]
|
D | sanitizer_mac.cc | 49 uptr internal_mmap(void *addr, size_t length, int prot, int flags, in internal_mmap() 51 return (uptr)mmap(addr, length, prot, flags, fd, offset); in internal_mmap() 54 uptr internal_munmap(void *addr, uptr length) { in internal_munmap() 58 uptr internal_close(fd_t fd) { in internal_close() 62 uptr internal_open(const char *filename, int flags) { in internal_open() 66 uptr internal_open(const char *filename, int flags, u32 mode) { in internal_open() 70 uptr OpenFile(const char *filename, bool write) { in OpenFile() 75 uptr internal_read(fd_t fd, void *buf, uptr count) { in internal_read() 79 uptr internal_write(fd_t fd, const void *buf, uptr count) { in internal_write() 83 uptr internal_stat(const char *path, void *buf) { in internal_stat() [all …]
|
D | sanitizer_symbolizer.h | 34 uptr address; 36 uptr module_offset; 48 void FillAddressAndModuleInfo(uptr addr, const char *mod_name, in FillAddressAndModuleInfo() 49 uptr mod_offset) { in FillAddressAndModuleInfo() 57 uptr address; 59 uptr module_offset; 61 uptr start; 62 uptr size; 69 uptr SymbolizeCode(uptr address, AddressInfo *frames, uptr max_frames) 71 bool SymbolizeData(uptr address, DataInfo *info); [all …]
|
D | sanitizer_stacktrace.cc | 30 uptr StackTrace::GetPreviousInstructionPc(uptr pc) { in GetPreviousInstructionPc() 45 static void PrintStackFramePrefix(uptr frame_num, uptr pc) { in PrintStackFramePrefix() 60 static void PrintModuleAndOffset(const char *module, uptr offset, in PrintModuleAndOffset() 65 void StackTrace::PrintStack(const uptr *addr, uptr size, in PrintStack() 71 uptr frame_num = 0; in PrintStack() 72 for (uptr i = 0; i < size && addr[i]; i++) { in PrintStack() 75 uptr pc = GetPreviousInstructionPc(addr[i]); in PrintStack() 76 uptr addr_frames_num = 0; // The number of stack frames for current in PrintStack() 93 for (uptr j = 0; j < addr_frames_num; j++) { in PrintStack() 115 uptr offset; in PrintStack() [all …]
|
D | sanitizer_posix.cc | 28 uptr GetMmapGranularity() { in GetMmapGranularity() 32 uptr GetMaxVirtualAddress() { in GetMaxVirtualAddress() 50 void *MmapOrDie(uptr size, const char *mem_type) { in MmapOrDie() 52 uptr res = internal_mmap(0, size, in MmapOrDie() 73 void UnmapOrDie(void *addr, uptr size) { in UnmapOrDie() 75 uptr res = internal_munmap(addr, size); in UnmapOrDie() 83 void *MmapFixedNoReserve(uptr fixed_addr, uptr size) { in MmapFixedNoReserve() 84 uptr PageSize = GetPageSizeCached(); in MmapFixedNoReserve() 85 uptr p = internal_mmap((void*)(fixed_addr & ~(PageSize - 1)), in MmapFixedNoReserve() 98 void *MmapFixedOrDie(uptr fixed_addr, uptr size) { in MmapFixedOrDie() [all …]
|
D | sanitizer_libc.cc | 23 void *internal_memchr(const void *s, int c, uptr n) { in internal_memchr() 25 for (uptr i = 0; i < n; ++i, ++t) in internal_memchr() 31 int internal_memcmp(const void* s1, const void* s2, uptr n) { in internal_memcmp() 34 for (uptr i = 0; i < n; ++i, ++t1, ++t2) in internal_memcmp() 40 void *internal_memcpy(void *dest, const void *src, uptr n) { in internal_memcpy() 43 for (uptr i = 0; i < n; ++i) in internal_memcpy() 48 void *internal_memmove(void *dest, const void *src, uptr n) { in internal_memmove() 65 void *internal_memset(void* s, int c, uptr n) { in internal_memset() 71 for (uptr i = 0; i < n; ++i, ++t) { in internal_memset() 77 uptr internal_strcspn(const char *s, const char *reject) { in internal_strcspn() [all …]
|
/external/compiler-rt/lib/asan/ |
D | asan_interface_internal.h | 20 using __sanitizer::uptr; 38 uptr beg; // The address of the global. 39 uptr size; // The original size of the global. 40 uptr size_with_redzone; // The size with the redzone. 44 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 uptr __asan_stack_malloc(uptr size, uptr real_stack) 67 void __asan_stack_free(uptr ptr, uptr size, uptr real_stack) 74 void __asan_poison_stack_memory(uptr addr, uptr size) [all …]
|
D | asan_fake_stack.h | 22 uptr magic; // Modified by the instrumented code. 23 uptr descr; // Modified by the instrumented code. 24 uptr pc; // Modified by the instrumented code. 40 template<uptr kMaxNumberOfFrames> 59 uptr n_frames_; 74 void Init(uptr stack_size); 77 uptr AllocateStack(uptr size, uptr real_stack); 78 static void OnFree(uptr ptr, uptr size, uptr real_stack); 80 uptr AddrIsInFakeStack(uptr addr); 81 uptr StackSize() const { return stack_size_; } in StackSize() [all …]
|
D | 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); 35 void NORETURN ReportSIGSEGV(uptr pc, uptr sp, uptr bp, uptr addr); 36 void NORETURN ReportDoubleFree(uptr addr, StackTrace *stack); 37 void NORETURN ReportFreeNotMalloced(uptr addr, StackTrace *stack); 38 void NORETURN ReportAllocTypeMismatch(uptr addr, StackTrace *stack, [all …]
|
D | asan_stats.h | 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; 36 uptr reallocs; 37 uptr realloced; [all …]
|
D | asan_fake_stack.cc | 20 bool FakeStack::AddrIsInSizeClass(uptr addr, uptr size_class) { in AddrIsInSizeClass() 21 uptr mem = allocated_size_classes_[size_class]; in AddrIsInSizeClass() 22 uptr size = ClassMmapSize(size_class); in AddrIsInSizeClass() 27 uptr FakeStack::AddrIsInFakeStack(uptr addr) { in AddrIsInFakeStack() 28 for (uptr size_class = 0; size_class < kNumberOfSizeClasses; size_class++) { in AddrIsInFakeStack() 30 uptr size_class_first_ptr = allocated_size_classes_[size_class]; in AddrIsInFakeStack() 31 uptr size = ClassSize(size_class); in AddrIsInFakeStack() 40 ALWAYS_INLINE uptr FakeStack::ComputeSizeClass(uptr alloc_size) { in ComputeSizeClass() 41 uptr rounded_size = RoundUpToPowerOfTwo(alloc_size); in ComputeSizeClass() 42 uptr log = Log2(rounded_size); in ComputeSizeClass() [all …]
|
D | asan_allocator.h | 30 static const uptr kNumberOfSizeClasses = 255; 39 uptr Beg(); // first byte of user memory. 40 uptr End(); // last byte of user memory. 41 uptr UsedSize(); // size requested by the user. 42 uptr AllocTid(); 43 uptr FreeTid(); 46 bool AddrIsInside(uptr addr, uptr access_size, sptr *offset) { in AddrIsInside() 53 bool AddrIsAtLeft(uptr addr, uptr access_size, sptr *offset) { in AddrIsAtLeft() 61 bool AddrIsAtRight(uptr addr, uptr access_size, sptr *offset) { in AddrIsAtRight() 73 AsanChunkView FindHeapChunkByAddress(uptr address); [all …]
|
D | asan_malloc_linux.cc | 26 DECLARE_REAL_AND_INTERCEPTOR(void*, malloc, uptr size) 28 DECLARE_REAL_AND_INTERCEPTOR(void*, calloc, uptr nmemb, uptr size) 29 DECLARE_REAL_AND_INTERCEPTOR(void*, realloc, void *ptr, uptr size) 30 DECLARE_REAL_AND_INTERCEPTOR(void*, memalign, uptr boundary, uptr size) 33 void* (*malloc)(uptr bytes); 35 void* (*calloc)(uptr n_elements, uptr elem_size); 36 void* (*realloc)(void* oldMem, uptr bytes); 37 void* (*memalign)(uptr alignment, uptr bytes); 73 INTERCEPTOR(void*, malloc, uptr size) { in INTERCEPTOR() 78 INTERCEPTOR(void*, calloc, uptr nmemb, uptr size) { in INTERCEPTOR() [all …]
|
D | asan_allocator2.cc | 34 void OnMap(uptr p, uptr size) const { in OnMap() 41 void OnUnmap(uptr p, uptr size) const { in OnUnmap() 47 uptr page_size = GetPageSizeCached(); in OnUnmap() 48 uptr shadow_beg = RoundUpTo(MemToShadow(p), page_size); in OnUnmap() 49 uptr shadow_end = RoundDownTo(MemToShadow(p + size), page_size); in OnUnmap() 60 const uptr kAllocatorSpace = 0xa0000000000ULL; 61 const uptr kAllocatorSize = 0x20000000000ULL; // 2T. 63 const uptr kAllocatorSpace = 0x600000000000ULL; 64 const uptr kAllocatorSize = 0x40000000000ULL; // 4T. 72 static const uptr kRegionSizeLog = 20; [all …]
|
/external/compiler-rt/lib/tsan/rtl/ |
D | tsan_platform.h | 67 static const uptr kLinuxAppMemBeg = 0x000000000000ULL; 68 static const uptr kLinuxAppMemEnd = 0x04dfffffffffULL; 70 static const uptr kLinuxShadowMsk = 0x010000000000ULL; 72 static const uptr kLinuxShadowMsk = 0x200000000000ULL; 78 static const uptr kLinuxAppMemBeg = 0x290000000000ULL; 79 static const uptr kLinuxAppMemEnd = 0x7fffffffffffULL; 81 static const uptr kLinuxAppMemBeg = 0x7cf000000000ULL; 82 static const uptr kLinuxAppMemEnd = 0x7fffffffffffULL; 85 static const uptr kLinuxAppMemMsk = 0x7c0000000000ULL; 88 const uptr kTraceMemBegin = 0x056000000000ULL; [all …]
|
D | tsan_sync.h | 31 StackTrace(uptr *buf, uptr cnt); 35 void Init(const uptr *pcs, uptr cnt); 36 void ObtainCurrent(ThreadState *thr, uptr toppc); 38 uptr Size() const; 39 uptr Get(uptr i) const; 40 const uptr *Begin() const; 44 uptr n_; 45 uptr *s_; 46 const uptr c_; 53 explicit SyncVar(uptr addr, u64 uid); [all …]
|
D | tsan_rtl.h | 61 void Init(uptr siz, u32 tid, u32 stk) { in Init() 76 uptr Size() const { in Size() 123 const uptr kAllocatorSpace = 0x7d0000000000ULL; 125 const uptr kAllocatorSpace = 0x7d0000000000ULL; 127 const uptr kAllocatorSize = 0x10000000000ULL; // 1T. 390 uptr sp; 391 uptr mangled_sp; 392 uptr *shadow_stack_pos; 414 uptr *shadow_stack_pos; 419 uptr shadow_stack[kShadowStackSize]; [all …]
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_common_test.cc | 20 static bool IsSorted(const uptr *array, uptr n) { in IsSorted() 21 for (uptr i = 1; i < n; i++) { in IsSorted() 28 uptr array[100]; in TEST() 29 uptr n = 100; in TEST() 31 for (uptr i = 0; i < n; i++) { in TEST() 37 for (uptr i = 0; i < n; i++) { in TEST() 43 for (uptr i = 0; i < n; i++) { in TEST() 49 for (uptr i = 0; i < n; i++) { in TEST() 55 for (uptr i = 0; i < n - 1; i++) { in TEST() 69 uptr PageSize = GetPageSizeCached(); in TEST() [all …]
|
/external/compiler-rt/lib/lsan/ |
D | lsan_common.h | 41 uptr pointer_alignment() const { in pointer_alignment() 42 return use_unaligned ? 1 : sizeof(uptr); in pointer_alignment() 82 uptr hit_count; 83 uptr total_size; 93 void Add(u32 stack_trace_id, uptr leaked_size, ChunkTag tag); 94 void PrintLargest(uptr max_leaks); 97 uptr ApplySuppressions(); 102 typedef InternalMmapVector<uptr> Frontier; 109 void ScanRangeForPointers(uptr begin, uptr end, 128 void GetAllocatorGlobalRange(uptr *begin, uptr *end); [all …]
|