NPTL Trace Tool



User Manual


Trace points
Data collecting
Glibc patch



Sourceforge project info



The NPTL is part of the GNU C library (glibc). When building the glibc, several dynamic libraries are actually built. The NPTL corresponds to the file

To trace the thread library, trace points needs to be inserted into the NPTL. PTT comes with a patch for the glibc, which includes:

  • trace points inserted into NPTL routines.
  • PTT module files that define functions used to collect trace point data.
  • additionnal options in glibc configuration files (, configure,,
  • a modified nptl/Makefile.

All things added in NPTL code are enclosed in preprocessor directives, thus allowing to build the glibc in two different ways:

  • if nothing special is done, the original glibc is built.
  • using --with-ptt in the glibc ./configure script builds the glibc with PTT support. This means that the built will contain instructions to trace NPTL events. These instructions will be run only if the PTT daemon is previously launched.


Page hosted by : Logo