Home
last modified time | relevance | path

Searched refs:delta (Results 1 – 25 of 236) sorted by relevance

12345678910

/illumos-gate/usr/src/cmd/intrd/
H A Dintrd.pl369 $delta->{avgintrload} * 100, $delta->{avgintrnsec});
405 my %delta = ();
413 if (VERIFY($delta{maxsnap} > $delta{minsnap},
450 $delta{$cpu}{tot} = 1 if $delta{$cpu}{tot} == 0;
518 if ($delta{$cpu}{tot} < $delta{$cpu}{intrs}) {
521 $delta{$cpu}{tot} = $delta{$cpu}{intrs};
524 $delta{$cpu}{intrs} / $delta{$cpu}{tot};
894 sort({$delta->{$b}{intrload} <=> $delta->{$a}{intrload}}
906 if (goodness_cpu($delta->{$cpu}, $delta->{avgintrload}) <
1236 my $delta;
[all …]
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Dcond.c108 clock_t delta; in cv_timedwait() local
117 clock_t delta; in cv_timedwait_sig() local
126 clock_t delta; in cv_timedwait_sig_hrtime() local
128 delta = tim; in cv_timedwait_sig_hrtime()
137 clock_t delta; in cv_timedwait_hires() local
139 delta = tim; in cv_timedwait_hires()
141 delta -= gethrtime(); in cv_timedwait_hires()
175 if (delta <= 0) in cv__twait()
179 ts.tv_sec = delta / NANOSEC; in cv__twait()
180 ts.tv_nsec = delta % NANOSEC; in cv__twait()
[all …]
H A Dcallout.c36 timeout(void (*func)(void *), void *arg, clock_t delta) in timeout() argument
43 if (delta <= 0) in timeout()
55 TICK_TO_TIMESTRUC(delta, &its.it_value); in timeout()
71 clock_t delta; in untimeout() local
85 delta = 0; in untimeout()
87 delta = TIMESTRUC_TO_TICK(&oits.it_value); in untimeout()
88 if (delta < 0) in untimeout()
89 delta = 0; in untimeout()
94 delta = -1; in untimeout()
96 return (delta); in untimeout()
/illumos-gate/usr/src/uts/common/syscall/
H A Dpsecflags.c25 const secflagdelta_t *delta; member
31 if (delta->psd_ass_active) { in secflags_apply_delta()
32 secflags_copy(set, &delta->psd_assign); in secflags_apply_delta()
34 if (!secflags_isempty(delta->psd_add)) { in secflags_apply_delta()
35 secflags_union(set, &delta->psd_add); in secflags_apply_delta()
37 if (!secflags_isempty(delta->psd_rem)) { in secflags_apply_delta()
38 secflags_difference(set, &delta->psd_rem); in secflags_apply_delta()
57 if (!psecflags_validate_delta(&p->p_secflags, args->delta)) { in psecdo()
63 audit_psecflags(p, args->which, args->delta); in psecdo()
80 secflags_apply_delta(set, args->delta); in psecdo()
[all …]
H A Dalarm.c61 clock_t delta = (uint_t)deltat; in alarm() local
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 Dlwp_timer.c58 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()
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_time.c52 fmd_time_addhrtime(hrtime_t delta) in fmd_time_addhrtime() argument
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()
298 fts->fts_hrt += delta; in fmd_simulator_add()
323 hrt = fts->fts_hrt + delta; in fmd_simulator_wait()
353 fmd_native_wait(hrtime_t delta) in fmd_native_wait() argument
357 tv.tv_sec = delta / NANOSEC; in fmd_native_wait()
[all …]
H A Dfmd_timerq.c49 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 = tp->tmr_hrt - fmd_time_gethrtime(); in fmd_timerq_remove()
165 ids->ids_name, id, delta > 0 ? delta : 0LL)); in fmd_timerq_remove()
H A Dfmd_eventq.c121 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 = new - eqs->eqs_dlastupdate.fmds_value.ui64; in fmd_eventq_done()
[all …]
/illumos-gate/usr/src/common/secflags/
H A Dsecflags.c106 psecflags_validate_delta(const psecflags_t *sf, const secflagdelta_t *delta) in psecflags_validate_delta() argument
108 if (delta->psd_ass_active) { in psecflags_validate_delta()
113 if (!secflags_issubset(delta->psd_assign, sf->psf_upper) || in psecflags_validate_delta()
114 !secflags_issuperset(delta->psd_assign, sf->psf_lower)) { in psecflags_validate_delta()
118 if (!secflags_issubset(delta->psd_assign, PROC_SEC_MASK)) in psecflags_validate_delta()
122 if (!secflags_isempty(delta->psd_add)) { in psecflags_validate_delta()
123 if (!secflags_issubset(delta->psd_add, sf->psf_upper)) { in psecflags_validate_delta()
129 if (!secflags_isempty(delta->psd_rem)) { in psecflags_validate_delta()
130 if (secflags_intersection(delta->psd_rem, in psecflags_validate_delta()
136 if (!secflags_issubset(delta->psd_add, PROC_SEC_MASK) || in psecflags_validate_delta()
[all …]
/illumos-gate/usr/src/uts/common/fs/tmpfs/
H A Dtmp_tnode.c63 size_t delta, /* size needed */ in tmp_resv() argument
66 pgcnt_t pages = btopr(delta); in tmp_resv()
96 tp, delta); in tmp_resv()
111 size_t delta) in tmp_unresv() argument
119 tm->tm_anonmem -= btopr(delta); in tmp_unresv()
234 size_t delta; in tmpnode_trunc() local
251 delta = P2ROUNDUP(newsize, PAGESIZE) - in tmpnode_trunc()
271 if (tmp_resv(tm, tp, delta, in tmpnode_trunc()
284 delta = P2ROUNDUP(oldsize, PAGESIZE) - in tmpnode_trunc()
287 btopr(delta)); in tmpnode_trunc()
[all …]
/illumos-gate/usr/src/lib/libdemangle/common/
H A Drust-v0puny.c46 rustv0_puny_adapt(size_t delta, size_t npoints, boolean_t first) in rustv0_puny_adapt() argument
50 delta = first ? delta / DAMP : delta / 2; in rustv0_puny_adapt()
51 delta += delta / npoints; in rustv0_puny_adapt()
52 while (delta > ((BASE - TMIN) * TMAX) / 2) { in rustv0_puny_adapt()
53 delta /= (BASE - TMIN); in rustv0_puny_adapt()
57 return (k + (((BASE - TMIN + 1) * delta) / (delta + SKEW))); in rustv0_puny_adapt()
/illumos-gate/usr/src/uts/i86pc/io/pcplusmp/
H A Dapic_timer.c230 int64_t delta; in oneshot_timer_reprogram() local
234 delta = time - now; in oneshot_timer_reprogram()
236 if (delta <= 0) { in oneshot_timer_reprogram()
242 } else if (delta > apic_nsec_max) { in oneshot_timer_reprogram()
255 ticks = APIC_NSECS_TO_TICKS(delta); in oneshot_timer_reprogram()
307 int64_t delta; in deadline_timer_reprogram() local
314 delta = time - gethrtime(); in deadline_timer_reprogram()
317 delta = max(delta, 0); in deadline_timer_reprogram()
320 ticks = (uint64_t)tsc_read() + unscalehrtime(delta); in deadline_timer_reprogram()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Dfinger.c842 struct tm *delta; in stimeprint() local
844 delta = gmtime(dt); in stimeprint()
856 delta->tm_hour, delta->tm_min); in stimeprint()
869 struct tm *delta; in ltimeprint() local
871 delta = gmtime(dt); in ltimeprint()
872 if (delta->tm_yday == 0 && delta->tm_hour == 0 && delta->tm_min == 0 && in ltimeprint()
880 delta->tm_yday, delta->tm_yday == 1 ? "" : "s", in ltimeprint()
881 delta->tm_hour, delta->tm_hour == 1 ? "" : "s"); in ltimeprint()
887 delta->tm_hour, delta->tm_hour == 1 ? "" : "s", in ltimeprint()
888 delta->tm_min, delta->tm_min == 1 ? "" : "s"); in ltimeprint()
[all …]
/illumos-gate/usr/src/common/atomic/
H A Datomic.c110 atomic_add_16(volatile uint16_t *target, int16_t delta) in atomic_add_16() argument
111 { *target += delta; } in atomic_add_16()
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()
131 { *target += delta; } in atomic_add_64()
271 { return (*target += delta); } in atomic_add_16_nv()
279 { return (*target += delta); } in atomic_add_32_nv()
283 { return (*target += delta); } in atomic_add_int_nv()
291 { return (*target += delta); } in atomic_add_long_nv()
[all …]
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/rates/
H A Dtst.statusrate.d53 /(this->delta = timestamp - ts) > 2 * NANOSEC/
59 /this->delta <= 2 * NANOSEC/
62 this->delta);
67 /this->delta > 20 * NANOSEC/
70 this->delta);
/illumos-gate/usr/src/uts/intel/io/pci/
H A Dpci_memlist.c226 uint64_t delta, total_size; in memlist_find() local
234 if (delta != 0) in memlist_find()
235 total_size = size + align - delta; in memlist_find()
248 if (delta) in memlist_find()
249 paddr += align - delta; in memlist_find()
263 uint64_t delta, total_size; in memlist_find_with_startaddr() local
275 delta = next->ml_address & ((align != 0) ? (align - 1) : 0); in memlist_find_with_startaddr()
276 if (delta != 0) in memlist_find_with_startaddr()
277 total_size = size + align - delta; in memlist_find_with_startaddr()
284 if (delta) in memlist_find_with_startaddr()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Daggsum.c167 aggsum_borrow(aggsum_t *as, int64_t delta, struct aggsum_bucket *asb) in aggsum_borrow() argument
169 int64_t abs_delta = (delta < 0 ? -delta : delta); in aggsum_borrow()
184 aggsum_add(aggsum_t *as, int64_t delta) in aggsum_add() argument
191 if (asb->asc_delta + delta <= (int64_t)asb->asc_borrowed && in aggsum_add()
192 asb->asc_delta + delta >= -(int64_t)asb->asc_borrowed) { in aggsum_add()
193 asb->asc_delta += delta; in aggsum_add()
198 aggsum_borrow(as, delta * aggsum_borrow_multiplier, asb); in aggsum_add()
/illumos-gate/usr/src/cmd/fm/fminject/common/
H A Dinj_log.c53 hrtime_t delta; in inj_logfile_event() local
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()
84 if (delta > 0) in inj_logfile_event()
85 inj_cmds_add(inj_cmd_addhrt(delta)); in inj_logfile_event()
/illumos-gate/usr/src/lib/libzonestat/common/
H A Dzonestat_impl.h80 #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; \
/illumos-gate/usr/src/cmd/audio/audiotest/
H A Dwavedata.c131 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()
/illumos-gate/usr/src/uts/common/os/
H A Dcondvar.c252 if (delta <= 0) in cv_reltimedwait()
512 if (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.tv_sec < 0 || (delta.tv_sec == 0 && delta.tv_nsec == 0)) { in cv_waituntil_sig()
794 interval = ts2hrt(&delta); in cv_waituntil_sig()
813 delta = *when; in cv_waituntil_sig()
814 timespecsub(&delta, &now); in cv_waituntil_sig()
815 if (delta.tv_sec > 0 || (delta.tv_sec == 0 && in cv_waituntil_sig()
[all …]
H A Dcallout.c1202 if (delta <= 0) in timeout()
1203 delta = 1; in timeout()
1205 delta = callout_max_ticks; in timeout()
1225 if (delta <= 0) in timeout_default()
1226 delta = 1; in timeout_default()
1244 if (delta <= 0) in realtime_timeout()
1245 delta = 1; in realtime_timeout()
1267 if (delta <= 0) in realtime_timeout_default()
1268 delta = 1; in realtime_timeout_default()
1735 hrtime_t delta; in callout_debug_callb() local
[all …]
/illumos-gate/usr/src/uts/i86pc/io/
H A Dtodpc_subr.c239 int delta, asec, amin, ahr, adom, amon; in todpc_setalarm() local
261 delta = nsecs + BCD_TO_BYTE(rtc.rtc_sec); in todpc_setalarm()
262 asec = delta % 60; in todpc_setalarm()
264 delta = (delta / 60) + BCD_TO_BYTE(rtc.rtc_min); in todpc_setalarm()
265 amin = delta % 60; in todpc_setalarm()
267 delta = (delta / 60) + BCD_TO_BYTE(rtc.rtc_hr); in todpc_setalarm()
268 ahr = delta % 24; in todpc_setalarm()
270 if (day_alrm == 0 && delta >= 24) { in todpc_setalarm()
280 adom = (delta / 24) + BCD_TO_BYTE(rtc.rtc_dom); in todpc_setalarm()
/illumos-gate/usr/src/uts/common/c2/
H A Daudit_syscalls.c125 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()

12345678910