HomeSort by relevance Sort by last modified time
    Searched refs:uptr (Results 1 - 25 of 129) sorted by null

1 2 3 4 5 6

  /external/compiler-rt/lib/asan/
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_report.h 23 void DescribeHeapAddress(uptr addr, uptr access_size);
24 bool DescribeAddressIfGlobal(uptr addr);
25 bool DescribeAddressRelativeToGlobal(uptr addr, const __asan_global &g);
26 bool DescribeAddressIfShadow(uptr addr);
27 bool DescribeAddressIfStack(uptr addr, uptr access_size);
29 void DescribeAddress(uptr addr, uptr access_size);
34 void NORETURN ReportSIGSEGV(uptr pc, uptr sp, uptr bp, uptr addr)
    [all...]
asan_malloc_linux.cc 24 DECLARE_REAL_AND_INTERCEPTOR(void*, malloc, uptr size);
26 DECLARE_REAL_AND_INTERCEPTOR(void*, calloc, uptr nmemb, uptr size);
27 DECLARE_REAL_AND_INTERCEPTOR(void*, realloc, void *ptr, uptr size);
28 DECLARE_REAL_AND_INTERCEPTOR(void*, memalign, uptr boundary, uptr size);
31 void* (*malloc)(uptr bytes);
33 void* (*calloc)(uptr n_elements, uptr elem_size);
34 void* (*realloc)(void* oldMem, uptr bytes)
    [all...]
asan_allocator.h 23 static const uptr kNumberOfSizeClasses = 255;
33 uptr size() { return size_; }
41 uptr size_;
60 uptr magic; // Modified by the instrumented code.
61 uptr descr; // Modified by the instrumented code.
103 void Init(uptr stack_size);
106 uptr AllocateStack(uptr size, uptr real_stack);
107 static void OnFree(uptr ptr, uptr size, uptr real_stack)
    [all...]
asan_interceptors.h 20 DECLARE_REAL(int, memcmp, const void *a1, const void *a2, uptr size)
21 DECLARE_REAL(void*, memcpy, void *to, const void *from, uptr size)
22 DECLARE_REAL(void*, memset, void *block, int c, uptr size)
24 DECLARE_REAL(uptr, strlen, const char *s)
25 DECLARE_REAL(char*, strncpy, char *to, const char *from, uptr size)
26 DECLARE_REAL(uptr, strnlen, const char *s, uptr maxlen)
  /external/compiler-rt/lib/sanitizer_common/
