Example

To produce a flat profile based on execution stalls due to GR/GR or GR/load:

$ caliper cycles -ra -s 100000,5%,BE_EXE_BUBBLE.GRALL --etb-freeze-delay 12 --etb-walkback-cycles 22

Choosing correct values for the --etb-freeze-delay and --etb-walkback-cycles options requires knowledge of the Integrity servers dual-core Itanium 2 or Itanium 9300 quad-core processor pipeline. For information about the ETB and how it is configured to collect IP values, see Performance Profiling for Fun and Profit.

--etb-walkback-cycles

--etb-walkback-cycles integer

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 “--etb-freeze-delay” (p. 60).

--event-defaults

--event-defaults [privilege-level-mask=level][:threshold=int]

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).

privilege-level-mask=levelDetermines the privilege level setting for a given counter.

 

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

 

case-sensitive.

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.

--etb-walkback-cycles 61