Displaying 1 result from an estimated 1 matches for "pr_stype".
2008 Feb 12
1
measuring sleep time in synchronization objects
...blocked on a
semaphore, i.e., as a result of sem_wait() call. In order to measure this, I
wrote a script with sched:::sleep and sched:wakeup probes enabled, as shown
below:
sched:::sleep
/execname == "myexecname"/
{
ustack();
bedtime[curlwpsinfo->pr_addr,curlwpsinfo->pr_stype] = walltimestamp;
}
sched:::wakeup
/bedtime[args[0]->pr_addr,args[0]->pr_stype]/
{
@sleeptime[execname,args[0]->pr_lwpid,args[0]->pr_addr,args[0]->pr_stype] =
sum(walltimestamp - bedtime[args[0]->pr_addr,args[0]->pr_stype]);
bedtime[args[0]->pr_addr,args[0]-&g...