Displaying 4 results from an estimated 4 matches for "gethrtime".
2008 Jun 18
1
snv_81 domU: long delay during boot when dom0 has been up for a long time
...*tw;
576 hrtime_t curr_tick, curr;
577
578 /* If the system is suspended, just return */
579 if (timer_suspended)
580 return;
581
582 /* Get the current time */
583 timer_hrtime = ddi_timer->tick_time = curr = gethrtime();
gethrtime returned 3468552305121315; dividing by nanoseconds and the number
of seconds in a day:
3468552305121315/10^9/(24*60*60)
40.145
(dom0 is up for 40.145 days)
584 curr_tick = tw_tick(ddi_timer->tick_time);
tw_tick returns 2774841844.
And we have ddi_timer->tick ==...
2006 Oct 24
15
How to emit associative array after ^C
Boy am I a dummy. I want to simply dump out unfreed allocations when I terminate the script. What''s the secret sauce?
#!/usr/sbin/dtrace -s
pid$1::MyAlloc:return
{
bufs[arg1] = walltimestamp;
}
pid$1::MyFree:entry
/bufs[arg0]/
{
bufs[arg0] = 0;
}
This message posted from opensolaris.org
2006 Jun 06
1
[Fwd: Persistent "Abort due to systemic unresponsiveness"]
Just adding a few more details to the previous mail so that I can avoid
some trouble for you folks.
1. I have done a /execname != "dtrace"/ to avoid dtrace itself causing
more syscalls to be fired.
2. I have also supressed the printing on the terminal which makes dtrace
slower.
And what happens is this:
dtrace -qn ''syscall::read:entry /execname != "dtrace"/ {
2008 Oct 02
0
Comments for squeue.c; part 2.
...squeue_worker_wakeup(sqp); /* drops sq_lock */
return;
}
is both simpler and more efficient.
8.
681 sqp->sq_isintr = interrupt;
Do we want to distinguish here between the real interrupt and the case of
polling thread calling squeue_enter()?
9.
683 now = gethrtime();
684 if (interrupt) {
685 sqp->sq_drain(sqp, SQS_ENTER, now +
686 squeue_intrdrain_ns);
Since squeue_intrdrain_ns is a constant and squeue_drain can get the current
time by itself and squeue_drain wants to know whether it...