Home
last modified time | relevance | path

Searched refs:tls (Results 1 – 16 of 16) sorted by relevance

/bionic/libc/private/
Dbionic_fdtrack.h53 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/
Dfdtrack.cpp51 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()
Dpty.cpp55 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()
Dstrsignal.cpp66 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()
Dmntent.cpp35 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()
Dpthread_create.cpp65 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 …]
Dstrerror.cpp219 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()
Dpthread_internal.h179 __LIBC_HIDDEN__ void __init_bionic_tls_ptrs(bionic_tcb* tcb, bionic_tls* tls);
181 __LIBC_HIDDEN__ void __free_temp_bionic_tls(bionic_tls* tls);
Dclone.cpp40 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.c31 __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/
Dsched.h59 __aligned_u64 tls; member
/bionic/libc/arch-x86/bionic/
D__bionic_clone.S19 movl 28(%esp), %esi # tls
/bionic/tests/libs/
DAndroid.bp53 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/
Delf-tls.md4 * [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/
DAndroid.bp498 "-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/
DAndroid.bp70 "-fno-emulated-tls",