Separating Kernel And User-Space Profiles - Red Hat ENTERPRISE LINUX 4 System Administration Manual

Hide thumbs Also See for ENTERPRISE LINUX 4:
Table of Contents

Advertisement

Warning
Be extremely careful when setting sampling rates. Sampling too frequently can overload
the system, causing the system to appear as if it is frozen or causing the system to
actually freeze.
40.2.2.2. Unit Masks
If the cpu_type is not timer, unit masks may also be required to further define the event.
Unit masks for each event are listed with the op_help command. The values for each unit mask are
listed in hexadecimal format. To specify more than one unit mask, the hexadecimal values must be
combined using a bitwise or operation.
opcontrol --event=<event-name>:<sample-rate>:<unit-mask>

40.2.3. Separating Kernel and User-space Profiles

By default, kernel mode and user mode information is gathered for each event. To configure OProfile
not to count events in kernel mode for a specific counter, execute the following command:
opcontrol --event=<event-name>:<sample-rate>:<unit-mask>:0
Execute the following command to start profiling kernel mode for the counter again:
opcontrol --event=<event-name>:<sample-rate>:<unit-mask>:1
To configure OProfile not to count events in user mode for a specific counter, execute the following
command:
opcontrol --event=<event-name>:<sample-rate>:<unit-mask>:<kernel>:0
Execute the following command to start profiling user mode for the counter again:
opcontrol --event=<event-name>:<sample-rate>:<unit-mask>:<kernel>:1
When the OProfile daemon writes the profile data to sample files, it can separate the kernel and library
profile data into separate sample files. To configure how the daemon writes to sample files, execute
the following command as root:
opcontrol --separate=<choice>
<choice> can be one of the following:
• none — do not separate the profiles (default)
• library — generate per-application profiles for libraries
• kernel — generate per-application profiles for the kernel and kernel modules
• all — generate per-application profiles for libraries and per-application profiles for the kernel and
kernel modules
Separating Kernel and User-space Profiles
357

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ENTERPRISE LINUX 4 and is the answer not in the manual?

Table of Contents