Specifying an alternate sort key, Example, Displaying raw values – HP XC System 3.x Software User Manual

Page 53

Advertising
background image

data for myApp with the label myLabel. The following command displays performance data for
code called by myApp from libc-2.3.4.so:

% hpcpiprof -label myLabel libc-2.3.4.so

Specifying an Alternate Sort Key

When hpcpiprof and hpcpitopcounts display information for multiple events, the utilities
sort the data table entries according to the event count for the first event in the HPCPI database.

To specify an alternate sort key, use the -st option. The syntax is as follows:

-st event_name

Where event_name is the name of the event.

Example

The following output was created using the same data as the example in

“hpcpiprof Output

with Multiple Events” (page 45)

, but using the retired instruction count (IA64_INST_RETIRED)

instead of CPU cycles as the sort key. The values for the percentage (%) and cumulative percentage
(cum%) are for the event used as the sort key (IA64_INST_RETIRED).

% hpcpiprof -st IA64_INST_RETIRED

Event Name Events Period Samples
-------------------------- ------------- ------ ---------
CPU_CYCLES 3746619240000 60000 62443654
NOPS_RETIRED 3667612920000 60000 61126882
PREDICATE_SQUASHED_RETIRED 48274680000 6000 8045780
IA64_INST_RETIRED 8966193360000 60000 149436556

PREDICATE_
IA64_INST_ NOPS_ SQUASHED_
RETIRED % cum% CPU_CYCLES RETIRED RETIRED image
---------- ----- ----- ---------- -------- ---------- --------------------------
689484e7 76.9% 76.9% 231280e7 283236e7 61e7 vmlinux-2.6.9-34.7hp.XCsmp
99522e7 11.1% 88.0% 54924e7 50809e7 4519e7 myApp
97186e7 10.8% 98.8% 78618e7 29426e7 2e7 libm-2.3.4.so
:
:

Displaying Raw Values

By default, the HPCPI utilities display values in exponential notation and scaled uniformly so
that the largest value has six significant figures. To display the values using raw numbers, specify
the -raw-numbers option. For example:

% hpcpiprof -raw-numbers

The -raw-numbers option may be useful if some event counts are shown as zero values when
scaled in exponential notation because they are relatively low compared to other event counts.
For example, in the following excerpt from hpcpiprof output, the event counts for
DATA_EAR_EVENTS.CACHE_MISS.GE64

are shown as zero in exponential notation (0e5):

DATA_EAR_
EVENTS
.CACHE_MISS
CPU_CYCLES % cum% .GE64 procedure image
---------- ----- ------ ----------- ----------- -----
851896e5 89.5% 89.5% 0e5 main myApp
100027e5 10.5% 100.0% 0e5 unknown_rou myApp

Displaying the same data with the option -raw-numbers shows the nonzero values for
DATA_EAR_EVENTS.CACHE_MISS.GE64

event counts:

DATA_EAR_
EVENTS
.CACHE_MISS
CPU_CYCLES % cum% .GE64 procedure image
----------- ----- ------ ----------- ----------- -----

HPCPI Utility Options

53

Advertising