search for: curlwpsinfo

Displaying 4 results from an estimated 4 matches for "curlwpsinfo".

2006 Jun 20
1
Extending lwpsinfo_t with pr_lgrp for DTrace consumers
...reserved fields). The pr_lgrp field will only be available for consumers with dtrace_kernel privilege since the translator needs to do kernel pointer dereference. This change allows simple script to get lgroup migration statistics, e.g. sched:::on-cpu /execname != "sched" && curlwpsinfo->pr_lgrp != lgrp/ { @[execname, curlwpsinfo->pr_lgrp] = count(); } snmpd 3 1 utmpd 1 1 automountd 2 2 intrd...
2008 Feb 12
1
measuring sleep time in synchronization objects
...h each thread in 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]); b...
2010 May 04
2
sched provider
Hi All, I used the following script from the dtrace manual to measure how long a particular process runs on the cpu. Modified it to look at the exact timestamps: [i] sched:::on-cpu { self->ts = timestamp; printf("on=%d\n", self->ts) } sched:::off-cpu /self->ts/ { printf("off=%d\n", timestamp) self->ts = 0; } [/i] The output looks like this: [i]on=24591 off=24603
2011 Jan 18
2
Surprise Thread Preemptions
...f->preempt/ { /* * If we were told to preempt ourselves, see who we ended up giving * the CPU to. */ @[stringof(args[1]->pr_fname), args[0]->pr_pri, execname, curlwpsinfo->pr_pri] = count(); self->preempt = 0; } END { printf("%30s %3s %30s %3s %5s\n", "PREEMPTOR", "PRI","||","PREEMPTED", "PRI", "#"); printa("%30s %3d %30s...