search for: t_cpu

Displaying 1 result from an estimated 1 matches for "t_cpu".

Did you mean: ti_cpu
2007 Feb 21
6
CPU stats problem
...r; this hrtime_t timesystem; this hrtime_t timewait; this int in; dtrace:::BEGIN { this -> start = timestamp; this -> timeidle = 0; this -> timeuser = 0; this -> timesystem = 0; this -> timewait = 0; this -> in = 0; } sched:::on-cpu { this -> timeidle = curthread -> t_cpu -> cpu_acct[2]; this -> timeuser = curthread -> t_cpu -> cpu_acct[0]; this -> timesystem = curthread -> t_cpu -> cpu_acct[1]; this -> in = 1; } sched:::off-cpu /this->in/ { @user = sum(curthread->t_cpu->cpu_acct[0] - this -> timeus...