HomeSort by relevance Sort by last modified time
    Searched full:uptr (Results 51 - 75 of 245) sorted by null

1 23 4 5 6 7 8 910

  /external/compiler-rt/lib/sanitizer_common/
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_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_common.cc 24 uptr GetPageSizeCached() {
25 static uptr PageSize;
43 uptr report_fd_pid = 0;
47 uptr stoptheworld_tracer_pid = 0;
50 uptr stoptheworld_tracer_ppid = 0;
83 uptr ReadFileToBuffer(const char *file_name, char **buff,
84 uptr *buff_size, uptr max_len) {
85 uptr PageSize = GetPageSizeCached();
86 uptr kMinFileLen = PageSize
    [all...]
sanitizer_libc.cc 33 void *internal_memchr(const void *s, int c, uptr n) {
35 for (uptr i = 0; i < n; ++i, ++t)
41 int internal_memcmp(const void* s1, const void* s2, uptr n) {
44 for (uptr i = 0; i < n; ++i, ++t1, ++t2)
50 void *internal_memcpy(void *dest, const void *src, uptr n) {
53 for (uptr i = 0; i < n; ++i)
58 void *internal_memmove(void *dest, const void *src, uptr n) {
76 void internal_bzero_aligned16(void *s, uptr n) {
78 CHECK_EQ((reinterpret_cast<uptr>(s) | n) & 15, 0);
85 void *internal_memset(void* s, int c, uptr n)
    [all...]
sanitizer_persistent_allocator.h 25 void *alloc(uptr size);
28 void *tryAlloc(uptr size);
34 inline void *PersistentAllocator::tryAlloc(uptr size) {
37 uptr cmp = atomic_load(&region_pos, memory_order_acquire);
38 uptr end = atomic_load(&region_end, memory_order_acquire);
46 inline void *PersistentAllocator::alloc(uptr size) {
56 uptr allocsz = 64 * 1024;
58 uptr mem = (uptr)MmapOrDie(allocsz, "stack depot");
65 inline void *PersistentAlloc(uptr sz)
    [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_stackdepot.cc 22 const uptr *stack;
23 uptr size;
29 u32 h = seed ^ (size * sizeof(uptr));
30 for (uptr i = 0; i < size; i++) {
50 uptr size;
51 uptr stack[1]; // [size]
66 uptr i = 0;
72 static uptr storage_size(const args_type &args) {
73 return sizeof(StackDepotNode) + (args.size - 1) * sizeof(uptr);
78 internal_memcpy(stack, args.stack, size * sizeof(uptr));
    [all...]
sanitizer_stacktrace_libcdep.cc 20 static void PrintStackFramePrefix(InternalScopedString *buffer, uptr frame_num,
21 uptr pc) {
25 void StackTrace::PrintStack(const uptr *addr, uptr size) {
33 uptr frame_num = 0;
34 for (uptr i = 0; i < size && addr[i]; i++) {
37 uptr pc = GetPreviousInstructionPc(addr[i]);
38 uptr addr_frames_num = Symbolizer::GetOrInit()->SymbolizePC(
48 for (uptr j = 0; j < addr_frames_num; j++) {
74 void StackTrace::Unwind(uptr max_depth, uptr pc, uptr bp, void *context
    [all...]
  /external/compiler-rt/lib/tsan/rtl/
tsan_interface_ann.cc 26 #define CALLERPC ((uptr)__builtin_return_address(0))
35 uptr pc)
53 const uptr caller_pc = (uptr)__builtin_return_address(0); \
57 const uptr pc = __sanitizer::StackTrace::GetCurrentPc(); \
68 uptr addr;
69 uptr size;
89 char *f, int l, uptr addr, uptr size, char *desc) {
117 static ExpectRace *FindRace(ExpectRace *list, uptr addr, uptr size)
    [all...]
tsan_interface.cc 19 #define CALLERPC ((uptr)__builtin_return_address(0))
32 MemoryRead(cur_thread(), CALLERPC, (uptr)addr, kSizeLog8);
33 MemoryRead(cur_thread(), CALLERPC, (uptr)addr + 8, kSizeLog8);
37 MemoryWrite(cur_thread(), CALLERPC, (uptr)addr, kSizeLog8);
38 MemoryWrite(cur_thread(), CALLERPC, (uptr)addr + 8, kSizeLog8);
42 UnalignedMemoryAccess(cur_thread(), CALLERPC, (uptr)addr, 2, false, false);
47 UnalignedMemoryAccess(cur_thread(), CALLERPC, (uptr)addr, 4, false, false);
52 UnalignedMemoryAccess(cur_thread(), CALLERPC, (uptr)addr, 8, false, false);
57 UnalignedMemoryAccess(cur_thread(), CALLERPC, (uptr)addr, 2, true, false);
62 UnalignedMemoryAccess(cur_thread(), CALLERPC, (uptr)addr, 4, true, false)
    [all...]
tsan_stack_trace.cc 26 StackTrace::StackTrace(uptr *buf, uptr cnt)
47 void StackTrace::Init(const uptr *pcs, uptr cnt) {
55 s_ = (uptr*)internal_alloc(MBlockStackTrace, cnt * sizeof(s_[0]));
61 void StackTrace::ObtainCurrent(ThreadState *thr, uptr toppc) {
66 uptr start = 0;
79 s_ = (uptr*)internal_alloc(MBlockStackTrace,
82 for (uptr i = 0; i < n_; i++)
99 uptr StackTrace::Size() const
    [all...]
tsan_interceptors.cc 47 extern "C" int pthread_attr_setstacksize(void *attr, uptr stacksize);
61 extern "C" void *__libc_malloc(uptr size);
62 extern "C" void *__libc_calloc(uptr size, uptr n);
63 extern "C" void *__libc_realloc(void *ptr, uptr size);
151 MemoryResetRange(thr, (uptr)&SigCtx, (uptr)ctx, sizeof(*ctx));
161 ScopedInterceptor(ThreadState *thr, const char *fname, uptr pc);
165 const uptr pc_;
170 uptr pc
    [all...]
tsan_sync.cc 20 void DDMutexInit(ThreadState *thr, uptr pc, SyncVar *s);
27 void SyncVar::Init(ThreadState *thr, uptr pc, uptr addr, u64 uid) {
58 void MetaMap::AllocBlock(ThreadState *thr, uptr pc, uptr p, uptr sz) {
69 uptr MetaMap::FreeBlock(ThreadState *thr, uptr pc, uptr p) {
73 uptr sz = RoundUpTo(b->siz, kMetaShadowCell)
    [all...]
  /external/compiler-rt/lib/lsan/
lsan_thread.h 27 uptr stack_begin() { return stack_begin_; }
28 uptr stack_end() { return stack_end_; }
29 uptr tls_begin() { return tls_begin_; }
30 uptr tls_end() { return tls_end_; }
31 uptr cache_begin() { return cache_begin_; }
32 uptr cache_end() { return cache_end_; }
34 uptr stack_begin_, stack_end_,
41 void ThreadStart(u32 tid, uptr os_id);
43 u32 ThreadCreate(u32 tid, uptr uid, bool detached);
45 u32 ThreadTid(uptr uid)
    [all...]
lsan_interceptors.cc 40 uptr stack_top = 0, stack_bottom = 0; \
66 INTERCEPTOR(void*, malloc, uptr size) {
77 INTERCEPTOR(void*, calloc, uptr nmemb, uptr size) {
80 const uptr kCallocPoolSize = 1024;
81 static uptr calloc_memory_for_dlsym[kCallocPoolSize];
82 static uptr allocated;
83 uptr size_in_words = ((nmemb * size) + kWordSize - 1) / kWordSize;
96 INTERCEPTOR(void*, realloc, void *q, uptr size) {
102 INTERCEPTOR(void*, memalign, uptr alignment, uptr size)
    [all...]
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(void *p);
33 void GetAllocatorCacheRange(uptr *begin, uptr *end);
  /external/compiler-rt/lib/asan/
asan_stats.cc 34 uptr (&array)[kNumberOfSizeClasses]) {
36 for (uptr i = 0; i < kNumberOfSizeClasses; i++) {
63 uptr *dst_ptr = reinterpret_cast<uptr*>(this);
64 const uptr *src_ptr = reinterpret_cast<const uptr*>(stats);
65 uptr num_fields = sizeof(*this) / sizeof(uptr);
66 for (uptr i = 0; i < num_fields; i++)
77 static uptr max_malloced_memory
    [all...]
asan_report.cc 31 static uptr error_message_buffer_pos = 0;
32 static uptr error_message_buffer_size = 0;
36 uptr length = internal_strlen(buffer);
38 uptr remaining = error_message_buffer_size - error_message_buffer_pos;
100 u8 *bytes, u8 *guilty, uptr n) {
103 for (uptr i = 0; i < n; i++) {
149 static void PrintShadowMemoryForAddress(uptr addr) {
151 uptr shadow_addr = MemToShadow(addr);
152 const uptr n_bytes_per_row = 16;
153 uptr aligned_shadow = shadow_addr & ~(n_bytes_per_row - 1)
    [all...]
asan_thread.cc 80 uptr PageSize = GetPageSizeCached();
81 uptr size = RoundUpTo(sizeof(AsanThread), PageSize);
109 uptr size = RoundUpTo(sizeof(AsanThread), GetPageSizeCached());
117 uptr stack_size = this->stack_size();
120 uptr old_val = 0;
130 uptr stack_size_log = Log2(RoundUpToPowerOfTwo(stack_size));
133 Min(stack_size_log, static_cast<uptr>(flags()->max_uar_stack_size_log));
135 Max(stack_size_log, static_cast<uptr>(flags()->min_uar_stack_size_log));
158 thread_return_t AsanThread::ThreadStart(uptr os_id) {
185 uptr tls_size = 0
    [all...]
  /external/compiler-rt/lib/tsan/tests/unit/
tsan_mutexset_test.cc 18 static void Expect(const MutexSet &mset, uptr i, u64 id, bool write, u64 epoch,
29 EXPECT_EQ(mset.Size(), (uptr)0);
32 EXPECT_EQ(mset.Size(), (uptr)1);
35 EXPECT_EQ(mset.Size(), (uptr)0);
39 EXPECT_EQ(mset.Size(), (uptr)2);
43 EXPECT_EQ(mset.Size(), (uptr)1);
45 EXPECT_EQ(mset.Size(), (uptr)0);
51 EXPECT_EQ(mset.Size(), (uptr)1);
55 EXPECT_EQ(mset.Size(), (uptr)1);
59 EXPECT_EQ(mset.Size(), (uptr)1)
    [all...]
tsan_shadow_test.cc 55 CHECK(IsAppMem((uptr)&global));
56 CHECK(IsAppMem((uptr)&stack));
57 CHECK(IsAppMem((uptr)heap));
59 CHECK(IsShadowMem(MemToShadow((uptr)&global)));
60 CHECK(IsShadowMem(MemToShadow((uptr)&stack)));
61 CHECK(IsShadowMem(MemToShadow((uptr)heap)));
67 CHECK_EQ((uptr)data % kShadowSize, 0);
68 uptr s0 = MemToShadow((uptr)&data[0]);
71 CHECK_EQ(s0, MemToShadow((uptr)&data[i]))
    [all...]
  /external/compiler-rt/lib/msan/
msan_thread.cc 12 uptr PageSize = GetPageSizeCached();
13 uptr size = RoundUpTo(sizeof(MsanThread), PageSize);
23 uptr tls_size = 0;
24 uptr stack_size = 0;
31 CHECK(AddrIsInStack((uptr)&local));
39 for (uptr i = 0; i < dtls->dtv_size; ++i)
61 uptr size = RoundUpTo(sizeof(MsanThread), GetPageSizeCached());
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_;
  /external/compiler-rt/lib/sanitizer_common/tests/
sanitizer_stacktrace_test.cc 23 bool TryFastUnwind(uptr max_depth) {
26 trace.Unwind(max_depth, start_pc, (uptr)&fake_stack[0], 0, fake_top,
31 uptr fake_stack[10];
32 uptr start_pc;
33 uptr fake_top;
34 uptr fake_bottom;
38 static uptr PC(uptr idx) {
45 for (uptr i = 0; i+1 < ARRAY_SIZE(fake_stack); i += 2) {
46 fake_stack[i] = (uptr)&fake_stack[i+2]; // f
    [all...]
  /external/compiler-rt/lib/interception/
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))

Completed in 2605 milliseconds

1 23 4 5 6 7 8 910