search for: pr_addr

Displaying 2 results from an estimated 2 matches for "pr_addr".

Did you mean: wpr_addr
2008 Feb 12
1
measuring sleep time in synchronization objects
...my application sleeps, 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[...
2008 Oct 01
5
ustack()s of SIGSEGV''ed programs
Hi all, I am trying to write a D script which would print ustack() for every program in the system receiving SIGSEGV. All the stacks printed in trap()/sigtoproc() context do not have meaningful symbols. The following solves the problem to some degree but I''d much rather have a self-contained D script. dtrace -w -n ''fbt:genunix:sigtoproc:entry/arg2 == 11/ {