/external/compiler-rt/lib/tsan/rtl/ |
D | tsan_rtl_thread.cc | 84 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 …]
|
D | tsan_rtl.cc | 113 uptr tls_addr, uptr tls_size) in ThreadState() argument 127 , tls_addr(tls_addr) in ThreadState()
|
D | tsan_rtl.h | 409 const uptr tls_addr; member 443 uptr tls_addr, uptr tls_size);
|
D | tsan_rtl_report.cc | 234 (addr >= thr->tls_addr && addr < thr->tls_addr + thr->tls_size)); in IsInStackOrTls()
|
/external/llvm-project/compiler-rt/lib/tsan/rtl/ |
D | tsan_platform_mac.cpp | 284 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()
|
D | tsan_platform_linux.cpp | 430 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()
|
D | tsan_rtl_thread.cpp | 84 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()
|
D | tsan_rtl.cpp | 115 uptr tls_addr, uptr tls_size) in ThreadState() argument 129 , tls_addr(tls_addr) in ThreadState()
|
D | tsan_rtl_report.cpp | 239 (addr >= thr->tls_addr && addr < thr->tls_addr + thr->tls_size)); in IsInStackOrTls()
|
D | tsan_rtl.h | 419 const uptr tls_addr; member 453 uptr tls_addr, uptr tls_size);
|
D | tsan_platform.h | 1041 void ImitateTlsWrite(ThreadState *thr, uptr tls_addr, uptr tls_size);
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_common_test.cc | 127 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/ |
D | sanitizer_linux_libcdep.cc | 390 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()
|
D | sanitizer_mac.cc | 364 uptr *tls_addr, uptr *tls_size) { in GetThreadStackAndTls() argument 370 *tls_addr = 0; in GetThreadStackAndTls() 375 *tls_addr = 0; in GetThreadStackAndTls()
|
D | sanitizer_win.cc | 699 uptr *tls_addr, uptr *tls_size) { in GetThreadStackAndTls() argument 703 *tls_addr = 0; in GetThreadStackAndTls() 710 *tls_addr = 0; in GetThreadStackAndTls()
|
D | sanitizer_common.h | 80 uptr *tls_addr, uptr *tls_size);
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_common_test.cpp | 182 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/ |
D | sanitizer_linux_libcdep.cpp | 535 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()
|
D | sanitizer_rtems.cpp | 93 uptr *tls_addr, uptr *tls_size) { in GetThreadStackAndTls() argument 98 *tls_addr = *tls_size = 0; in GetThreadStackAndTls()
|
D | sanitizer_win.cpp | 842 uptr *tls_addr, uptr *tls_size) { in GetThreadStackAndTls() argument 846 *tls_addr = 0; in GetThreadStackAndTls() 853 *tls_addr = 0; in GetThreadStackAndTls()
|
D | sanitizer_mac.cpp | 561 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/ |
D | asan_posix.cpp | 61 uptr default_bottom, tls_addr, tls_size, stack_size; in PlatformUnpoisonStacks() local 62 GetThreadStackAndTls(/*main=*/false, &default_bottom, &stack_size, &tls_addr, in PlatformUnpoisonStacks()
|
D | asan_rtl.cpp | 588 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/ |
D | asan_rtl.cc | 611 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/ |
D | DynamicLoaderDarwin.cpp | 1088 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()
|