HP Caliper User's Guide

We will also specify an output file using the -o option:
$ caliper fprof -o out.txt -r all
In the resulting report output file (out.txt), you will find an fprof report that shows
IP sample counts down to the instruction level. “fprof Measurement Report for matmul,
with IP Sample Counts for One Function” (p. 34) shows a section of the report that
contains IP sample counts for one function.
The numbers (which are bold in the PDF version of this guide) are annotations to
explain the report—they are not part of the output you receive. See the list at the end
of the report for the explanations.
Figure 2-2 fprof Measurement Report for matmul, with IP Sample Counts for One Function
Function Details
---------------------------------------------------
% Total Line|
IP IP Slot| >Statement|
Samples Samples Col,Offset Instruction
---------------------------------------------------
96.88 [matmul::main, 0x40009a0, matmul.c]
1
1275 ~38 Function Totals
2
------------------------------------------
3
[/home/meagher/matmul.c]
4
(32) ~16 *> mata[i][j] = matb[i][j] = (float) rand() ;
~9,0x0280:0 M nop.m 0
:1 M nop.m 0
:2 F_(p6) fcvt.xf f6=f6 ;;
5
2 ~9,0x0290:0 M nop.m 0
:1 M nop.m 0
:2 F_ fma.s f6=f6,f1,f0 ;;
~9,0x02a0:0 M stfs [r47]=f6,4
:1 M stfs [r48]=f6,4
:2 B_ br.call.sptk.many rp=b7 ;;
6
~ ~ ~ ~ ~ ~ ~ ~
~9,0x02e0:0 M nop.m 0
:1 M nop.m 0
:2 F_(p6) fcvt.xf f6=f6 ;;
4 ~9,0x02f0:0 M nop.m 0
:1 M nop.m 0
:2 F_ fma.s f6=f6,f1,f0 ;;
~9,0x0300:0 M stfs [r47]=f6,4
:1 M stfs [r48]=f6,4
:2 B_ br.call.sptk.many rp=b7 ;;
.
.
.
.
---------------------------------------------------
3.04 [libc.so.1::rand, 0x4119f60, rand.c]
40 ~57 Function Totals
------------------------------------------
1
Identifies the function (main) for which disassembly is shown. Specifies the
function's load module (matmul), starting address (0x40009a0), and source file
(matmul.c.
34 Getting Started with the HP Caliper Command-Line Interface