Chapter 14. Dyninst
The Dyninst library provides an application programming interface (API) for instrumenting and working with user-space executables during their execution. It can be used to insert code into a running program, change certain subroutine calls, or even remove them from the program. It serves as a valuable debugging and performance-monitoring tool. The Dyninst API is also commonly used along with SystemTap to allow non-
rootusers to instrument user-space executables.
Red Hat Developer Toolset is distributed with Dyninst 9.1.0.
14.1. Installing Dyninst
In Red Hat Developer Toolset, the Dyninst library is provided by the devtoolset-4-dyninst package and is automatically installed with devtoolset-4-perftools as described in Section 1.5, “Installing Red Hat Developer Toolset”. In addition, it is recommended that you also install the GNU Compiler Collection provided by the devtoolset-4-toolchain package.
If you intend to write a custom instrumentation for binaries, install the relevant header files by running the following command as
yum install devtoolset-4-dyninst-devel
You can also install API documentation for this library by typing the following at a shell prompt as
yum install devtoolset-4-dyninst-doc
For a complete list of documents that are included in the devtoolset-4-dyninst-doc package, see Section 14.3, “Additional Resources”. For detailed instructions on how to install optional packages to your system, see Section 1.5, “Installing Red Hat Developer Toolset”.