On Wed, 2007-11-07 at 12:35 -0800, Neelam wrote:
> Well I am trying to record the duration of user level mutex locks. Below is 
> the simple script:
> 
> -----------------------------------------------------------------
> #!/usr/sbin/dtrace -s
> 
> dtrace:::BEGIN
> {
> self->begin=timestamp;
> self->mutex_acq=0;
> }
> 
> plockstat$1:::mutex-acquire
> {
> self->ts[arg0]=timestamp;
> self->mutex_acq++;
> @mutex_acquired["No of mutexes acquired"]=count();

  One extra bit of advice -- get rid of aggregations. They might
add to dilation quite significantly.

Thanks,
Roman.

_______________________________________________
dtrace-discuss mailing list
[email protected]

Reply via email to