100.00

enh_thr_mutex1::start_routine [3]

[16]

18.4

0.0

18.4

0.00

libpthread.so.1::pthread_mutex_lock [16]

100.00libpthread.so.1::*unnamed@0x404(1670-5b70)* [14]

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

 

 

 

 

100.00

libpthread.so.1::_lwp_mutex_lock [15]

[17]

18.4

0.0

18.4

100.00

 

libpthread.so.1::__lwp_mutex_lock_sys [17]

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

Function Indexes (All Threads)

 

 

 

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

 

Index

Name

 

 

Index

Name

 

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

 

1

*ROOT*

 

 

7

foo

 

15

_lwp_mutex_lock

 

17

__lwp_mutex_lock_sys

11

_lwp_wait

 

 

10

___lwp_wait_sys

13

main

 

 

6

main_opd_entry

2

__pthread_bound_body

 

12

pthread_join

16

pthread_mutex_lock

 

5

sigtimedwait

8

__sigtimedwait_sys

 

4

_sleep

 

3

start_routine

 

14

*unnamed@0x404(1670-5b70)*

9

__vp_join

 

 

 

 

 

Load Module Summary (Thread 6065593@main)

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

% Total

Cumulat

 

Sample

Sample

 

 

IP

% of

IP

Hits

Hits

--- Sample Hits Waiting --

Samples

Total

Samples

Running

Blocked

Spinning

Blocked Load Module

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

38.78

38.78

19

0

19

0

0

libpthread.so.1

2.04

40.82

1

1

0

0

0

enh_thr_mutex1

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

40.82 40.822011900 Total

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

Function Summary (Thread 6065593@main)

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

% Total

Cumulat

 

Sample

Sample

 

 

IP

% of

IP

Hits

Hits

--- Sample Hits Waiting --

Samples

Total

Samples

Running

Blocked

Spinning

Blocked Function

 

 

File

 

 

 

 

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

38.78

38.78

19

0

 

19

0

0

libpthread.so.1::___lwp_wait_sys

 

 

 

 

 

2.04

40.82

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 (Thread 6065593@main)

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

% Total

 

Sample

Sample

 

 

Line

 

IP

IP

Hits

Hits

--- Sample Hits Waiting --

Slot

>Statement

Samples

Samples

Running

Blocked

Spinning

Blocked

Col,Offset

Instruction

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

38.78[(No source information) libpthread.so.1::___lwp_wait_sys, 0x4093be0]

1901900Function

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]

Hot Call Paths (Thread 6065593@main)

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

--% Total Hits In Only--

Run +

Run

Block

136 Producing a Sampled Call Stack Profile Analysis

Page 136
Image 136
HP UX Caliper Software manual Root