/bionic/libc/private/ |
D | bionic_fdtrack.h | 53 bionic_tls& tls = __get_bionic_tls(); \ 55 if (!__predict_false(tls.fdtrack_disabled) && \ 58 tls.fdtrack_disabled = true; \ 64 tls.fdtrack_disabled = false; \ 84 bionic_tls& tls = __get_bionic_tls(); \ 85 if (!__predict_false(tls.fdtrack_disabled) && \ 88 tls.fdtrack_disabled = true; \ 93 tls.fdtrack_disabled = false; \
|
/bionic/libc/bionic/ |
D | fdtrack.cpp | 51 auto& tls = __get_bionic_tls(); in android_fdtrack_set_enabled() local 52 bool prev = !tls.fdtrack_disabled; in android_fdtrack_set_enabled() 53 tls.fdtrack_disabled = !new_value; in android_fdtrack_set_enabled()
|
D | pty.cpp | 55 bionic_tls& tls = __get_bionic_tls(); in ptsname() local 56 char* buf = tls.ptsname_buf; in ptsname() 57 int error = ptsname_r(fd, buf, sizeof(tls.ptsname_buf)); in ptsname() 82 bionic_tls& tls = __get_bionic_tls(); in ttyname() local 83 char* buf = tls.ttyname_buf; in ttyname() 84 int error = ttyname_r(fd, buf, sizeof(tls.ttyname_buf)); in ttyname()
|
D | strsignal.cpp | 66 bionic_tls& tls = __get_bionic_tls(); in strsignal() local 67 …return const_cast<char*>(__strsignal(signal_number, tls.strsignal_buf, sizeof(tls.strsignal_buf))); in strsignal()
|
D | mntent.cpp | 35 auto& tls = __get_bionic_tls(); in getmntent() local 36 return getmntent_r(fp, &tls.mntent_buf, tls.mntent_strings, sizeof(tls.mntent_strings)); in getmntent()
|
D | pthread_create.cpp | 65 void __init_bionic_tls_ptrs(bionic_tcb* tcb, bionic_tls* tls) { in __init_bionic_tls_ptrs() argument 66 tcb->thread()->bionic_tls = tls; in __init_bionic_tls_ptrs() 67 tcb->tls_slot(TLS_SLOT_BIONIC_TLS) = tls; in __init_bionic_tls_ptrs() 85 void __free_temp_bionic_tls(bionic_tls* tls) { in __free_temp_bionic_tls() argument 86 munmap(tls, __BIONIC_ALIGN(sizeof(bionic_tls), PAGE_SIZE)); in __free_temp_bionic_tls() 290 auto tls = reinterpret_cast<bionic_tls*>(mapping.static_tls + layout.offset_bionic_tls()); in __allocate_thread() local 297 __init_bionic_tls_ptrs(tcb, tls); in __allocate_thread() 418 void* tls = &tcb->tls_slot(0); in pthread_create() local 423 __init_user_desc(&tls_descriptor, false, tls); in pthread_create() 424 tls = &tls_descriptor; in pthread_create() [all …]
|
D | strerror.cpp | 219 bionic_tls& tls = __get_bionic_tls(); in strerror() local 220 result = tls.strerror_buf; in strerror() 221 strerror_r(error_number, result, sizeof(tls.strerror_buf)); in strerror()
|
D | pthread_internal.h | 179 __LIBC_HIDDEN__ void __init_bionic_tls_ptrs(bionic_tcb* tcb, bionic_tls* tls); 181 __LIBC_HIDDEN__ void __free_temp_bionic_tls(bionic_tls* tls);
|
D | clone.cpp | 40 extern "C" pid_t __bionic_clone(uint32_t flags, void* child_stack, int* parent_tid, void* tls, int*…
|
/bionic/libc/arch-arm64/bionic/ |
D | __set_tls.c | 31 __LIBC_HIDDEN__ void __set_tls(void* tls) { in __set_tls() argument 32 asm("msr tpidr_el0, %0" : : "r" (tls)); in __set_tls()
|
/bionic/libc/kernel/uapi/linux/ |
D | sched.h | 59 __aligned_u64 tls; member
|
/bionic/libc/arch-x86/bionic/ |
D | __bionic_clone.S | 19 movl 28(%esp), %esi # tls
|
/bionic/tests/libs/ |
D | Android.bp | 53 cflags: ["-fno-emulated-tls"], 60 cflags: ["-fno-emulated-tls"], 68 cflags: ["-fno-emulated-tls"], 82 cflags: ["-fno-emulated-tls"], 90 cflags: ["-fno-emulated-tls"], 97 cflags: ["-fno-emulated-tls"], 107 "-fno-emulated-tls", 117 "-fno-emulated-tls", 127 "-fno-emulated-tls",
|
/bionic/docs/ |
D | elf-tls.md | 4 * [go/android-elf-tls](http://go/android-elf-tls) 33 ![TLS Variant 1 Layout](img/tls-variant1.png) 35 ![TLS Variant 2 Layout](img/tls-variant2.png) 216 * web search: [`"dlopen: cannot load any more object with static TLS"`][glibc-static-tls-error] 228 [glibc-static-tls-error]: https://www.google.com/search?q=%22dlopen:+cannot+load+any+more+object+wi… 503 [ELF TLS prototype]: https://android-review.googlesource.com/q/topic:%22elf-tls-prototype%22+(statu… 586 ![Bionic TLS Layout in Android P](img/bionic-tls-layout-in-p.png) 682 Android, so it could pass an `--tls-variant2` flag to configure lld. 731 * Use an `--android-tls-variant2` flag (or `--bionic-tls-variant2`, we're trying to make [Bionic 747 Add an lld option: `--android-tls[-tcb=SIZE]` [all …]
|
/bionic/tests/ |
D | Android.bp | 498 "-fno-emulated-tls", 502 // library as an emutls symbol. The -fno-emulated-tls flag above configures 528 "-fno-emulated-tls", 532 // library as an emutls symbol. The -fno-emulated-tls flag above configures
|
/bionic/libc/ |
D | Android.bp | 70 "-fno-emulated-tls",
|