Hpcpitopcounts header, Hpcpitopcounts data table, Hpcpitopcounts – HP XC System 3.x Software User Manual
Page 49: Header, Data table
Listing the Instructions with the Highest Event Counts: hpcpitopcounts
The hpcpitopcounts utility displays the n instructions with the highest counts for an event.
By default, n is 100. To display an alternate number of instructions, use the -n option.
If the HPCPI daemon monitored multiple events, hpcpitopcounts uses the first event in the
database as the sort key. To specify an alternate sort key, use the -st option, as described in
“Specifying an Alternate Sort Key” (page 53)
.
If you run hpcpitopcounts without an image name, it searches all profile files for the
instructions with the top counts. For example:
% hpcpitopcounts
Event Name Events Period Samples
---------- ------------- ------ --------
CPU_CYCLES 5637154800000 60000 93952580
CPU_CYCLES % cum procedure pc instruction image
source
---------- ---- ---- --------------- ------------------ --------------------- -----------------------
---------
1364e09 24.2 24.2 default_idle 0xa000000100017640 adds r16=0xde0,tp vmlinux-2.6.9-34.7hp.XCsmp
unknown_src
1303e09 23.1 47.3 default_idle 0xa000000100017630 hint.m 0 vmlinux-2.6.9-34.7hp.XCsmp
unknown_src
1269e09 22.5 69.8 default_idle 0xa000000100017620 nop.m 0 vmlinux-2.6.9-34.7hp.XCsmp
unknown_src
:
:
The output is described in the following sections.
hpcpitopcounts
Header
The header uses the HPCPI header format for procedures, as described in
.
hpcpitopcounts
Data Table
The data table contains one entry per instruction. The entries are listed in descending order
according to the event count for the instruction.
The columns contain the following information:
event_name
The count for the event (such as CPU_CYCLES) recorded for the instruction,
as calculated by HPCPI. This is the number of sampled events multiplied by
the sample interval. If the HPCPI daemon sampled more events than the
number of performance counters, HPCPI adjusts the event count for the fraction
of duty groups in which the event was active.
%
The percentage of event samples for the event type recorded for the instruction.
cum%
The cumulative percentage of all event samples for this entry and all entries
above it.
procedure
The procedure name.
pc
The offset for the instruction pointer or program counter.
instruction
The assembly code instruction (disassembled from the image).
image
The name of the image.
source
The name of the source file and line offset.
Listing the Instructions with the Highest Event Counts: hpcpitopcounts
49