search for: 6usec

Displaying 1 result from an estimated 1 matches for "6usec".

Did you mean: usec
2008 Oct 01
11
RFE: if/else control flow in probes
...job efficiently (see http://docs.sun.com/app/docs/doc/817-6223/chp-perf-3?a=view) For example, I have a dtrace script that prints out a message whenever a thread gets preempted during certain (< 1usec long) critical sections. To avoid the overhead of invoking dtrace every time they enter/exit (~6usec), at thread startup they pass dtrace a pointer to a variable which they can then update directly; dtrace checks it during context switches: sched:::off-cpu / pid == $1 && self->user_ptr != 0 && *(int*) copyin(self->usr_ptr, sizeof(int)) != 0 / { /* print notification message...