Home
last modified time | relevance | path

Searched refs:tls_addr (Results 1 – 25 of 30) sorted by relevance

12

/external/compiler-rt/lib/tsan/rtl/
Dtsan_rtl_thread.cc84 uptr tls_addr; member
96 args->stk_addr, args->stk_size, args->tls_addr, args->tls_size); in OnStarted()
124 args->tls_addr, args->tls_size); in OnStarted()
235 uptr tls_addr = 0; in ThreadStart() local
238 GetThreadStackAndTls(tid == 0, &stk_addr, &stk_size, &tls_addr, &tls_size); in ThreadStart()
244 if (tls_addr && tls_size) { in ThreadStart()
248 CHECK_GE(thr_beg, tls_addr); in ThreadStart()
249 CHECK_LE(thr_beg, tls_addr + tls_size); in ThreadStart()
250 CHECK_GE(thr_end, tls_addr); in ThreadStart()
251 CHECK_LE(thr_end, tls_addr + tls_size); in ThreadStart()
[all …]
Dtsan_rtl.cc113 uptr tls_addr, uptr tls_size) in ThreadState() argument
127 , tls_addr(tls_addr) in ThreadState()
Dtsan_rtl.h409 const uptr tls_addr; member
443 uptr tls_addr, uptr tls_size);
Dtsan_rtl_report.cc234 (addr >= thr->tls_addr && addr < thr->tls_addr + thr->tls_size)); in IsInStackOrTls()
/external/llvm-project/compiler-rt/lib/tsan/rtl/
Dtsan_platform_mac.cpp284 void ImitateTlsWrite(ThreadState *thr, uptr tls_addr, uptr tls_size) { in ImitateTlsWrite() argument
287 uptr tls_end = tls_addr + tls_size; in ImitateTlsWrite()
290 MemoryRangeImitateWrite(thr, /*pc=*/2, tls_addr, tls_size); in ImitateTlsWrite()
294 CHECK_GE(thr_state_start, tls_addr); in ImitateTlsWrite()
295 CHECK_LE(thr_state_start, tls_addr + tls_size); in ImitateTlsWrite()
296 CHECK_GE(thr_state_end, tls_addr); in ImitateTlsWrite()
297 CHECK_LE(thr_state_end, tls_addr + tls_size); in ImitateTlsWrite()
298 MemoryRangeImitateWrite(thr, /*pc=*/2, tls_addr, in ImitateTlsWrite()
299 thr_state_start - tls_addr); in ImitateTlsWrite()
Dtsan_platform_linux.cpp430 void ImitateTlsWrite(ThreadState *thr, uptr tls_addr, uptr tls_size) { in ImitateTlsWrite() argument
434 CHECK_GE(thr_beg, tls_addr); in ImitateTlsWrite()
435 CHECK_LE(thr_beg, tls_addr + tls_size); in ImitateTlsWrite()
436 CHECK_GE(thr_end, tls_addr); in ImitateTlsWrite()
437 CHECK_LE(thr_end, tls_addr + tls_size); in ImitateTlsWrite()
439 MemoryRangeImitateWrite(thr, /*pc=*/2, tls_addr, thr_beg - tls_addr); in ImitateTlsWrite()
441 tls_addr + tls_size - thr_end); in ImitateTlsWrite()
Dtsan_rtl_thread.cpp84 uptr tls_addr; member
96 args->stk_addr, args->stk_size, args->tls_addr, args->tls_size); in OnStarted()
124 args->tls_addr, args->tls_size); in OnStarted()
249 uptr tls_addr = 0; in ThreadStart() local
253 GetThreadStackAndTls(tid == 0, &stk_addr, &stk_size, &tls_addr, &tls_size); in ThreadStart()
259 if (tls_addr && tls_size) ImitateTlsWrite(thr, tls_addr, tls_size); in ThreadStart()
264 OnStartedArgs args = { thr, stk_addr, stk_size, tls_addr, tls_size }; in ThreadStart()
285 if (thr->tls_addr && thr->tls_size) in ThreadFinish()
286 DontNeedShadowFor(thr->tls_addr, thr->tls_size); in ThreadFinish()
Dtsan_rtl.cpp115 uptr tls_addr, uptr tls_size) in ThreadState() argument
129 , tls_addr(tls_addr) in ThreadState()
Dtsan_rtl_report.cpp239 (addr >= thr->tls_addr && addr < thr->tls_addr + thr->tls_size)); in IsInStackOrTls()
Dtsan_rtl.h419 const uptr tls_addr; member
453 uptr tls_addr, uptr tls_size);
Dtsan_platform.h1041 void ImitateTlsWrite(ThreadState *thr, uptr tls_addr, uptr tls_size);
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_common_test.cc127 uptr tls_addr = 0; in TestThreadInfo() local
129 GetThreadStackAndTls(main, &stk_addr, &stk_size, &tls_addr, &tls_size); in TestThreadInfo()
139 EXPECT_NE(tls_addr, (uptr)0); in TestThreadInfo()
141 EXPECT_GT((uptr)&thread_var, tls_addr); in TestThreadInfo()
142 EXPECT_LT((uptr)&thread_var, tls_addr + tls_size); in TestThreadInfo()
145 uptr tls_end = tls_addr + tls_size; in TestThreadInfo()
146 EXPECT_TRUE(tls_addr < stk_addr || tls_addr >= stk_addr + stk_size); in TestThreadInfo()
148 EXPECT_TRUE((tls_addr < stk_addr) == (tls_end < stk_addr)); in TestThreadInfo()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_linux_libcdep.cc390 uptr *tls_addr, uptr *tls_size) { in GetThreadStackAndTls() argument
393 *stk_addr = *stk_size = *tls_addr = *tls_size = 0; in GetThreadStackAndTls()
395 GetTls(tls_addr, tls_size); in GetThreadStackAndTls()
404 if (*tls_addr > *stk_addr && *tls_addr < *stk_addr + *stk_size) { in GetThreadStackAndTls()
405 CHECK_GT(*tls_addr + *tls_size, *stk_addr); in GetThreadStackAndTls()
406 CHECK_LE(*tls_addr + *tls_size, *stk_addr + *stk_size); in GetThreadStackAndTls()
408 *tls_addr = *stk_addr + *stk_size; in GetThreadStackAndTls()
Dsanitizer_mac.cc364 uptr *tls_addr, uptr *tls_size) { in GetThreadStackAndTls() argument
370 *tls_addr = 0; in GetThreadStackAndTls()
375 *tls_addr = 0; in GetThreadStackAndTls()
Dsanitizer_win.cc699 uptr *tls_addr, uptr *tls_size) { in GetThreadStackAndTls() argument
703 *tls_addr = 0; in GetThreadStackAndTls()
710 *tls_addr = 0; in GetThreadStackAndTls()
Dsanitizer_common.h80 uptr *tls_addr, uptr *tls_size);
/external/llvm-project/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_common_test.cpp182 uptr tls_addr = 0; in TestThreadInfo() local
184 GetThreadStackAndTls(main, &stk_addr, &stk_size, &tls_addr, &tls_size); in TestThreadInfo()
194 EXPECT_NE(tls_addr, (uptr)0); in TestThreadInfo()
196 EXPECT_GT((uptr)&thread_var, tls_addr); in TestThreadInfo()
197 EXPECT_LT((uptr)&thread_var, tls_addr + tls_size); in TestThreadInfo()
200 uptr tls_end = tls_addr + tls_size; in TestThreadInfo()
201 EXPECT_TRUE(tls_addr < stk_addr || tls_addr >= stk_addr + stk_size); in TestThreadInfo()
203 EXPECT_TRUE((tls_addr < stk_addr) == (tls_end < stk_addr)); in TestThreadInfo()
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_linux_libcdep.cpp535 uptr *tls_addr, uptr *tls_size) { in GetThreadStackAndTls() argument
538 *stk_addr = *stk_size = *tls_addr = *tls_size = 0; in GetThreadStackAndTls()
540 GetTls(tls_addr, tls_size); in GetThreadStackAndTls()
549 if (*tls_addr > *stk_addr && *tls_addr < *stk_addr + *stk_size) { in GetThreadStackAndTls()
550 CHECK_GT(*tls_addr + *tls_size, *stk_addr); in GetThreadStackAndTls()
551 CHECK_LE(*tls_addr + *tls_size, *stk_addr + *stk_size); in GetThreadStackAndTls()
553 *tls_addr = *stk_addr + *stk_size; in GetThreadStackAndTls()
Dsanitizer_rtems.cpp93 uptr *tls_addr, uptr *tls_size) { in GetThreadStackAndTls() argument
98 *tls_addr = *tls_size = 0; in GetThreadStackAndTls()
Dsanitizer_win.cpp842 uptr *tls_addr, uptr *tls_size) { in GetThreadStackAndTls() argument
846 *tls_addr = 0; in GetThreadStackAndTls()
853 *tls_addr = 0; in GetThreadStackAndTls()
Dsanitizer_mac.cpp561 uptr *tls_addr, uptr *tls_size) { in GetThreadStackAndTls() argument
567 *tls_addr = TlsBaseAddr(); in GetThreadStackAndTls()
572 *tls_addr = 0; in GetThreadStackAndTls()
/external/llvm-project/compiler-rt/lib/asan/
Dasan_posix.cpp61 uptr default_bottom, tls_addr, tls_size, stack_size; in PlatformUnpoisonStacks() local
62 GetThreadStackAndTls(/*main=*/false, &default_bottom, &stack_size, &tls_addr, in PlatformUnpoisonStacks()
Dasan_rtl.cpp588 uptr tls_addr, tls_size, stack_size; in UnpoisonDefaultStack() local
589 GetThreadStackAndTls(/*main=*/false, &bottom, &stack_size, &tls_addr, in UnpoisonDefaultStack()
/external/compiler-rt/lib/asan/
Dasan_rtl.cc611 uptr tls_addr, tls_size, stack_size; in __asan_handle_no_return() local
612 GetThreadStackAndTls(/*main=*/false, &bottom, &stack_size, &tls_addr, in __asan_handle_no_return()
/external/llvm-project/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/
DDynamicLoaderDarwin.cpp1088 lldb_private::Address tls_addr; in GetThreadLocalData() local
1089 if (module_sp->ResolveFileAddress(tls_file_addr, tls_addr)) { in GetThreadLocalData()
1093 if (target.ReadMemory(tls_addr, false, buf, tsl_data_size, error) == in GetThreadLocalData()

12