sanitizer_stacktrace.h 20 static const uptr kStackTraceMax = 256;
25 uptr size;
26 uptr max_size;
27 uptr trace[kStackTraceMax];
28 static void PrintStack(uptr *addr, uptr size,
31 void CopyTo(uptr *dst, uptr dst_size) {
32 for (uptr i = 0; i < size && i < dst_size; i++)
34 for (uptr i = size; i < dst_size; i++
    [all...]
sanitizer_stackdepot.h 23 u32 StackDepotPut(const uptr *stack, uptr size);
25 const uptr *StackDepotGet(u32 id, uptr *size);
sanitizer_libc.h 29 void *internal_memchr(const void *s, int c, uptr n);
30 int internal_memcmp(const void* s1, const void* s2, uptr n);
31 void *internal_memcpy(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);
42 uptr internal_strnlen(const char *s, uptr maxlen)
    [all...]
sanitizer_procmaps.h 25 bool GetObjectNameAndOffset(uptr addr, uptr *offset,
26 char filename[], uptr filename_size) {
36 bool Next(uptr *start, uptr *end, uptr *offset,
37 char filename[], uptr filename_size);
41 bool GetObjectNameAndOffset(uptr addr, uptr *offset,
42 char filename[], uptr filename_size)
    [all...]
sanitizer_symbolizer.h 34 uptr address;
36 uptr module_offset;
48 void FillAddressAndModuleInfo(uptr addr, const char *mod_name,
49 uptr mod_offset) {
60 uptr SymbolizeCode(uptr address, AddressInfo *frames, uptr max_frames);
68 LoadedModule(const char *module_name, uptr base_address);
69 void addAddressRange(uptr beg, uptr end)
    [all...]
sanitizer_symbolizer_mac.cc 26 uptr GetListOfModules(LoadedModule *modules, uptr max_modules) {
sanitizer_common.h 24 const uptr kWordSize = __WORDSIZE / 8;
25 const uptr kWordSizeInBits = 8 * kWordSize;
26 const uptr kPageSizeBits = 12;
27 const uptr kPageSize = 1UL << kPageSizeBits;
28 const uptr kCacheLineSize = 64;
30 const uptr kMmapGranularity = kPageSize;
32 const uptr kMmapGranularity = 1UL << 16;
37 uptr GetThreadSelf();
38 void GetThreadStackTopAndBottom(bool at_initialization, uptr *stack_top,
39 uptr *stack_bottom)
    [all...]
  /external/compiler-rt/lib/interception/
interception_linux.h 26 bool GetRealFunctionAddress(const char *func_name, uptr *func_addr,
27 uptr real, uptr wrapper);
32 #func, (::__interception::uptr*)&REAL(func), \
33 (::__interception::uptr)&(func), \
34 (::__interception::uptr)&WRAP(func))
interception_mac.cc 21 bool OverrideFunction(uptr old_func, uptr new_func, uptr *orig_old_func) {
interception_win.h 26 bool GetRealFunctionAddress(const char *func_name, uptr *func_addr);
29 bool OverrideFunction(uptr old_func, uptr new_func, uptr *orig_old_func);
35 #func, (::__interception::uptr*)&REAL(func))
39 (::__interception::uptr)func, \
40 (::__interception::uptr)WRAP(func), \
41 (::__interception::uptr*)&REAL(func))
interception_linux.cc 22 bool GetRealFunctionAddress(const char *func_name, uptr *func_addr,
23 uptr real, uptr wrapper) {
24 *func_addr = (uptr)dlsym(RTLD_NEXT, func_name);
interception_mac.h 38 bool OverrideFunction(uptr old_func, uptr new_func, uptr *orig_old_func);
43 (::__interception::uptr)old_func, \
44 (::__interception::uptr)new_func, \
45 (::__interception::uptr*)&REAL(old_func))
  /external/compiler-rt/lib/tsan/rtl/
tsan_platform.h 24 static const uptr kLinuxAppMemBeg = 0x000000000000ULL;
25 static const uptr kLinuxAppMemEnd = 0x00fcffffffffULL;
26 static const uptr kLinuxShadowMsk = 0x100000000000ULL;
31 static const uptr kLinuxAppMemBeg = 0x290000000000ULL;
32 static const uptr kLinuxAppMemEnd = 0x7fffffffffffULL;
34 static const uptr kLinuxAppMemBeg = 0x7cf000000000ULL;
35 static const uptr kLinuxAppMemEnd = 0x7fffffffffffULL;
38 static const uptr kLinuxAppMemMsk = 0x7c0000000000ULL;
49 static const uptr kLinuxShadowBeg = MemToShadow(kLinuxAppMemBeg);
50 static const uptr kLinuxShadowEnd
    [all...]
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_
    [all...]
tsan_symbolize.h 21 ReportStack *SymbolizeCode(uptr addr);
22 ReportStack *SymbolizeData(uptr addr);
24 ReportStack *SymbolizeCodeAddr2Line(uptr addr);
25 ReportStack *SymbolizeDataAddr2Line(uptr addr);
27 ReportStack *NewReportStackEntry(uptr addr);
tsan_interface_inl.h 17 #define CALLERPC ((uptr)__builtin_return_address(0))
22 MemoryAccess(cur_thread(), CALLERPC, (uptr)addr, 0, 0);
26 MemoryAccess(cur_thread(), CALLERPC, (uptr)addr, 1, 0);
30 MemoryAccess(cur_thread(), CALLERPC, (uptr)addr, 2, 0);
34 MemoryAccess(cur_thread(), CALLERPC, (uptr)addr, 3, 0);
38 MemoryAccess(cur_thread(), CALLERPC, (uptr)addr, 0, 1);
42 MemoryAccess(cur_thread(), CALLERPC, (uptr)addr, 1, 1);
46 MemoryAccess(cur_thread(), CALLERPC, (uptr)addr, 2, 1);
50 MemoryAccess(cur_thread(), CALLERPC, (uptr)addr, 3, 1);
56 MemoryAccess(cur_thread(), CALLERPC, (uptr)vptr_p, 3, 1)
    [all...]
tsan_interface.cc 18 #define CALLERPC ((uptr)__builtin_return_address(0))
27 MemoryRead8Byte(cur_thread(), CALLERPC, (uptr)addr);
28 MemoryRead8Byte(cur_thread(), CALLERPC, (uptr)addr + 8);
32 MemoryWrite8Byte(cur_thread(), CALLERPC, (uptr)addr);
33 MemoryWrite8Byte(cur_thread(), CALLERPC, (uptr)addr + 8);
37 Acquire(cur_thread(), CALLERPC, (uptr)addr);
41 Release(cur_thread(), CALLERPC, (uptr)addr);
  /external/compiler-rt/include/sanitizer/
asan_interface.h 24 using __sanitizer::uptr;
33 void __asan_register_global(uptr addr, uptr size, const char *name)
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.
42 uptr has_dynamic_init; // Non-zero if the global has dynamic initializer.
47 void __asan_register_globals(__asan_global *globals, uptr n)
49 void __asan_unregister_globals(__asan_global *globals, uptr n)
55 void __asan_before_dynamic_init(uptr first_addr, uptr last_addr
    [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(-10, &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/tsan/unit_tests/
tsan_stack_test.cc 24 EXPECT_EQ(trace->Size(), (uptr)0);
27 EXPECT_EQ(trace->Size(), (uptr)1);
28 EXPECT_EQ(trace->Get(0), (uptr)42);
33 EXPECT_EQ(trace->Size(), (uptr)2);
34 EXPECT_EQ(trace->Get(0), (uptr)100);
35 EXPECT_EQ(trace->Get(1), (uptr)101);
38 EXPECT_EQ(trace->Size(), (uptr)3);
39 EXPECT_EQ(trace->Get(0), (uptr)100);
40 EXPECT_EQ(trace->Get(1), (uptr)101);
41 EXPECT_EQ(trace->Get(2), (uptr)42)
    [all...]

Completed in 1026 milliseconds

1 2 3 4 5 6