HP Caliper User's Guide

----------------------------------------------------------
[/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
*/
9 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]
Hot Call Paths (Thread 31021@main)
----------------------------
% Total
Hits In
Only Name
----------------------------
55.0 *kernel gateway* [5]
libpthread.so.0::pthread_join [6]
enh_thr_mutex1::main [1]
libc.so.6.1::__libc_start_main [2]
enh_thr_mutex1::_start [3]
----------------------------
45.0 enh_thr_mutex1::main [1]
libc.so.6.1::__libc_start_main [2]
enh_thr_mutex1::_start [3]
----------------------------
[Minimum function entries: 5, percent cutoff: 1.00, cumulative percent cutoff: 100.00]
Call Graph (Thread 31021@main)
------------------------------------------------
% Total % Func Hits
Hits Under Parent Parents
Index In / In Func Name Index
Under In Children Children
------------------------------------------------
100.00 libc.so.6.1::__libc_start_main [2]
[1] 100.0 45.00 enh_thr_mutex1::main [1]
55.00 libpthread.so.0::pthread_join [6]
------------------------------------------------
100.00 enh_thr_mutex1::_start [3]
[2] 100.0 0.00 libc.so.6.1::__libc_start_main [2]
100.00 enh_thr_mutex1::main [1]
------------------------------------------------
100.00 *ROOT* [4]
[3] 100.0 0.00 enh_thr_mutex1::_start [3]
100.00 libc.so.6.1::__libc_start_main [2]
------------------------------------------------
[4] 100.0 0.00 *ROOT* [4]
100.00 enh_thr_mutex1::_start [3]
------------------------------------------------
100.00 libpthread.so.0::pthread_join [6]
[5] 55.0 100.00 *kernel gateway* [5]
------------------------------------------------
100.00 enh_thr_mutex1::main [1]
[6] 55.0 0.00 libpthread.so.0::pthread_join [6]
100.00 *kernel gateway* [5]
------------------------------------------------
Function Indexes (Thread 31021@main)
---------------------------------------------------
Index Name Index Name
---------------------------------------------------
4 *ROOT* 5 *kernel gateway*
Call Stack Profile Text Report Example for Linux 187