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

---------------------------------------------------------------------------------------------------------
57.14 57.14 28 0 28 0 9 libpthread.so.1
40.82 97.96 20 0 20 0 0 libc.so.1
2.04 100.00 1 1 0 0 0 enh_thr_mutex1
---------------------------------------------------------------------------------------------------------
100.00 100.00 49 1 48 0 9 Total
---------------------------------------------------------------------------------------------------------
Function Summary (All Threads)
-----------------------------------------------------------------------------------------------------------------------------------
% Total Cumulat Sample Sample
IP % of IP Hits Hits --- Sample Hits Waiting --
Samples Total Samples Running Blocked Spinning Blocked Function
File
-----------------------------------------------------------------------------------------------------------------------------------
40.82 40.82 20 0 20 0 0
libc.so.1::__sigtimedwait_sys
38.78 79.59 19 0 19 0 0
libpthread.so.1::___lwp_wait_sys
18.37 97.96 9 0 9 0 9
libpthread.so.1::__lwp_mutex_lock_sys
2.04 100.00 1 1 0 0 0 enh_thr_mutex1::main
enh_thr_mutex1.c
-----------------------------------------------------------------------------------------------------------------------------------
[Minimum function entries: 5, percent cutoff: 0.10, cumulative percent cutoff: 100.00]
Function Details (All Threads)
-------------------------------------------------------------------------------------------------------------
% Total Sample Sample Line|
IP IP Hits Hits --- Sample Hits Waiting -- Slot| >Statement|
Samples Samples Running Blocked Spinning Blocked Col,Offset Instruction
-------------------------------------------------------------------------------------------------------------
40.82 [(No source information) libc.so.1::__sigtimedwait_sys, 0x422ab40]
20 0 20 0 0 Function
Totals
----------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------
38.78 [(No source information) libpthread.so.1::___lwp_wait_sys, 0x4093be0]
19 0 19 0 0 Function
Totals
----------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------
18.37 [(No source information) libpthread.so.1::__lwp_mutex_lock_sys, 0x4093ae0]
9 0 9 0 9 Function
Totals
----------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------
2.04 [enh_thr_mutex1::main, 0x4000d50, enh_thr_mutex1.c]
1 1 0 0 0 26 Function
Totals
----------------------------------------------------------------------------------------------------
[/home/bindu/TESTS/enh_thr_mutex1.c]
67 > ret_val =
pthread_create(&tid1, (pthread_attr_t *)NULL,
68 > (void
*(*)())start_routine, NULL);
69 >
check_error(ret_val, "pthread_create 1 failed");
70 >
71 > /*
wait till first thread is created */
1 1 0 0 0 72 > for
( i=0; i<100000000; i++);
73 >
74 > ret_val =
pthread_create(&tid2, (pthread_attr_t *)NULL,
75 > (void
*(*)())start_routine, NULL);
76 >
check_error(ret_val, "pthread_create 2 failed");
77 >
-------------------------------------------------------------------------------------------------------------
[Minimum function entries: 0, percent cutoff: 1.00, cumulative percent cutoff: 100.00]
Blocking Primitives Summary (All Threads)
-----------------------------------------------------
% Total Sample Sample Sample
Hits Hits Hits Hits Blocking
Waiting Waiting Spinning Blocked Primitive
-----------------------------------------------------
18.37 9 0 9 mutex@mtx1
-----------------------------------------------------
[Minimum primitives: 10, Percent cutoff: 1.00, cumulative percent cutoff: 100.00]
Hot Call Paths (All Threads)
----------------------------------------------
--% Total Hits In Only--
Run + Run Block
Block Hits Hits Name
Hits Only Only
Call Stack Profile Text Report Example for HP-UX 135