Red Hat Training

A Red Hat training course is available for Red Hat Developer Toolset

11.2. Using SystemTap

To execute any of the tools that are part of SystemTap, type the following at a shell prompt:
scl enable devtoolset-4 'tool [option...]'
See Table 11.1, “Tools Distributed with SystemTap for Red Hat Developer Toolset” for a list of tools that are distributed with SystemTap. For example, to run the stap tool to build an instrumentation module, type:
scl enable devtoolset-4 'stap [option...] argument...'
Note that you can execute any command using the scl utility, causing it to be run with the Red Hat Developer Toolset binaries used in preference to the Red Hat Enterprise Linux system equivalent. This allows you to run a shell session with Red Hat Developer Toolset SystemTap as default:
scl enable devtoolset-4 'bash'

Note

To verify the version of SystemTap you are using at any point, type the following at a shell prompt:
which stap
Red Hat Developer Toolset's stap executable path will begin with /opt. Alternatively, you can use the following command to confirm that the version number matches that for Red Hat Developer Toolset SystemTap:
stap -V