Interpreting hpcpitopcounts event counts – HP XC System 3.x Software User Manual
Page 50
Listing Instructions in an Image: hpcpitopcounts image_name
You can run hpcpitopcounts with an image name to list the instructions with the highest
event counts within an image. For example:
% hpcpitopcounts myApp
myApp: not found.
+ Found and using /var/users/who1/bin/myApp
-------
Event Name Events Period Samples
---------- ------------ ------ -------
CPU_CYCLES 116980320000 60000 1949672
CPU_CYCLES % cum procedure pc instruction image source
---------- ---- ---- ---------- ----------------- -------------- ----- -----------
60800e06 52.0 52.0 main 0x4000000000000811 ldfs farg0=[r14] myApp unknown_src
8010e06 6.8 58.8 main 0x40000000000008c0 stfs [r15]=f6 myApp unknown_src
7973e06 6.8 65.6 main 0x40000000000008a1 nop.m 0 myApp unknown_src
:
:
Interpreting hpcpitopcounts Event Counts
The value of the instruction pointer recorded is typically several or many instructions after the
instruction that caused the event. This lag or skid is common to all profilers that sample the
instruction pointer and HPCPI does not attempt to model the system to correct for this. In addition,
As a result, HP recommends that you examine the assembly code surrounding regions where
high event counts occur and consider if the surrounding code may be triggering the events. See
“HPCPI Product Limitations” (page 115)
for more information.
50
Using HPCPI