HP Caliper User Guide Release 5.5 (5900-2351, August 2012)

[4] 100.0 0.00 enh_thr_mutex1::foo [4]
100.00 libc.so.6.1::sleep [3]
------------------------------------------------
100.00 libpthread.so.0::start_thread [6]
[5] 100.0 0.00 enh_thr_mutex1::start_routine [5]
100.00 enh_thr_mutex1::foo [4]
------------------------------------------------
100.00 libc.so.6.1::__clone2 [7]
[6] 100.0 0.00 libpthread.so.0::start_thread [6]
100.00 enh_thr_mutex1::start_routine [5]
------------------------------------------------
100.00 *ROOT* [8]
[7] 100.0 0.00 libc.so.6.1::__clone2 [7]
100.00 libpthread.so.0::start_thread [6]
------------------------------------------------
[8] 100.0 0.00 *ROOT* [8]
100.00 libc.so.6.1::__clone2 [7]
------------------------------------------------
Function Indexes (Thread 31023@start_routine)
---------------------------------------------------
Index Name Index Name
---------------------------------------------------
2 __GC___libc_nanosleep 8 *ROOT*
7 __clone2 4 foo
1 *kernel gateway* 3 sleep
5 start_routine 6 start_thread
Call Stack Profile Report Details
This section gives some information about the sampled call stack profile report.
Flat Profile Part of the Report
The flat profile part of the report contains two levels of information:
Function Summary: exact counts of direct sample hits in function, summed across an entire
run of a measured application
Function Details: sampled PCs that are associated with the particular locations in the measured
application
You can specify how to arrange the results in the flat profile with the --sort-by option. The valid
sorting parameters are:
samples (default)
samples-running (HP-UX only)
samples-blocked (HP-UX only)
Blocking Primitives Summary Part of the Report
This section reports the exact counts and percentages of samples blocked waiting for a primitive.
You can use the --prim-cutoff option to specify cutoff values that limit the blocking primitives
reported in this section.
Thread Synchronization Primitive's Holder and Waiter Thread Analysis (HP-UX 11.31 only)
The Caliper cstack measurement supports holder and waiter thread analysis of synchronization
primitives in a multi-threaded application. Currently this feature is available for pthread mutexes
on HP-UX 11.31 only. To exploit this feature, the target application needs to be linked with
libpthread version 11.31_BL2009_1012_2 (or later). The pthread library is available with
cumulative patch PHCO_40211.
Example 4 shows a report produced by a sample cstack run.
148 Producing a Sampled Call Stack Profile Analysis