A detailed description of SystemTap and its features is beyond the scope of this book. For more information, see the resources listed below.
stap(1) — The manual page for the
stap command provides detailed information on its usage, as well as references to other related manual pages. To display the manual page for the version included in Red Hat Developer Toolset, type:
scl enable devtoolset-6 'man stap'
staprun(8) — The manual page for the
staprun command provides detailed information on its usage. To display the manual page for the version included in Red Hat Developer Toolset, type:
scl enable devtoolset-6 'man staprun'
SystemTap Tapset Reference Manual
documentation on the most common tapset definitions is located at
Chapter 12, Valgrind
explains how to use Valgrind
to profile applications and detect memory errors and memory management problems, such as the use of uninitialized memory, improper allocation and freeing of memory, and the use of improper arguments in system calls.
Chapter 13, OProfile
explains how to use OProfile
to determine which sections of code consume the greatest amount of CPU
time and why.
Chapter 14, Dyninst
documents how to use the Dyninst library to instrument a user-space executable.