HP Caliper User's Guide

-------------------------------------------------------------------------------------------------------------
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
----------------------------------------------
40.8 0.0 40.8 libc.so.1::__sigtimedwait_sys [8]
libc.so.1::sigtimedwait [5]
libc.so.1::_sleep [4]
enh_thr_mutex1::foo [7]
enh_thr_mutex1::start_routine [3]
libpthread.so.1::__pthread_bound_body [2]
----------------------------------------------
38.8 0.0 38.8 libpthread.so.1::___lwp_wait_sys [10]
libpthread.so.1::_lwp_wait [11]
Call Stack Profile Text Report Example for HP-UX 175