--------------------------------------------------------------

 

Function Summary

(All Threads)

 

 

 

----------------------------------------------------------------------------------------

% Total

Cumulat

Wall-

Sample

 

 

IP

% of

Clock

Hits

 

 

Samples

Total

Samples

Waiting

Function

File

----------------------------------------------------------------------------------------

78.05

78.05

32

1

*kernel gateway*

 

21.95

100.00

9

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

Wall-

Sample

Line

 

IP

Clock

Hits

Slot

>Statement

Samples

Samples

Waiting

Col,Offset

Instruction

------------------------------------------------------------------

78.05[(No source information) *kernel gateway*, 0xa000000000000000]

321Function Totals

----------------------------------------------------------

------------------------------------------------------------------

21.95[enh_thr_mutex1::main, 0x4000000000000cf0, enh_thr_mutex1.c]

9

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 */

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]

Blocking Primitives Summary (All Threads)

-----------------------------------------------------

% Total

Sample

Sample

Sample

 

Hits

Hits

Hits

Hits

Blocking

Waiting

Waiting

Spinning

Blocked

Primitive

-----------------------------------------------------

2.44

1

1

0

mutex@mtx1

-----------------------------------------------------

[Minimum primitives: 10, Percent cutoff: 1.00, cumulative percent cutoff: 100.00]

Hot Call Paths (All Threads)

----------------------------

%Total Hits In

Only Name

----------------------------

48.8*kernel gateway* [2]

libc.so.6.1::__GC___libc_nanosleep [9] libc.so.6.1::sleep [10] enh_thr_mutex1::foo [11] enh_thr_mutex1::start_routine [3] libpthread.so.0::start_thread [4] libc.so.6.1::__clone2 [5]

----------------------------

26.8*kernel gateway* [2]

libpthread.so.0::pthread_join [12] enh_thr_mutex1::main [6] libc.so.6.1::__libc_start_main [7] enh_thr_mutex1::_start [8]

----------------------------

22.0enh_thr_mutex1::main [6] libc.so.6.1::__libc_start_main [7] enh_thr_mutex1::_start [8]

----------------------------

2.4*kernel gateway* [2]

libpthread.so.0::__lll_lock_wait [13] libpthread.so.0::pthread_mutex_lock [14] enh_thr_mutex1::start_routine [3] libpthread.so.0::start_thread [4] libc.so.6.1::__clone2 [5]

----------------------------

[Minimum function entries: 5, percent cutoff: 1.00, cumulative percent cutoff: 100.00]

Call Graph (All Threads)

------------------------------------------------

 

% Total

% Func Hits

 

 

 

Hits

Under Parent

 

Parents

Index

In /

In Func

Name

Index

 

Under

In Children

 

Children

------------------------------------------------

142 Producing a Sampled Call Stack Profile Analysis