Home
last modified time | relevance | path

Searched refs:dtv (Results 1 – 5 of 5) sorted by relevance

/bionic/libc/bionic/
Dbionic_elf_tls.cpp264 TlsDtv* const dtv = __get_tcb_dtv(tcb); in update_tls_dtv() local
270 for (size_t i = 0; i < dtv->count; ++i) { in update_tls_dtv()
274 dtv->modules[i] = static_tls + mod.static_offset; in update_tls_dtv()
278 mod.first_generation <= dtv->generation) { in update_tls_dtv()
283 void* dtls_begin = dtv->modules[i]; in update_tls_dtv()
288 allocator.free(dtv->modules[i]); in update_tls_dtv()
289 dtv->modules[i] = nullptr; in update_tls_dtv()
292 dtv->generation = atomic_load(&modules.generation); in update_tls_dtv()
306 TlsDtv* dtv = __get_tcb_dtv(tcb); in tls_get_addr_slow_path() local
308 void* mod_ptr = dtv->modules[module_idx]; in tls_get_addr_slow_path()
[all …]
Dsys_thread_properties.cpp133 TlsDtv* const dtv = __get_tcb_dtv(tcb); in __libc_iterate_dynamic_tls() local
136 for (size_t i = modules.static_module_count; i < dtv->count; ++i) { in __libc_iterate_dynamic_tls()
137 void* dtls_begin = dtv->modules[i]; in __libc_iterate_dynamic_tls()
/bionic/tests/
Delftls_dl_test.cpp165 auto dtv = []() -> TlsDtv* { return __get_tcb_dtv(__get_bionic_tcb()); }; in TEST() local
177 TlsDtv* zero_dtv = dtv(); in TEST()
188 TlsDtv* initial_dtv = dtv(); in TEST()
200 ASSERT_EQ(5u, dtv()->count); in TEST()
203 ASSERT_EQ(13u, dtv()->count); in TEST()
207 TlsDtv* new_dtv = dtv(); in TEST()
218 ASSERT_EQ(new_dtv, dtv()); in TEST()
248 auto dtv = []() -> TlsDtv* { return __get_tcb_dtv(__get_bionic_tcb()); }; in TEST() local
265 count = dtv()->count; in TEST()
267 ASSERT_EQ(count, dtv()->count); in TEST()
/bionic/docs/
Delf-tls.md305   TlsDtv* dtv = __get_dtv();
307   if (dtv->generation >= arg->first_generation &&
308       dtv->modules[arg->idx.module] != nullptr) {
309     addr = dtv->modules[arg->idx.module] + arg->idx.offset;
/bionic/linker/
Dlinker.cpp409 TlsDtv* dtv = __get_tcb_dtv(__get_bionic_tcb()); in get_tls_block_for_this_thread() local
410 if (dtv->generation < tls_mod.first_generation) return nullptr; in get_tls_block_for_this_thread()
411 return dtv->modules[__tls_module_id_to_idx(si_tls->module_id)]; in get_tls_block_for_this_thread()