Show Table of Contents
13.2. Using OProfile
To run any of the tools that are distributed with OProfile, type the following at a shell prompt as
scl enable devtoolset-4 'tool [
See Table 13.1, “Tools Distributed with OProfile for Red Hat Developer Toolset” for a list of tools that are distributed with OProfile. For example, to use the
ophelpcommand to list available events in the XML format, type:
scl enable devtoolset-4 'ophelp -X'
Note that you can execute any command using the
sclutility, 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 OProfile as default:
scl enable devtoolset-4 'bash'
To verify the version of OProfile you are using at any point, type the following at a shell prompt:
Red Hat Developer Toolset's
operfexecutable 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 OProfile: