/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
H A D | sanitizer_tls_get_addr.cc | 98 uptr tls_size = 0; in DTLS_on_tls_get_addr() local 105 tls_size = dtls.last_memalign_size; in DTLS_on_tls_get_addr() 107 tls_beg, tls_size); in DTLS_on_tls_get_addr() 112 tls_size = 0; in DTLS_on_tls_get_addr() 116 tls_size = header->size; in DTLS_on_tls_get_addr() 119 tls_beg, tls_size); in DTLS_on_tls_get_addr() 123 tls_size = 0; in DTLS_on_tls_get_addr() 126 dtls.dtv[dso_id].size = tls_size; in DTLS_on_tls_get_addr()
|
H A D | sanitizer_linux_libcdep.cc | 249 size_t tls_size = 0; in InitTlsSize() 256 &tls_size, &tls_align); in InitTlsSize() 259 &tls_size, &tls_align); in InitTlsSize() 262 g_tls_size = RoundUpTo(tls_size, tls_align); in InitTlsSize() 457 // tls_size = round(tls_static_space, tcbalign); in GetTls() 510 uptr *tls_addr, uptr *tls_size) { in GetThreadStackAndTls() 513 *stk_addr = *stk_size = *tls_addr = *tls_size = 0; in GetThreadStackAndTls() 515 GetTls(tls_addr, tls_size); in GetThreadStackAndTls() 525 CHECK_GT(*tls_addr + *tls_size, *stk_addr); in GetThreadStackAndTls() 526 CHECK_LE(*tls_addr + *tls_size, *stk_add in GetThreadStackAndTls() 250 size_t tls_size = 0; InitTlsSize() local 511 GetThreadStackAndTls(bool main,uptr * stk_addr,uptr * stk_size,uptr * tls_addr,uptr * tls_size) GetThreadStackAndTls() argument [all...] |
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/ |
H A D | sanitizer_tls_get_addr.cc | 96 uptr tls_size = 0; in DTLS_on_tls_get_addr() local 103 tls_size = dtls.last_memalign_size; in DTLS_on_tls_get_addr() 105 tls_beg, tls_size); in DTLS_on_tls_get_addr() 110 tls_size = 0; in DTLS_on_tls_get_addr() 114 tls_size = header->size; in DTLS_on_tls_get_addr() 117 tls_beg, tls_size); in DTLS_on_tls_get_addr() 121 tls_size = 0; in DTLS_on_tls_get_addr() 124 dtls.dtv[dso_id].size = tls_size; in DTLS_on_tls_get_addr()
|
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/asan/ |
H A D | asan_rtems.cc | 94 uptr stack_bottom, stack_size, tls_bottom, tls_size; member 101 uptr tls_bottom, uptr tls_size) { in CreateAsanThread() argument 111 tls_bottom, tls_size}; in CreateAsanThread() 127 tls_end_ = options->tls_bottom + options->tls_size; in SetThreadStackAndTls() 142 uptr tls_bottom, uptr tls_size) { in BeforeThreadCreateHook() argument 151 stack_bottom, stack_size, tls_bottom, tls_size); in BeforeThreadCreateHook() 227 void *tls_base, size_t tls_size) { in __sanitizer_before_thread_create_hook() argument 231 reinterpret_cast<uptr>(tls_base), tls_size); in __sanitizer_before_thread_create_hook()
|
H A D | asan_thread.cc | 292 uptr tls_size = 0; in SetThreadStackAndTls() local 295 const_cast<uptr *>(&stack_size), &tls_begin_, &tls_size); in SetThreadStackAndTls() 297 tls_end_ = tls_begin_ + tls_size; in SetThreadStackAndTls()
|
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/asan/ |
H A D | asan_rtems.cc | 96 uptr stack_bottom, stack_size, tls_bottom, tls_size; member 103 uptr tls_bottom, uptr tls_size) { in CreateAsanThread() argument 113 tls_bottom, tls_size}; in CreateAsanThread() 129 tls_end_ = options->tls_bottom + options->tls_size; in SetThreadStackAndTls() 144 uptr tls_bottom, uptr tls_size) { in BeforeThreadCreateHook() argument 153 stack_bottom, stack_size, tls_bottom, tls_size); in BeforeThreadCreateHook() 235 void *tls_base, size_t tls_size) { in __sanitizer_before_thread_create_hook() argument 239 reinterpret_cast<uptr>(tls_base), tls_size); in __sanitizer_before_thread_create_hook()
|
H A D | asan_thread.cc | 292 uptr tls_size = 0; in SetThreadStackAndTls() local 295 &tls_size); in SetThreadStackAndTls() 297 tls_end_ = tls_begin_ + tls_size; in SetThreadStackAndTls()
|
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/ |
H A D | sanitizer_tls_get_addr.cpp | 119 uptr tls_size = 0; in DTLS_on_tls_get_addr() local 127 tls_size = dtls.last_memalign_size; in DTLS_on_tls_get_addr() 129 tls_beg, tls_size); in DTLS_on_tls_get_addr() 134 tls_size = 0; in DTLS_on_tls_get_addr() 138 tls_size = header->size; in DTLS_on_tls_get_addr() 141 tls_beg, tls_size); in DTLS_on_tls_get_addr() 145 tls_size = 0; in DTLS_on_tls_get_addr() 148 dtv->size = tls_size; in DTLS_on_tls_get_addr()
|
/netbsd-src/lib/libc/tls/ |
H A D | tls.c | 62 static size_t tls_size; 91 tls_allocation = tls_size; in __weak_alias() 93 tls_allocation = roundup2(tls_size, alignof(max_align_t)); in __weak_alias() 114 /* LINTED tls_size is rounded above */ in __weak_alias() 116 p = (uint8_t *)tcb - tls_size; in __weak_alias() 161 tls_size = phdr->p_memsz; in __libc_static_tls_setup_cb() 163 tls_size = roundup2(phdr->p_memsz, phdr->p_align); in __libc_static_tls_setup_cb() 60 static size_t tls_size; global() variable
|
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/tsan/ |
H A D | tsan_rtl_thread.cpp | 148 uptr tls_size; member 156 uptr tls_size = 0; in ThreadStart() local 160 &tls_size); in ThreadStart() 164 OnStartedArgs args = { thr, stk_addr, stk_size, tls_addr, tls_size }; in ThreadStart() 188 if (tls_addr && tls_size) in ThreadStart() 189 ImitateTlsWrite(thr, tls_addr, tls_size); in ThreadStart() 203 args->stk_size, args->tls_addr, args->tls_size); in OnStarted() 220 args->tls_size); in OnStarted() 227 if (thr->tls_addr && thr->tls_size) in ThreadFinish() 228 DontNeedShadowFor(thr->tls_addr, thr->tls_size); in ThreadFinish()
|
H A D | tsan_platform_mac.cpp | 288 void ImitateTlsWrite(ThreadState *thr, uptr tls_addr, uptr tls_size) { in ImitateTlsWrite() argument 291 uptr tls_end = tls_addr + tls_size; in ImitateTlsWrite() 296 MemoryRangeImitateWrite(thr, pc, tls_addr, tls_size); in ImitateTlsWrite() 301 CHECK_LE(thr_state_start, tls_addr + tls_size); in ImitateTlsWrite() 303 CHECK_LE(thr_state_end, tls_addr + tls_size); in ImitateTlsWrite()
|
H A D | tsan_platform_linux.cpp | 459 void ImitateTlsWrite(ThreadState *thr, uptr tls_addr, uptr tls_size) { in ImitateTlsWrite() argument 464 CHECK_LE(thr_beg, tls_addr + tls_size); in ImitateTlsWrite() 466 CHECK_LE(thr_end, tls_addr + tls_size); in ImitateTlsWrite() 471 MemoryRangeImitateWrite(thr, pc, thr_end, tls_addr + tls_size - thr_end); in ImitateTlsWrite()
|
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/tsan/ |
H A D | tsan_rtl_thread.cc | 84 uptr tls_size; member 95 args->stk_addr, args->stk_size, args->tls_addr, args->tls_size); in OnStarted() 123 args->tls_addr, args->tls_size); in OnStarted() 245 uptr tls_size = 0; in ThreadStart() local 247 GetThreadStackAndTls(tid == 0, &stk_addr, &stk_size, &tls_addr, &tls_size); in ThreadStart() 253 if (tls_addr && tls_size) ImitateTlsWrite(thr, tls_addr, tls_size); in ThreadStart() 258 OnStartedArgs args = { thr, stk_addr, stk_size, tls_addr, tls_size }; in ThreadStart() 279 if (thr->tls_addr && thr->tls_size) in ThreadFinish() 280 DontNeedShadowFor(thr->tls_addr, thr->tls_size); in ThreadFinish()
|
H A D | tsan_platform_mac.cc | 263 void ImitateTlsWrite(ThreadState *thr, uptr tls_addr, uptr tls_size) { in ImitateTlsWrite() argument 266 uptr tls_end = tls_addr + tls_size; in ImitateTlsWrite() 269 MemoryRangeImitateWrite(thr, /*pc=*/2, tls_addr, tls_size); in ImitateTlsWrite() 274 CHECK_LE(thr_state_start, tls_addr + tls_size); in ImitateTlsWrite() 276 CHECK_LE(thr_state_end, tls_addr + tls_size); in ImitateTlsWrite()
|
H A D | tsan_platform_linux.cc | 336 void ImitateTlsWrite(ThreadState *thr, uptr tls_addr, uptr tls_size) { in ImitateTlsWrite() argument 341 CHECK_LE(thr_beg, tls_addr + tls_size); in ImitateTlsWrite() 343 CHECK_LE(thr_end, tls_addr + tls_size); in ImitateTlsWrite() 347 tls_addr + tls_size - thr_end); in ImitateTlsWrite()
|
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/ |
H A D | tsan_rtl_thread.cc | 86 uptr tls_size; member 97 args->stk_addr, args->stk_size, args->tls_addr, args->tls_size); in OnStarted() 125 args->tls_addr, args->tls_size); in OnStarted() 247 uptr tls_size = 0; in ThreadStart() local 249 GetThreadStackAndTls(tid == 0, &stk_addr, &stk_size, &tls_addr, &tls_size); in ThreadStart() 255 if (tls_addr && tls_size) ImitateTlsWrite(thr, tls_addr, tls_size); in ThreadStart() 260 OnStartedArgs args = { thr, stk_addr, stk_size, tls_addr, tls_size }; in ThreadStart() 281 if (thr->tls_addr && thr->tls_size) in ThreadFinish() 282 DontNeedShadowFor(thr->tls_addr, thr->tls_size); in ThreadFinish()
|
H A D | tsan_platform_mac.cc | 265 void ImitateTlsWrite(ThreadState *thr, uptr tls_addr, uptr tls_size) { in ImitateTlsWrite() argument 268 uptr tls_end = tls_addr + tls_size; in ImitateTlsWrite() 271 MemoryRangeImitateWrite(thr, /*pc=*/2, tls_addr, tls_size); in ImitateTlsWrite() 276 CHECK_LE(thr_state_start, tls_addr + tls_size); in ImitateTlsWrite() 278 CHECK_LE(thr_state_end, tls_addr + tls_size); in ImitateTlsWrite()
|
H A D | tsan_platform_linux.cc | 338 void ImitateTlsWrite(ThreadState *thr, uptr tls_addr, uptr tls_size) { in ImitateTlsWrite() argument 343 CHECK_LE(thr_beg, tls_addr + tls_size); in ImitateTlsWrite() 345 CHECK_LE(thr_end, tls_addr + tls_size); in ImitateTlsWrite() 349 tls_addr + tls_size - thr_end); in ImitateTlsWrite()
|
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/msan/ |
H A D | msan_thread.cc | 23 uptr tls_size = 0; in SetThreadStackAndTls() local 26 &tls_begin_, &tls_size); in SetThreadStackAndTls() 28 tls_end_ = tls_begin_ + tls_size; in SetThreadStackAndTls()
|
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/lsan/ |
H A D | lsan_posix.cpp | 50 uptr tls_size = 0; in ThreadStart() local 52 &args.tls_begin, &tls_size); in ThreadStart() 54 args.tls_end = args.tls_begin + tls_size; in ThreadStart()
|
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/lsan/ |
H A D | lsan_thread.cc | 83 uptr tls_size = 0; in ThreadStart() local 85 &args.tls_begin, &tls_size); in ThreadStart() 87 args.tls_end = args.tls_begin + tls_size; in ThreadStart()
|
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/lsan/ |
H A D | lsan_thread.cc | 81 uptr tls_size = 0; in ThreadStart() local 83 &args.tls_begin, &tls_size); in ThreadStart() 85 args.tls_end = args.tls_begin + tls_size; in ThreadStart()
|
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/asan/ |
H A D | asan_posix.cpp | 61 uptr default_bottom, tls_addr, tls_size, stack_size; in PlatformUnpoisonStacks() local 63 &tls_size); in PlatformUnpoisonStacks()
|
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/ |
H A D | sanitizer_common_test.cc | 184 uptr tls_size = 0; in TestThreadInfo() local 185 GetThreadStackAndTls(main, &stk_addr, &stk_size, &tls_addr, &tls_size); in TestThreadInfo() 196 EXPECT_NE(tls_size, (uptr)0); in TestThreadInfo() 198 EXPECT_LT((uptr)&thread_var, tls_addr + tls_size); in TestThreadInfo() 201 uptr tls_end = tls_addr + tls_size; in TestThreadInfo()
|
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/hwasan/ |
H A D | hwasan_linux.cpp | 401 uptr tls_size; in InitStackAndTls() local 404 &tls_size); in InitStackAndTls() 406 tls_end_ = tls_begin_ + tls_size; in InitStackAndTls()
|