Hpcpilist header, Hpcpilist data table, Hpcpilist – HP XC System 3.x Software User Manual

Page 47: Header, Data table, Viewing per-instruction data: hpcpilist, Procedure_name image_name

Advertising
background image

Viewing Per-Instruction Data: hpcpilist procedure_name
image_name

The hpcpilist utility lists HPCPI performance statistics per line of source and/or assembly
code in a procedure within the specified image file.

For example:

% hpcpilist routine1 myApp
myApp: not found.
+ Found and using /var/users/who1/bin/myApp
-------
Event Name Events Period
---------- ------------- ------
CPU_CYCLES 1912010880000 60000

CPU_CYCLES PC B ASM
---------- --------------- - ------------------------------------
0 routine1+0x0000 alloc r33=ar.pfs,0,4,0,0
0 routine1+0x0001 adds r34=0,sp
0 routine1+0x0002 adds sp=-16,sp
0 routine1+0x0010 adds r35=0,gp
0 routine1+0x0011 nop.f 0

:
:
58881e5 main+0x0050 : adds r14=8,r36;;
61012e5 main+0x0051 ldfs f7=[r14]
0 main+0x0052 addl r14=160,gp;;
52402e5 main+0x0060 ldfs f6=[r14];;
327227e5 main+0x0061 nop.m 0
:
:

The output is described in the following sections.

hpcpilist

Header

The header uses the HPCPI header format for procedures, as described in

“HPCPI Procedure

Header” (page 46)

.

hpcpilist

Data Table

The data table contains one entry per instruction. The entries listed in ascending order according
to the address offset for the instruction.

The columns contain the following information:

event_name

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

PC

The routine name and the address offset for the instruction pointer or program
counter (PC).

B

The branch target. A colon in this column indicates the instruction is the target
of a branch (including loop exits).

ASM

The assembly code instruction (disassembled from the image).

Source

The name of the source file and line offset. This field is present only if
hpcpilist

is able to locate the source file.

Viewing Per-Instruction Data: hpcpilist procedure_name image_name

47

Advertising