Instead of

hotspot$target::sleep:method-entry /self->trace/ {
self->time2 = vtimestamp; }

hotspot$target::sleep:method-return /self->trace/ {
self->idle_time = vtimestamp - self->time2; }

you could use the sched provider probes in Solaris.
sched:::off-cpu
/self->trace/ {

self->time2 = vtimestamp; }


sched:::on-cpu

/self->trace/ {

self->idle_time = vtimestamp - self->time2; }




Pramod



On 05/18/09 11:03, Ajit Bansode wrote:
Krishnan,

I tried your way.
But it's not working.
I think "dvm$target:sleep::method-entry" probe is not there.
Please point me if I am doing anything wrong.

Thanks,
Ajit
_______________________________________________
dtrace-discuss mailing list
[email protected]
  • [dtrace-discus... Ajit Bansode
    • Re: [dtra... krishnan parthasarathi - Sun Microsystems - Bangalore India
      • Re: [... Ajit Bansode
        • R... krishnan parthasarathi - Sun Microsystems - Bangalore India
      • Re: [... Keith McGuigan
        • R... Ajit Bansode
          • ... Ajit Bansode
            • ... krishnan parthasarathi - Sun Microsystems - Bangalore India
              • ... krishnan parthasarathi - Sun Microsystems - Bangalore India
            • ... Pramod Batni
              • ... Ajit Bansode
                • ... Ajit Bansode
                • ... krishnan parthasarathi - Sun Microsystems - Bangalore India
                • ... Pramod Batni

Reply via email to