glibc/sysdeps/generic
Frédéric Bérat 332f8e62af tls: Add debug logging for TLS and TCB management
Introduce the `DL_DEBUG_TLS` debug mask to enable detailed logging for
Thread-Local Storage (TLS) and Thread Control Block (TCB) management.

This change integrates a new `tls` option into the `LD_DEBUG`
environment variable, allowing developers to trace:
- TCB allocation, deallocation, and reuse events in `dl-tls.c`,
  `nptl/allocatestack.c`, and `nptl/nptl-stack.c`.
- Thread startup events, including the TID and TCB address, in
  `nptl/pthread_create.c`.

A new test, `tst-dl-debug-tid`, has been added to validate the
functionality of this new debug logging, ensuring that relevant messages
are correctly generated for both main and worker threads.

This enhances the debugging capabilities for diagnosing issues related
to TLS allocation and thread lifecycle within the dynamic linker.

Reviewed-by: DJ Delorie <dj@redhat.com>
2025-11-03 10:47:28 +01:00
..
net
netinet
nfs
sys
Makefile
_G_config.h
_itoa.h
a.out.h
abort-instr.h
adaptive_spin_count.h
aio_misc.h
allocalim.h
arch-fd_to_filename.h
asm-syntax.h
atomic-machine.h
c++-types.data
calloc-clear-memory.h
confstr.h
crti.S
crtn.S
device-nrs.h
dirstream.h
dl-affinity.h
dl-audit-check.h
dl-auxv.h
dl-cache.h
dl-call_tls_init_tp.h
dl-debug.h
dl-dtprocnum.h
dl-dtv.h
dl-execve.h
dl-extra_tls.h
dl-fcntl.h
dl-fileid.h
dl-fixup-attribute.h
dl-hash.h
dl-hwcap-check.h
dl-irel.h
dl-isa-level.h
dl-lookupcfg.h
dl-machine-rel.h
dl-machine.h
dl-minimal-malloc.h
dl-mman.h
dl-new-hash.h
dl-osinfo.h
dl-procinfo.c
dl-procruntime.c
dl-prop.h
dl-protected.h
dl-r_debug.h
dl-relocate-ld.h
dl-symbol-redir-ifunc.h
dl-sysdep.h
dl-tls.h
dl-tunables-parse.h
dl-unistd.h
dl-vdso-setup.c
dl-vdso-setup.h
dl-vdso.h
dwarf2.h
elf-initfini.h
elf-read-prop.h
elf_machine_sym_no_match.h
elide.h
entry.h
errqueue.h
fast-jitter.h
fd_to_filename.h
features-time64.h
fenv_private.h
fix-float-double-convert-nan.h
fix-fp-int-compare-invalid.h
fix-fp-int-convert-overflow.h
fix-int-fp-convert-zero.h
float128-abi.h
fork.h
fpu_control.h
framestate.c
gcc-compat.h
gccframe.h
get-rounding-mode.h
getrandom-internal.h
gmp-mparam.h
hp-timing-common.h
hp-timing.h
ifreq.h
ifunc-init.h
ifunc-sel.h
internal-signals.h
internal-sigset.h
intr-msg.h
ld.abilist
ldbl-classify-compat.h
ldconfig.h
ldsodefs.h tls: Add debug logging for TLS and TCB management 2025-11-03 10:47:28 +01:00
libBrokenLocale.abilist
libanl.abilist
libc-lock-arch.h
libc-lock.h
libc-mmap.h
libc-mtag.h
libc-start.h
libc-symver.h
libc.abilist
libc_malloc_debug.abilist
libc_start_call_main.h
libdl.abilist
libm-alias-double.h
libm-alias-float.h
libm-alias-float128.h
libm-alias-ldouble.h
libm.abilist
libnsl.abilist
libnss_compat.abilist
libnss_db.abilist
libnss_dns.abilist
libnss_files.abilist
libnss_hesiod.abilist
libnss_nis.abilist
libnss_nisplus.abilist
libpthread.abilist
libresolv.abilist
librt.abilist
libutil.abilist
link_map.h
linkmap.h
local-setxid.h
localplt.data
machine-gmon.h
machine-lock.h
machine-sp.h
malloc-alignment.h
malloc-hugepages.c
malloc-hugepages.h
malloc-machine.h
malloc-size.h
malloc-sysdep.h
math-barriers.h
math-nan-payload-double.h
math-nan-payload-float.h
math-narrow-alias-float128.h
math-narrow-alias.h
math-tests-arch.h
math-tests-exceptions.h
math-tests-rounding.h
math-tests-snan-cast.h
math-tests-snan-payload.h
math-tests-snan.h
math-tests-trap-force.h
math-tests-trap.h
math-tests.h
math-type-macros-double.h
math-type-macros-float.h
math-type-macros-float128.h
math-type-macros-ldouble.h
math-type-macros.h
math-use-builtins-ceil.h
math-use-builtins-copysign.h
math-use-builtins-fabs.h
math-use-builtins-ffs.h
math-use-builtins-floor.h
math-use-builtins-fma.h
math-use-builtins-fmax.h
math-use-builtins-fmin.h
math-use-builtins-llrint.h
math-use-builtins-llround.h math: Add builtin support for (l)lround(f) 2025-10-17 17:03:54 +00:00
math-use-builtins-logb.h
math-use-builtins-lrint.h
math-use-builtins-lround.h math: Add builtin support for (l)lround(f) 2025-10-17 17:03:54 +00:00
math-use-builtins-nearbyint.h
math-use-builtins-rint.h
math-use-builtins-round.h
math-use-builtins-roundeven.h
math-use-builtins-sqrt.h
math-use-builtins-trunc.h
math-use-builtins.h math: Add builtin support for (l)lround(f) 2025-10-17 17:03:54 +00:00
math_ldbl.h
math_ldbl_opt.h
math_private.h
math_private_calls.h
math_uint128.h
memcopy.h
memswap.h
min-eloop-threshold.h
mmap_info.h
mremap-failure.h
nan-high-order-bit.h
not-cancel.h
not-errno.h
nscd-types.h
pagecopy.h
paths.h
pointer_guard.h
profil-counter.h
pty-private.h
rtld-lowlevel.h
rtld_static_init.h
safe-fatal.h
set-freeres-fp.h
set-freeres-os.h
set-freeres-system.h
set-hooks-arch.h
setjmpP.h
setvmaname.h
sframe-read.c
sframe-read.h
sframe.c
sframe.h
sigcontextinfo.h
siglist-compat-def.h
siglist.h
sigset-cvt-mask.h
sigsetops.h
single-thread.h
spawn_int_def.h
stackguard-macros.h
stackinfo.h
stap-probe-machine.h
startup.h
stdio-lock.h
string-fza.h
string-fzb.h
string-fzc.h
string-fzi.h
string-misc.h
string-opthr.h
string-optype.h
string-shift.h
struct_stat_time64.h
symbol-hacks.h
syscall_types.h
sysdep-cancel.h
sysdep.h
thread_pointer.h
thread_state.h
time-clockid.h
time64-compat.h
tininess.h
tls-internal-struct.h
tls-internal.c
tls-internal.h
tls-setup.h
tls.h
tst-audit.h
tst-file-align.h
tst-stack-align.h
unsecvars.h
unwind-arch.h
unwind-dw2-fde-glibc.c
unwind-dw2-fde.c
unwind-dw2-fde.h
unwind-dw2.c
unwind-link.h
unwind-pe.c
unwind-pe.h
unwind-resume.c
unwind-resume.h
unwind.h
utmp-equal.h
utmp-size.h
uw-sigframe.h
xstatver.h