/external/compiler-rt/lib/asan/ |
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_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 reallocs [all...] |
asan_interface_internal.h | 25 using __sanitizer::uptr; 48 uptr beg; // The address of the global. 49 uptr size; // The original size of the global. 50 uptr size_with_redzone; // The size with the redzone. 54 uptr has_dynamic_init; // Non-zero if the global has dynamic initializer. 57 uptr odr_indicator; // The address of the ODR indicator symbol. 64 void __asan_register_image_globals(uptr *flag); 66 void __asan_unregister_image_globals(uptr *flag); 71 void __asan_register_globals(__asan_global *globals, uptr n); 73 void __asan_unregister_globals(__asan_global *globals, uptr n) [all...] |
asan_report.h | 22 uptr beg; 23 uptr size; 25 uptr name_len; 30 uptr name_size; 31 uptr region_address; 32 uptr region_size; 38 int GetGlobalsForAddress(uptr addr, __asan_global *globals, u32 *reg_sites, 40 bool GetInfoForAddressIfGlobal(uptr addr, AddressDescription *descr); 43 void DescribeHeapAddress(uptr addr, uptr access_size) [all...] |
asan_allocator.h | 55 uptr Beg(); // First byte of user memory. 56 uptr End(); // Last byte of user memory. 57 uptr UsedSize(); // Size requested by the user. 58 uptr AllocTid(); 59 uptr FreeTid(); 65 bool AddrIsInside(uptr addr, uptr access_size, sptr *offset) { 72 bool AddrIsAtLeft(uptr addr, uptr access_size, sptr *offset) { 80 bool AddrIsAtRight(uptr addr, uptr access_size, sptr *offset) [all...] |
/external/compiler-rt/lib/sanitizer_common/ |
sanitizer_tls_get_addr.h | 40 uptr beg, size; 43 uptr dtv_size; 47 uptr last_memalign_size; 48 uptr last_memalign_ptr; 53 DTLS::DTV *DTLS_on_tls_get_addr(void *arg, void *res, uptr static_tls_begin, 54 uptr static_tls_end); 55 void DTLS_on_libc_memalign(void *ptr, uptr size);
|
sanitizer_procmaps.h | 26 uptr mmaped_size; 27 uptr len; 38 bool Next(uptr *start, uptr *end, uptr *offset, 39 char filename[], uptr filename_size, uptr *protection); 50 static const uptr kProtectionRead = 1; 51 static const uptr kProtectionWrite = 2; 52 static const uptr kProtectionExecute = 4 [all...] |
sanitizer_stacktrace.h | 40 const uptr *trace; 50 StackTrace(const uptr *trace, u32 size) : trace(trace), size(size), tag(0) {} 51 StackTrace(const uptr *trace, u32 size, u32 tag) 65 static uptr GetCurrentPc(); 66 static inline uptr GetPreviousInstructionPc(uptr pc); 67 static uptr GetNextInstructionPc(uptr pc); 74 uptr StackTrace::GetPreviousInstructionPc(uptr pc) [all...] |
sanitizer_allocator_interface.h | 19 using __sanitizer::uptr; 23 uptr __sanitizer_get_estimated_allocated_size(uptr size); 25 SANITIZER_INTERFACE_ATTRIBUTE uptr 27 SANITIZER_INTERFACE_ATTRIBUTE uptr __sanitizer_get_current_allocated_bytes(); 28 SANITIZER_INTERFACE_ATTRIBUTE uptr __sanitizer_get_heap_size(); 29 SANITIZER_INTERFACE_ATTRIBUTE uptr __sanitizer_get_free_bytes(); 30 SANITIZER_INTERFACE_ATTRIBUTE uptr __sanitizer_get_unmapped_bytes(); 33 void (*malloc_hook)(const void *, uptr), 37 /* OPTIONAL */ void __sanitizer_malloc_hook(void *ptr, uptr size) [all...] |
sanitizer_libc.h | 30 void *internal_memchr(const void *s, int c, uptr n); 31 void *internal_memrchr(const void *s, int c, uptr n); 32 int internal_memcmp(const void* s1, const void* s2, uptr n); 33 void *internal_memcpy(void *dest, const void *src, uptr n); 34 void *internal_memmove(void *dest, const void *src, uptr n); 36 void internal_bzero_aligned16(void *s, uptr n); 38 void *internal_memset(void *s, int c, uptr n); 42 uptr internal_strcspn(const char *s, const char *reject); 44 char *internal_strndup(const char *s, uptr n); 45 uptr internal_strlen(const char *s) [all...] |
sanitizer_stacktrace.cc | 20 uptr StackTrace::GetNextInstructionPc(uptr pc) { 30 uptr StackTrace::GetCurrentPc() { 34 void BufferedStackTrace::Init(const uptr *pcs, uptr cnt, uptr extra_top_pc) { 46 static inline uhwptr *GetCanonicFrame(uptr bp, 47 uptr stack_top, 48 uptr stack_bottom) { 52 if (IsValidFrame((uptr)bp_prev[0], stack_top, stack_bottom)) return bp_prev [all...] |
/external/compiler-rt/lib/interception/ |
interception_win.h | 29 bool OverrideFunction(uptr old_func, uptr new_func, uptr *orig_old_func = 0); 32 bool OverrideFunction(const char *name, uptr new_func, uptr *orig_old_func = 0); 35 uptr InternalGetProcAddress(void *module, const char *func_name); 42 const char *function_name, uptr new_function, 43 uptr *orig_old_func); 48 uptr old_func, uptr new_func, uptr *orig_old_func) [all...] |
/external/compiler-rt/lib/tsan/rtl/ |
tsan_platform_windows.cc | 24 uptr GetShadowMemoryConsumption() { 31 void WriteMemoryProfile(char *buf, uptr buf_size, uptr nthread, uptr nlive) {
|
tsan_stack_trace.h | 24 uptr *trace_buffer; // Owned. 28 void Init(const uptr *pcs, uptr cnt, uptr extra_top_pc = 0); 31 void ResizeBuffer(uptr new_size);
|
tsan_fd.h | 42 void FdAcquire(ThreadState *thr, uptr pc, int fd); 43 void FdRelease(ThreadState *thr, uptr pc, int fd); 44 void FdAccess(ThreadState *thr, uptr pc, int fd); 45 void FdClose(ThreadState *thr, uptr pc, int fd, bool write = true); 46 void FdFileCreate(ThreadState *thr, uptr pc, int fd); 47 void FdDup(ThreadState *thr, uptr pc, int oldfd, int newfd, bool write); 48 void FdPipeCreate(ThreadState *thr, uptr pc, int rfd, int wfd); 49 void FdEventCreate(ThreadState *thr, uptr pc, int fd); 50 void FdSignalCreate(ThreadState *thr, uptr pc, int fd); 51 void FdInotifyCreate(ThreadState *thr, uptr pc, int fd) [all...] |
tsan_symbolize.h | 23 SymbolizedStack *SymbolizeCode(uptr addr); 24 ReportLocation *SymbolizeData(uptr addr); 27 ReportStack *NewReportStackEntry(uptr addr);
|
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); 54 MemoryRead(cur_thread(), (uptr)pc, (uptr)addr, kSizeLog1) [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(Processor *proc, uptr p) [all...] |
/external/compiler-rt/lib/dfsan/ |
dfsan_platform.h | 22 static const uptr kShadowAddr = 0x10000; 23 static const uptr kUnionTableAddr = 0x200000000000; 24 static const uptr kAppAddr = 0x700000008000; 25 static const uptr kShadowMask = ~0x700000000000; 29 static const uptr kShadowAddr = 0x10000; 30 static const uptr kUnionTableAddr = 0x2000000000; 31 static const uptr kAppAddr = 0xF000008000; 32 static const uptr kShadowMask = ~0xF000000000; 36 static const uptr kShadowAddr = 0x10000; 37 static const uptr kUnionTableAddr = 0x1000000000 [all...] |
/external/compiler-rt/lib/lsan/ |
lsan_allocator.h | 23 void *Allocate(const StackTrace &stack, uptr size, uptr alignment, 26 void *Reallocate(const StackTrace &stack, void *p, uptr new_size, 27 uptr alignment); 28 uptr GetMallocUsableSize(const void *p); 33 void GetAllocatorCacheRange(uptr *begin, uptr *end);
|
lsan_common.h | 53 uptr pointer_alignment() const { 54 return use_unaligned ? 1 : sizeof(uptr); 64 uptr hit_count; 65 uptr total_size; 73 uptr addr; 74 uptr size; 81 void AddLeakedChunk(uptr chunk, u32 stack_trace_id, uptr leaked_size, 83 void ReportTopLeaks(uptr max_leaks); 86 uptr UnsuppressedLeakCount() [all...] |
/external/compiler-rt/lib/stats/ |
stats.h | 27 uptr addr; 28 uptr data; 37 inline uptr CountFromData(uptr data) { 38 return data & ((1ull << (sizeof(uptr) * 8 - kKindBits)) - 1);
|
/external/compiler-rt/lib/msan/ |
msan_poisoning.h | 22 u32 GetOriginIfPoisoned(uptr addr, uptr size); 27 void SetOriginIfPoisoned(uptr addr, uptr src_shadow, uptr size, u32 src_origin); 32 void CopyOrigin(const void *dst, const void *src, uptr size, StackTrace *stack); 36 void MoveShadowAndOrigin(const void *dst, const void *src, uptr size, 41 void CopyShadowAndOrigin(const void *dst, const void *src, uptr size, 46 void CopyMemory(void *dst, const void *src, uptr size, StackTrace *stack); 49 void SetShadow(const void *ptr, uptr size, u8 value) [all...] |
msan_allocator.h | 22 uptr quarantine_cache[16]; 24 ALIGNED(8) uptr allocator_cache[96 * (512 * 8 + 16)]; // Opaque.
|
/external/compiler-rt/lib/esan/ |
esan_interface.cpp | 34 processRangeAccess(GET_CALLER_PC(), (uptr)Addr, 1, false); 38 processRangeAccess(GET_CALLER_PC(), (uptr)Addr, 2, false); 42 processRangeAccess(GET_CALLER_PC(), (uptr)Addr, 4, false); 46 processRangeAccess(GET_CALLER_PC(), (uptr)Addr, 8, false); 50 processRangeAccess(GET_CALLER_PC(), (uptr)Addr, 16, false); 54 processRangeAccess(GET_CALLER_PC(), (uptr)Addr, 1, true); 58 processRangeAccess(GET_CALLER_PC(), (uptr)Addr, 2, true); 62 processRangeAccess(GET_CALLER_PC(), (uptr)Addr, 4, true); 66 processRangeAccess(GET_CALLER_PC(), (uptr)Addr, 8, true); 70 processRangeAccess(GET_CALLER_PC(), (uptr)Addr, 16, true) [all...] |