Example
To produce a flat profile based on execution stalls due to GR/GR or GR/load:
$ caliper cycles
Choosing correct values for the
Controls the number of cycles to walk back when iterating from the most recent execution trace buffer (ETB) entry to the oldest ETB entry.
Use this option to change the way in which HP Caliper picks the instruction pointer (IP) samples from the 16 IP entries in an ETB sample. When iterating from the most recent entry, HP Caliper computes the cumulative elapsed cycles by adding up each entry's bubble cycles plus one cycle per entry. When an entry is reached for which the cumulative elapsed cycles is greater than or equal to the integer specified in this option, that entry is picked as the IP sample.
For more information and an example, see
Controls where and when HP Caliper measures events while your application is executing. You can use this option to set the default privilege level for all PMU events (including the sampling event).
| By default, counters are measured when your application | |
| runs in user space (user) The privilege levels available | |
| are: |
|
| • | user |
| • | kernel |
| • | all |
| You can abbreviate this qualifier to PLM. The qualifier is not | |
| ||
threshold=int | An integer value that specifies how HP Caliper counts events. | |
| • If the value is zero, HP Caliper counts all events. |
• If the value is greater than zero, HP Caliper counts only the CPU cycles in which the number of events is greater than or equal to the value you specify.
The default value is zero.