$ caliper fprof -s ,,IIR vand

HP Caliper: usage error:

Ambiguous event abbreviation ("IIR") specified for "--sampling-spec".

Matches IIR2 (IA64_INST_RETIRED), IIR1 (IA32_INST_RETIRED) Run caliper -h for help.

To list abbreviations for any given event, use the caliper info command to list the abbreviations:

$ caliper info CPU_CYCLES

=====================================

HP Caliper CPU Counter Information

=====================================

Name: CPU_CYCLES Abbreviation: CC or CPU_CY

Title: CPU Cycles

Definition: Counts the number of clock cycles.

=====================================

Specifying Which Load Modules to Collect Data For

HP Caliper allows you to restrict data collection to specific load modules. For example, you can selectively include or exclude data collection for the main executable and any shared library.

Module inclusion or exclusion does not affect the measurements made through the PMU. Counting and sampling still occurs when code is executed in excluded modules. However, the reports show condensed data for those modules.

Three command-line options are available to specify inclusions and exclusions:

--module-default

--module-include

--module-exclude

--module-default allnone allows you to specify the default setting for modules that are not explicitly included or excluded with either --module-includeor --module-exclude.

You can provide either of these arguments:

all any module not explicitly excluded is included none any module not explicitly included is excluded

--module-include module_list

If module-defaultis not present, the default is all.

To explicitly include modules, specify a module_list.

Amodule_list is a list of module or directory names separated by colons. For example:

--module-include libc:libcurses:liboci or

--module-include /usr/lib/

--module-exclude module_list

To explicitly include modules, specify a module_list.

Amodule_list is a list of module or directory names separated by colons. For example:

--module-exclude libc:libcurses:liboci or

--module-exclude /usr/lib/

94 Configuring HP Caliper