Linux SystemTap emulation of DTrace

SystemTap is a Linux utility that allows dynamic tracing, similar to DTrace. Starting from SystemTap V0.9, it includes header files that expose the same user space capabilities that DTrace does. This means that on a Linux system with that version of SystemTap or later, you can compile PostgreSQL using --enable-dtrace and it will hook into SystemTap using the DTrace probes.

Support for SystemTap varies quite a bit based on Linux distribution. The Fedora Core versions starting with FC10 include support for the PostgreSQL DTrace probe emulation, and that support has been included as part of RHEL 6, too. These RedHat systems are the most reliable sources for SystemTap on Linux.

On Debian and Ubuntu, SystemTap ...

Get PostgreSQL 10 High Performance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.