Red Hat Developer Toolset 1.x User Guide - Linux
Red Hat Developer Toolset 1.x User Guide - Linux
Red Hat Developer Toolset 1.x User Guide - Linux
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
4 6 Chapter 7. SystemTap<br />
Refer to Table 7.1, “Tools Distributed with SystemTap for <strong>Red</strong> <strong>Hat</strong> <strong>Developer</strong> <strong>Toolset</strong>” for a list of tools<br />
that are distributed with SystemTap. For example, to run the stap tool to build an instrumentation<br />
module, type:<br />
scl enable devtoolset-1.1 'stap [option...] argument...'<br />
Note that you can execute any command using the scl utility, causing it to be run with the <strong>Red</strong> <strong>Hat</strong><br />
<strong>Developer</strong> <strong>Toolset</strong> binaries used in preference to the <strong>Red</strong> <strong>Hat</strong> Enterprise <strong>Linux</strong> system equivalent. This<br />
allows you to run a shell session with <strong>Red</strong> <strong>Hat</strong> <strong>Developer</strong> <strong>Toolset</strong> SystemTap as default:<br />
scl enable devtoolset-1.1 'bash'<br />
Note<br />
To verify the version of SystemTap you are using at any point, type the following at a shell<br />
prompt:<br />
which stap<br />
<strong>Red</strong> <strong>Hat</strong> <strong>Developer</strong> <strong>Toolset</strong>'s stap executable path will begin with /opt. Alternatively, you can<br />
use the following command to confirm that the version number matches that for <strong>Red</strong> <strong>Hat</strong><br />
<strong>Developer</strong> <strong>Toolset</strong> SystemTap:<br />
stap -V<br />
7.3. Additional Resources<br />
A detailed description of SystemTap and its features is beyond the scope of this book. For more<br />
information, refer to the resources listed below.<br />
Installed Documentation<br />
stap(1) — The manual page for the stap command provides detailed information on its usage, as<br />
well as references to other related manual pages. To display the manual page for the version<br />
included in <strong>Red</strong> <strong>Hat</strong> <strong>Developer</strong> <strong>Toolset</strong>, type:<br />
scl enable devtoolset-1.1 'man stap'<br />
staprun(8) — The manual page for the staprun command provides detailed information on its<br />
usage. To display the manual page for the version included in <strong>Red</strong> <strong>Hat</strong> <strong>Developer</strong> <strong>Toolset</strong>, type:<br />
scl enable devtoolset-1.1 'man staprun'<br />
SystemTap Tapset Reference Manual — HTML documentation on the most common tapset<br />
definitions is located at /opt/rh/devtoolset-1.1/root/usr/share/doc/devtoolset-1.1-<br />
systemtap-client-1.8/index.html.<br />
Online Documentation<br />
<strong>Red</strong> <strong>Hat</strong> Enterprise <strong>Linux</strong> 6 SystemTap Beginners <strong>Guide</strong> — The SystemTap Beginners <strong>Guide</strong> for<br />
<strong>Red</strong> <strong>Hat</strong> Enterprise <strong>Linux</strong> 6 provides an introduction to SystemTap and its usage.<br />
<strong>Red</strong> <strong>Hat</strong> Enterprise <strong>Linux</strong> 5 SystemTap Beginners <strong>Guide</strong> — The SystemTap Beginners <strong>Guide</strong> for