Home
last modified time | relevance | path

Searched refs:stk_addr (Results 1 – 9 of 9) sorted by relevance

/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_common_test.cc125 uptr stk_addr = 0; in TestThreadInfo() local
129 GetThreadStackAndTls(main, &stk_addr, &stk_size, &tls_addr, &tls_size); in TestThreadInfo()
132 EXPECT_NE(stk_addr, (uptr)0); in TestThreadInfo()
134 EXPECT_GT((uptr)&stack_var, stk_addr); in TestThreadInfo()
135 EXPECT_LT((uptr)&stack_var, stk_addr + stk_size); in TestThreadInfo()
146 EXPECT_TRUE(tls_addr < stk_addr || tls_addr >= stk_addr + stk_size); in TestThreadInfo()
147 EXPECT_TRUE(tls_end < stk_addr || tls_end >= stk_addr + stk_size); in TestThreadInfo()
148 EXPECT_TRUE((tls_addr < stk_addr) == (tls_end < stk_addr)); in TestThreadInfo()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_rtl_thread.cc82 uptr stk_addr; member
96 args->stk_addr, args->stk_size, args->tls_addr, args->tls_size); in OnStarted()
128 tid, (uptr)epoch0, args->stk_addr, args->stk_size, in OnStarted()
245 uptr stk_addr = 0; in ThreadStart() local
250 GetThreadStackAndTls(tid == 0, &stk_addr, &stk_size, &tls_addr, &tls_size); in ThreadStart()
253 if (stk_addr && stk_size) in ThreadStart()
254 MemoryRangeImitateWrite(thr, /*pc=*/ 1, stk_addr, stk_size); in ThreadStart()
273 OnStartedArgs args = { thr, stk_addr, stk_size, tls_addr, tls_size }; in ThreadStart()
292 if (thr->stk_addr && thr->stk_size) in ThreadFinish()
293 DontNeedShadowFor(thr->stk_addr, thr->stk_size); in ThreadFinish()
Dtsan_rtl_report.cc228 return ((addr >= thr->stk_addr && addr < thr->stk_addr + thr->stk_size) || in IsInStackOrTls()
241 *is_stack = (addr >= thr->stk_addr && addr < thr->stk_addr + thr->stk_size); in IsThreadStackOrTls()
Dtsan_rtl.cc112 uptr stk_addr, uptr stk_size, in ThreadState() argument
125 , stk_addr(stk_addr) in ThreadState()
Dtsan_rtl.h379 const uptr stk_addr; member
409 uptr stk_addr, uptr stk_size,
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_linux_libcdep.cc381 void GetThreadStackAndTls(bool main, uptr *stk_addr, uptr *stk_size, in GetThreadStackAndTls() argument
385 *stk_addr = *stk_size = *tls_addr = *tls_size = 0; in GetThreadStackAndTls()
391 *stk_addr = stack_bottom; in GetThreadStackAndTls()
396 if (*tls_addr > *stk_addr && *tls_addr < *stk_addr + *stk_size) { in GetThreadStackAndTls()
397 CHECK_GT(*tls_addr + *tls_size, *stk_addr); in GetThreadStackAndTls()
398 CHECK_LE(*tls_addr + *tls_size, *stk_addr + *stk_size); in GetThreadStackAndTls()
400 *tls_addr = *stk_addr + *stk_size; in GetThreadStackAndTls()
Dsanitizer_mac.cc331 void GetThreadStackAndTls(bool main, uptr *stk_addr, uptr *stk_size, in GetThreadStackAndTls() argument
336 *stk_addr = stack_bottom; in GetThreadStackAndTls()
341 *stk_addr = 0; in GetThreadStackAndTls()
Dsanitizer_win.cc617 void GetThreadStackAndTls(bool main, uptr *stk_addr, uptr *stk_size, in GetThreadStackAndTls() argument
620 *stk_addr = 0; in GetThreadStackAndTls()
627 *stk_addr = stack_bottom; in GetThreadStackAndTls()
Dsanitizer_common.h77 void GetThreadStackAndTls(bool main, uptr *stk_addr, uptr *stk_size,