/titanic_51/usr/src/cmd/intrd/ |
H A D | intrd.pl | 116 # a new "delta" hash that represents what has changed over time. 119 # a single delta hash that encompasses all the time periods described by the 313 # to access the kstats, and then we create a delta comparing these 314 # kstats with a prior set of kstats, that delta will cover 335 # dumpdelta takes a reference to our "delta" structure: 336 # {"missing"} "1" if the delta's component stats had inconsistencies 337 # {"minsnap"} time of the first kstat snaptime used in this delta 338 # {"maxsnap"} time of the last kstat snaptime used in this delta 339 # {"goodness"} cost function applied to this delta 357 # It prints out the delta structur [all...] |
/titanic_51/usr/src/lib/libfakekernel/common/ |
H A D | cond.c | 106 clock_t delta; in cv_timedwait() local 108 delta = abstime - ddi_get_lbolt(); in cv_timedwait() 109 return (cv__twait(cv, mp, delta, 0)); in cv_timedwait() 115 clock_t delta; in cv_timedwait_sig() local 117 delta = abstime - ddi_get_lbolt(); in cv_timedwait_sig() 118 return (cv__twait(cv, mp, delta, 1)); in cv_timedwait_sig() 122 cv_reltimedwait(kcondvar_t *cv, kmutex_t *mp, clock_t delta, time_res_t res) in cv_reltimedwait() argument 126 return (cv__twait(cv, mp, delta, 0)); in cv_reltimedwait() 130 cv_reltimedwait_sig(kcondvar_t *cv, kmutex_t *mp, clock_t delta, in cv_reltimedwait_sig() argument 135 return (cv__twait(cv, mp, delta, in cv_reltimedwait_sig() 146 cv__twait(kcondvar_t * cv,kmutex_t * mp,clock_t delta,int sigok) cv__twait() argument [all...] |
/titanic_51/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_time.c | 52 fmd_time_addhrtime(hrtime_t delta) in fmd_time_addhrtime() argument 54 fmd.d_clockops->fto_addhrtime(delta); in fmd_time_addhrtime() 58 fmd_time_waithrtime(hrtime_t delta) in fmd_time_waithrtime() argument 60 fmd.d_clockops->fto_waithrtime(delta); in fmd_time_waithrtime() 86 hrtime_t t0, t1, delta; in fmd_time_sync() local 92 delta = t1 - t0; in fmd_time_sync() 94 if (delta < hrtmin) { in fmd_time_sync() 95 hrtmin = delta; in fmd_time_sync() 96 hrtbase = t0 + delta / 2; in fmd_time_sync() 289 fmd_simulator_add(hrtime_t delta) in fmd_simulator_add() argument 308 fmd_simulator_wait(hrtime_t delta) fmd_simulator_wait() argument 353 fmd_native_wait(hrtime_t delta) fmd_native_wait() argument [all...] |
H A D | fmd_timerq.c | 41 * Install a new timer to fire after at least 'delta' nanoseconds have elapsed. 49 fmd_timer_f *func, void *arg, fmd_event_t *ep, hrtime_t delta) in fmd_timerq_install() argument 72 if (delta < 0) in fmd_timerq_install() 73 delta = 0; /* ensure delta is at least 0ns from now */ in fmd_timerq_install() 75 if (base + delta < base) in fmd_timerq_install() 78 hrt = base + delta; in fmd_timerq_install() 109 ids->ids_name, id, delta)); in fmd_timerq_install() 124 hrtime_t delta = 0; in fmd_timerq_remove() local 139 delta in fmd_timerq_remove() [all...] |
H A D | fmd_eventq.c | 121 hrtime_t new, delta; in fmd_eventqstat_dispatch() local 127 delta = new - eqs->eqs_wlastupdate.fmds_value.ui64; in fmd_eventqstat_dispatch() 132 eqs->eqs_wlentime.fmds_value.ui64 += delta * wcnt; in fmd_eventqstat_dispatch() 133 eqs->eqs_wtime.fmds_value.ui64 += delta; in fmd_eventqstat_dispatch() 239 hrtime_t new, delta; in fmd_eventq_delete() local 284 delta = new - eqs->eqs_wlastupdate.fmds_value.ui64; in fmd_eventq_delete() 292 eqs->eqs_wlentime.fmds_value.ui64 += delta * wcnt; in fmd_eventq_delete() 293 eqs->eqs_wtime.fmds_value.ui64 += delta; in fmd_eventq_delete() 313 hrtime_t new, delta; in fmd_eventq_done() local 318 delta in fmd_eventq_done() [all...] |
/titanic_51/usr/src/uts/common/fs/tmpfs/ |
H A D | tmp_tnode.c | 63 size_t delta, /* size needed */ in tmp_resv() argument 66 pgcnt_t pages = btopr(delta); in tmp_resv() 83 (anon_try_resv_zone(delta, zone) == 0))) { in tmp_resv() 96 tp, delta); in tmp_resv() 105 * because anon_unresv does a btopr(delta) 111 size_t delta) in tmp_unresv() argument 116 anon_unresv_zone(delta, tm->tm_vfsp->vfs_zone); in tmp_unresv() 119 tm->tm_anonmem -= btopr(delta); in tmp_unresv() 122 TRACE_2(TR_FAC_VM, TR_ANON_TMPFS, "anon tmpfs:%p %lu", tp, delta); in tmp_unresv() 234 size_t delta; in tmpnode_trunc() local [all...] |
/titanic_51/usr/src/uts/common/syscall/ |
H A D | alarm.c | 61 clock_t delta = (uint_t)deltat; in alarm() local 87 * to that limit. If delta is negative we can in alarm() 88 * assume a wrap has occurred so peg delta in in alarm() 91 if (delta > (LONG_MAX / hz) || delta < 0) in alarm() 92 delta = LONG_MAX / hz; in alarm() 94 if (delta) in alarm() 95 p->p_alarmid = realtime_timeout(sigalarm2proc, p, delta * hz); in alarm()
|
H A D | lwp_timer.c | 58 timespec_t now, delta; in lwp_timer_timeout() local 71 delta = lwptp->lwpt_rqtime; in lwp_timer_timeout() 72 timespecsub(&delta, &now); in lwp_timer_timeout() 74 lwp_timer_timeout, lwptp, ts2hrt(&delta), nsec_per_tick, in lwp_timer_timeout() 148 timespec_t now, delta; in lwp_timer_enqueue() local 161 delta = lwptp->lwpt_rqtime; in lwp_timer_enqueue() 162 timespecsub(&delta, &now); in lwp_timer_enqueue() 164 lwp_timer_timeout, lwptp, ts2hrt(&delta), nsec_per_tick, in lwp_timer_enqueue()
|
/titanic_51/usr/src/cmd/dtrace/test/tst/common/rates/ |
H A D | tst.statusrate.d | 37 * Tests the statusrate option, by checking that the time delta between 53 /(this->delta = timestamp - ts) > 2 * NANOSEC/ 59 /this->delta <= 2 * NANOSEC/ 61 printf("delta between exit() and END (%u nanos) too small", 62 this->delta); 67 /this->delta > 20 * NANOSEC/ 69 printf("delta between exit() and END (%u nanos) too large", 70 this->delta);
|
/titanic_51/usr/src/cmd/cmd-inet/usr.bin/ |
H A D | finger.c | 838 struct tm *delta; in stimeprint() local 840 delta = gmtime(dt); in stimeprint() 841 if (delta->tm_yday == 0) in stimeprint() 842 if (delta->tm_hour == 0) in stimeprint() 843 if (delta->tm_min == 0) in stimeprint() 846 (void) printf(" %2d", delta->tm_min); in stimeprint() 848 if (delta->tm_hour >= 10) in stimeprint() 849 (void) printf("%3d:", delta->tm_hour); in stimeprint() 852 delta->tm_hour, delta in stimeprint() 865 struct tm *delta; ltimeprint() local [all...] |
/titanic_51/usr/src/common/atomic/ |
H A D | atomic.c | 110 atomic_add_16(volatile uint16_t *target, int16_t delta) in atomic_add_16() argument 111 { *target += delta; } in atomic_add_16() 118 atomic_add_32(volatile uint32_t *target, int32_t delta) in atomic_add_32() argument 119 { *target += delta; } in atomic_add_32() 126 atomic_add_long(volatile ulong_t *target, long delta) in atomic_add_long() argument 127 { *target += delta; } in atomic_add_long() 130 atomic_add_64(volatile uint64_t *target, int64_t delta) in atomic_add_64() argument 131 { *target += delta; } in atomic_add_64() 270 atomic_add_16_nv(volatile uint16_t *target, int16_t delta) in atomic_add_16_nv() argument 271 { return (*target += delta); } in atomic_add_16_nv() 278 atomic_add_32_nv(volatile uint32_t * target,int32_t delta) atomic_add_32_nv() argument 282 atomic_add_int_nv(volatile uint_t * target,int delta) atomic_add_int_nv() argument 290 atomic_add_long_nv(volatile ulong_t * target,long delta) atomic_add_long_nv() argument 294 atomic_add_64_nv(volatile uint64_t * target,int64_t delta) atomic_add_64_nv() argument [all...] |
/titanic_51/usr/src/uts/i86pc/io/pcplusmp/ |
H A D | apic_timer.c | 251 int64_t delta; in oneshot_timer_reprogram() local 255 delta = time - now; in oneshot_timer_reprogram() 257 if (delta <= 0) { in oneshot_timer_reprogram() 263 } else if (delta > apic_nsec_max) { in oneshot_timer_reprogram() 276 ticks = APIC_NSECS_TO_TICKS(delta); in oneshot_timer_reprogram() 328 int64_t delta; in deadline_timer_reprogram() local 335 delta = time - gethrtime(); in deadline_timer_reprogram() 338 delta = max(delta, 0); in deadline_timer_reprogram() 341 ticks = (uint64_t)tsc_read() + unscalehrtime(delta); in deadline_timer_reprogram() [all...] |
/titanic_51/usr/src/uts/intel/io/pci/ |
H A D | pci_memlist.c | 223 uint64_t delta, total_size; in memlist_find() local 230 delta = next->ml_address & ((align != 0) ? (align - 1) : 0); in memlist_find() 231 if (delta != 0) in memlist_find() 232 total_size = size + align - delta; in memlist_find() 245 if (delta) in memlist_find() 246 paddr += align - delta; in memlist_find() 260 uint64_t delta, total_size; in memlist_find_with_startaddr() local 272 delta = next->ml_address & ((align != 0) ? (align - 1) : 0); in memlist_find_with_startaddr() 273 if (delta != 0) in memlist_find_with_startaddr() 274 total_size = size + align - delta; in memlist_find_with_startaddr() [all...] |
/titanic_51/usr/src/cmd/fm/fminject/common/ |
H A D | inj_log.c | 53 hrtime_t delta; in inj_logfile_event() local 73 * For now, compute the delta between the previous record and this one in inj_logfile_event() 78 delta = (rec_sec - ilf->ilf_sec) * NANOSEC; in inj_logfile_event() 79 delta += (hrtime_t)rec_nsec - (hrtime_t)ilf->ilf_nsec; in inj_logfile_event() 81 if (delta < 0) in inj_logfile_event() 82 die("record [%d] timestamp delta too large\n", ilf->ilf_index); in inj_logfile_event() 84 if (delta > 0) in inj_logfile_event() 85 inj_cmds_add(inj_cmd_addhrt(delta)); in inj_logfile_event()
|
/titanic_51/usr/src/lib/libzonestat/common/ |
H A D | zonestat_impl.h | 80 #define TIMESTRUC_DELTA(delta, new, old) \ argument 82 (delta).tv_sec = (new).tv_sec - (old).tv_sec; \ 83 (delta).tv_nsec = (new).tv_nsec - (old).tv_nsec;\ 84 if ((delta).tv_nsec < 0) { \ 85 delta.tv_nsec += NANOSEC; \ 86 delta.tv_sec -= 1; \ 88 if ((delta).tv_sec < 0) { \ 89 delta.tv_sec = 0; \ 90 delta.tv_nsec = 0; \
|
/titanic_51/usr/src/cmd/audio/audiotest/ |
H A D | wavedata.c | 131 int predictor[2], delta[2], samp1[2], samp2[2]; in uncompress_wave() local 148 delta[i] = (short)le_int(&buf[x], 2); in uncompress_wave() 178 new = pred + (delta[i] * i_delta); in uncompress_wave() 181 delta[i] = delta[i] * in uncompress_wave() 183 if (delta[i] < 16) in uncompress_wave() 184 delta[i] = 16; in uncompress_wave()
|
/titanic_51/usr/src/uts/common/os/ |
H A D | condvar.c | 246 cv_reltimedwait(kcondvar_t *cvp, kmutex_t *mp, clock_t delta, time_res_t res) in cv_reltimedwait() argument 252 if (delta <= 0) in cv_reltimedwait() 255 if ((exp = TICK_TO_NSEC(delta)) < 0) in cv_reltimedwait() 505 cv_reltimedwait_sig(kcondvar_t *cvp, kmutex_t *mp, clock_t delta, in cv_reltimedwait_sig() argument 512 if (delta > 0) { in cv_reltimedwait_sig() 513 if ((exp = TICK_TO_NSEC(delta)) < 0) in cv_reltimedwait_sig() 770 timestruc_t delta; in cv_waituntil_sig() local 778 delta = *when; in cv_waituntil_sig() 779 timespecsub(&delta, &now); in cv_waituntil_sig() 780 if (delta in cv_waituntil_sig() [all...] |
H A D | callout.c | 437 callout_queue_process(callout_table_t *ct, hrtime_t delta, int timechange) in callout_queue_process() argument 484 if (delta && !(cl->cl_flags & CALLOUT_LIST_FLAG_ABSOLUTE)) { in callout_queue_process() 485 expiration = cl->cl_expiration + delta; in callout_queue_process() 859 callout_heap_process(callout_table_t *ct, hrtime_t delta, int timechange) in callout_heap_process() argument 931 if (delta && !(cl->cl_flags & CALLOUT_LIST_FLAG_ABSOLUTE)) { in callout_heap_process() 934 expiration = cl->cl_expiration + delta; in callout_heap_process() 1194 timeout(void (*func)(void *), void *arg, clock_t delta) in timeout() argument 1201 if (delta <= 0) in timeout() 1202 delta = 1; in timeout() 1203 else if (delta > callout_max_tick in timeout() 1217 timeout_default(void (* func)(void *),void * arg,clock_t delta) timeout_default() argument 1236 realtime_timeout(void (* func)(void *),void * arg,clock_t delta) realtime_timeout() argument 1259 realtime_timeout_default(void (* func)(void *),void * arg,clock_t delta) realtime_timeout_default() argument 1664 callout_resume(hrtime_t delta,int timechange) callout_resume() argument 1734 hrtime_t delta; callout_debug_callb() local [all...] |
H A D | kstat_fr.c | 1319 hrtime_t new, delta; in kstat_waitq_enter() local 1323 delta = new - kiop->wlastupdate; in kstat_waitq_enter() 1327 kiop->wlentime += delta * wcnt; in kstat_waitq_enter() 1328 kiop->wtime += delta; in kstat_waitq_enter() 1335 hrtime_t new, delta; in kstat_waitq_exit() local 1339 delta = new - kiop->wlastupdate; in kstat_waitq_exit() 1343 kiop->wlentime += delta * wcnt; in kstat_waitq_exit() 1344 kiop->wtime += delta; in kstat_waitq_exit() 1350 hrtime_t new, delta; in kstat_runq_enter() local 1354 delta in kstat_runq_enter() 1366 hrtime_t new, delta; kstat_runq_exit() local 1381 hrtime_t new, delta; kstat_waitq_to_runq() local 1405 hrtime_t new, delta; kstat_runq_back_to_waitq() local [all...] |
/titanic_51/usr/src/uts/i86pc/io/ |
H A D | todpc_subr.c | 236 int delta, asec, amin, ahr, adom, amon; in todpc_setalarm() local 258 delta = nsecs + BCD_TO_BYTE(rtc.rtc_sec); in todpc_setalarm() 259 asec = delta % 60; in todpc_setalarm() 261 delta = (delta / 60) + BCD_TO_BYTE(rtc.rtc_min); in todpc_setalarm() 262 amin = delta % 60; in todpc_setalarm() 264 delta = (delta / 60) + BCD_TO_BYTE(rtc.rtc_hr); in todpc_setalarm() 265 ahr = delta % 24; in todpc_setalarm() 267 if (day_alrm == 0 && delta > in todpc_setalarm() [all...] |
/titanic_51/usr/src/uts/common/c2/ |
H A D | audit_syscalls.c | 125 int hdrlen, delta; in audit() local 192 delta = 1 + 2 + 2; in audit() 193 hdrlen = 1 + 4 + delta + (sizeof (int32_t) * 2); in audit() 200 delta = 1 + 2 + 2; in audit() 201 hdrlen = 1 + 4 + delta + (sizeof (int64_t) * 2); in audit() 217 delta = 1 + 2 + 2 + 4 + host_len; in audit() 218 hdrlen = 1 + 4 + delta + (sizeof (int32_t) * 2); in audit() 234 delta = 1 + 2 + 2 + 4 + host_len; in audit() 235 hdrlen = 1 + 4 + delta + (sizeof (int64_t) * 2); in audit() 306 hadr.adr_now += delta; in audit() [all...] |
/titanic_51/usr/src/cmd/fm/fmstat/common/ |
H A D | fmstat.c | 262 uint64_t delta; in modstat_compute() local 300 * Compute the elapsed time by taking the delta between 'snaptime', or in modstat_compute() 302 * If delta is zero, set it to 1sec so we don't divide by zero later. in modstat_compute() 304 delta = u64delta(old->snaptime.fmds_value.ui64 ? in modstat_compute() 308 elapsed = delta ? (double)delta : (double)NANOSEC; in modstat_compute() 311 * Compute average wait queue len by taking the delta in the wait queue in modstat_compute() 314 delta = u64delta(old->wlentime.fmds_value.ui64, in modstat_compute() 317 if (delta != 0) in modstat_compute() 318 mp->m_wait = (double)delta / elapse in modstat_compute() [all...] |
/titanic_51/usr/src/uts/common/fs/smbclnt/smbfs/ |
H A D | smbfs_client.c | 214 hrtime_t delta, now; in smbfs_attrcache_fa() local 258 delta = 0; in smbfs_attrcache_fa() 260 delta = now - np->r_mtime; in smbfs_attrcache_fa() 262 if (delta < smi->smi_acdirmin) in smbfs_attrcache_fa() 263 delta = smi->smi_acdirmin; in smbfs_attrcache_fa() 264 else if (delta > smi->smi_acdirmax) in smbfs_attrcache_fa() 265 delta = smi->smi_acdirmax; in smbfs_attrcache_fa() 267 if (delta < smi->smi_acregmin) in smbfs_attrcache_fa() 268 delta = smi->smi_acregmin; in smbfs_attrcache_fa() 269 else if (delta > sm in smbfs_attrcache_fa() [all...] |
/titanic_51/usr/src/cmd/mailx/ |
H A D | stralloc.c | 127 register unsigned s, delta; in srealloc() local 140 delta = s - (sp->s_nextFree - (char *)optr); in srealloc() 141 if (delta <= sp->s_nleft) { in srealloc() 142 sp->s_nextFree += delta; in srealloc() 143 sp->s_nleft -= delta; in srealloc()
|
/titanic_51/usr/src/cmd/power/ |
H A D | sysstat.c | 273 int delta = 0; in check_disks() local 283 delta += DISK_DELTA(reads); in check_disks() 289 &info->pd_diskreads_sum, delta, time); in check_disks() 291 (void) printf(" Disk reads = %d\n", delta); in check_disks() 364 int delta; in check_tty() local 369 delta = CPU_DELTA("rawch") + CPU_DELTA("outch"); in check_tty() 371 &info->pd_ttychars_sum, delta, tty_snaptime); in check_tty() 373 (void) printf(" Tty chars = %d\n", delta); in check_tty() 509 int delta; in check_nfs() local 533 delta in check_nfs() 648 keep_activity_data(activity_data_t ** act_start,activity_data_t ** act_end,int * delta_sum,int delta,hrtime_t time) keep_activity_data() argument [all...] |