glibc/sysdeps
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
..
aarch64 aarch64: Fix tst-ifunc-arg-4 on clang-18 2025-10-29 12:54:10 -03:00
alpha
arc
arm
csky
generic tls: Add debug logging for TLS and TCB management 2025-11-03 10:47:28 +01:00
gnu Updates struct tcp_zerocopy_receive from 5.11 to netinet/tcp.h. 2025-10-29 12:54:12 -03:00
hppa
htl
hurd
i386 i386: Remove the SVID error handling from fmodf 2025-10-30 15:41:07 -03:00
ieee754 math: Fix pow special case [BZ #33563] 2025-10-31 19:13:41 +00:00
loongarch
m68k math: Remove the SVID error handling from coshf 2025-10-30 15:41:28 -03:00
mach math: Remove the SVID error handling wrapper from yn/jn 2025-10-30 15:41:35 -03:00
microblaze
mips
nptl
or1k
posix
powerpc ppc64le: Power 10 rawmemchr clobbers v20 (bug #33091) 2025-10-26 12:19:53 -05:00
pthread
riscv riscv: Add Zbkb optimized repeat_bytes helper 2025-10-31 16:23:57 -05:00
s390
sh
sparc
unix aarch64: fix cfi directives around __libc_arm_za_disable 2025-10-31 09:48:47 +00:00
wordsize-32 Replace count_leading_zeros with stdc_leading_zeros 2025-10-29 12:53:55 -03:00
wordsize-64
x86 Cleanup some recently added whitespace. 2025-10-30 18:56:58 -07:00
x86_64 x86: fix wmemset ifunc stray '!' (bug 33542) 2025-10-29 12:54:14 -03:00