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 alpha: Fix missing inexact-flag raising for lround/lrint 2025-09-11 14:48:00 -03:00
arc math: Add fetestexcept internal alias 2025-09-11 14:46:07 -03:00
arm arm: Add ARM VFPv4 VFMA instruction support in fma/fmaf (BZ 15503) 2025-10-03 15:19:54 -03:00
csky math: Add fetestexcept internal alias 2025-09-11 14:46:07 -03:00
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 math: Add fetestexcept internal alias 2025-09-11 14:46:07 -03:00
htl Remove futex_supports_pshared 2025-09-08 15:01:18 +02:00
hurd htl: move pthread_kill into libc. 2025-08-16 01:44:27 +02:00
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 math: Add fetestexcept internal alias 2025-09-11 14:46:07 -03:00
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 atomic: Switch microblaze to builtin atomics 2025-09-09 13:53:54 +00:00
mips mips: Fix delay slot filling in bsd-setjmp.S 2025-09-23 10:29:24 -03:00
nptl Remove futex_supports_pshared 2025-09-08 15:01:18 +02:00
or1k math: Add fetestexcept internal alias 2025-09-11 14:46:07 -03:00
posix assert: Refactor assert/assert_perror 2025-09-23 10:29:24 -03:00
powerpc ppc64le: Power 10 rawmemchr clobbers v20 (bug #33091) 2025-10-26 12:19:53 -05:00
pthread Add once_flag, ONCE_FLAG_INIT and call_once to stdlib.h for C23 2025-10-01 15:15:15 +00:00
riscv riscv: Add Zbkb optimized repeat_bytes helper 2025-10-31 16:23:57 -05:00
s390 math: Add fetestexcept internal alias 2025-09-11 14:46:07 -03:00
sh math: Add fetestexcept internal alias 2025-09-11 14:46:07 -03:00
sparc math: Add fetestexcept internal alias 2025-09-11 14:46:07 -03:00
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 stdio-common: Reject integer prefixes in scanf [BZ #12701] 2025-03-28 12:35:53 +00:00
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