Searched refs:delta (Results 1 - 25 of 211) sorted by relevance

123456789

/illumos-gate/usr/src/cmd/dtrace/test/tst/common/rates/
H A Dtst.statusrate.d37 * 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);
/illumos-gate/usr/src/cmd/pools/poold/com/sun/solaris/service/timer/
H A DSimpleRecurringEventTimer.java73 long delta;
75 while ((delta = nextFiring - System.currentTimeMillis()) > 0)
76 Thread.sleep(delta);
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Dcallout.c36 timeout(void (*func)(void *), void *arg, clock_t delta) argument
43 if (delta <= 0)
55 TICK_TO_TIMESTRUC(delta, &its.it_value);
71 clock_t delta; local
85 delta = 0;
87 delta = TIMESTRUC_TO_TICK(&oits.it_value);
88 if (delta < 0)
89 delta = 0;
94 delta = -1;
96 return (delta);
[all...]
H A Dcond.c108 clock_t delta; local
110 delta = abstime - ddi_get_lbolt();
111 return (cv__twait(cv, mp, delta, 0, 0));
117 clock_t delta; local
119 delta = abstime - ddi_get_lbolt();
120 return (cv__twait(cv, mp, delta, 1, 0));
126 clock_t delta; local
128 delta = tim;
129 return (cv__twait(cv, mp, delta, 1, 1));
137 clock_t delta; local
146 cv_reltimedwait(kcondvar_t *cv, kmutex_t *mp, clock_t delta, time_res_t res) argument
154 cv_reltimedwait_sig(kcondvar_t *cv, kmutex_t *mp, clock_t delta, time_res_t res) argument
170 cv__twait(kcondvar_t *cv, kmutex_t *mp, clock_t delta, int sigok, int hires) argument
[all...]
/illumos-gate/usr/src/cmd/intrd/
H A Dintrd.pl116 # 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...]
/illumos-gate/usr/src/uts/common/syscall/
H A Dpsecflags.c25 const secflagdelta_t *delta; member in struct:psdargs
29 secflags_apply_delta(secflagset_t *set, const secflagdelta_t *delta) argument
31 if (delta->psd_ass_active) {
32 secflags_copy(set, &delta->psd_assign);
34 if (!secflags_isempty(delta->psd_add)) {
35 secflags_union(set, &delta->psd_add);
37 if (!secflags_isempty(delta->psd_rem)) {
38 secflags_difference(set, &delta->psd_rem);
57 if (!psecflags_validate_delta(&p->p_secflags, args->delta)) {
63 audit_psecflags(p, args->which, args->delta);
[all...]
H A Dalarm.c61 clock_t delta = (uint_t)deltat; local
87 * to that limit. If delta is negative we can
88 * assume a wrap has occurred so peg delta in
91 if (delta > (LONG_MAX / hz) || delta < 0)
92 delta = LONG_MAX / hz;
94 if (delta)
95 p->p_alarmid = realtime_timeout(sigalarm2proc, p, delta * hz);
H A Dadjtime.c46 adjtime(struct timeval *delta, struct timeval *olddelta) argument
58 if (copyin(delta, &atv, sizeof (atv)))
63 if (copyin(delta, &atv32, sizeof (atv32)))
72 * The SVID specifies that if delta is 0, then there is
/illumos-gate/usr/src/cmd/fm/fminject/common/
H A Dinj_log.c53 hrtime_t delta; local
73 * For now, compute the delta between the previous record and this one
78 delta = (rec_sec - ilf->ilf_sec) * NANOSEC;
79 delta += (hrtime_t)rec_nsec - (hrtime_t)ilf->ilf_nsec;
81 if (delta < 0)
82 die("record [%d] timestamp delta too large\n", ilf->ilf_index);
84 if (delta > 0)
85 inj_cmds_add(inj_cmd_addhrt(delta));
/illumos-gate/usr/src/common/secflags/
H A Dsecflags.c106 psecflags_validate_delta(const psecflags_t *sf, const secflagdelta_t *delta) argument
108 if (delta->psd_ass_active) {
113 if (!secflags_issubset(delta->psd_assign, sf->psf_upper) ||
114 !secflags_issuperset(delta->psd_assign, sf->psf_lower)) {
118 if (!secflags_issubset(delta->psd_assign, PROC_SEC_MASK))
122 if (!secflags_isempty(delta->psd_add)) {
123 if (!secflags_issubset(delta->psd_add, sf->psf_upper)) {
129 if (!secflags_isempty(delta->psd_rem)) {
130 if (secflags_intersection(delta->psd_rem,
136 if (!secflags_issubset(delta
[all...]
/illumos-gate/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_umemglue.c91 umem_atomic_add_32_nv(uint32_t *target, int32_t delta) argument
93 return (*target = *target + delta);
97 umem_atomic_add_64(uint64_t *target, int64_t delta) argument
99 *target = *target + delta;
/illumos-gate/usr/src/uts/i86pc/io/pcplusmp/
H A Dapic_timer.c230 int64_t delta; local
234 delta = time - now;
236 if (delta <= 0) {
242 } else if (delta > apic_nsec_max) {
255 ticks = APIC_NSECS_TO_TICKS(delta);
307 int64_t delta; local
314 delta = time - gethrtime();
317 delta = max(delta, 0);
320 ticks = (uint64_t)tsc_read() + unscalehrtime(delta);
[all...]
/illumos-gate/usr/src/cmd/mailx/
H A Dstralloc.c127 register unsigned s, delta; local
140 delta = s - (sp->s_nextFree - (char *)optr);
141 if (delta <= sp->s_nleft) {
142 sp->s_nextFree += delta;
143 sp->s_nleft -= delta;
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_time.c52 fmd_time_addhrtime(hrtime_t delta) argument
54 fmd.d_clockops->fto_addhrtime(delta);
58 fmd_time_waithrtime(hrtime_t delta) argument
60 fmd.d_clockops->fto_waithrtime(delta);
86 hrtime_t t0, t1, delta; local
92 delta = t1 - t0;
94 if (delta < hrtmin) {
95 hrtmin = delta;
96 hrtbase = t0 + delta / 2;
289 fmd_simulator_add(hrtime_t delta) argument
308 fmd_simulator_wait(hrtime_t delta) argument
353 fmd_native_wait(hrtime_t delta) argument
[all...]
H A Dfmd_timerq.c41 * 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)
72 if (delta < 0)
73 delta = 0; /* ensure delta is at least 0ns from now */
75 if (base + delta < base)
78 hrt = base + delta;
109 ids->ids_name, id, delta));
124 hrtime_t delta = 0; local
139 delta
48 fmd_timerq_install(fmd_timerq_t *tmq, fmd_idspace_t *ids, fmd_timer_f *func, void *arg, fmd_event_t *ep, hrtime_t delta) argument
[all...]
H A Dfmd_eventq.c121 hrtime_t new, delta; local
127 delta = new - eqs->eqs_wlastupdate.fmds_value.ui64;
132 eqs->eqs_wlentime.fmds_value.ui64 += delta * wcnt;
133 eqs->eqs_wtime.fmds_value.ui64 += delta;
239 hrtime_t new, delta; local
284 delta = new - eqs->eqs_wlastupdate.fmds_value.ui64;
292 eqs->eqs_wlentime.fmds_value.ui64 += delta * wcnt;
293 eqs->eqs_wtime.fmds_value.ui64 += delta;
313 hrtime_t new, delta; local
318 delta
[all...]
/illumos-gate/usr/src/test/util-tests/tests/libnvpair_json/
H A Djson_07_nested_arrays.ksh44 {"delta":"d"},\
89 add_string "delta" "d";
/illumos-gate/usr/src/uts/intel/io/pci/
H A Dpci_memlist.c223 uint64_t delta, total_size; local
230 delta = next->ml_address & ((align != 0) ? (align - 1) : 0);
231 if (delta != 0)
232 total_size = size + align - delta;
245 if (delta)
246 paddr += align - delta;
260 uint64_t delta, total_size; local
272 delta = next->ml_address & ((align != 0) ? (align - 1) : 0);
273 if (delta != 0)
274 total_size = size + align - delta;
[all...]
/illumos-gate/usr/src/uts/common/fs/tmpfs/
H A Dtmp_tnode.c63 size_t delta, /* size needed */
66 pgcnt_t pages = btopr(delta);
83 (anon_try_resv_zone(delta, zone) == 0))) {
96 tp, delta);
105 * because anon_unresv does a btopr(delta)
111 size_t delta)
116 anon_unresv_zone(delta, tm->tm_vfsp->vfs_zone);
119 tm->tm_anonmem -= btopr(delta);
122 TRACE_2(TR_FAC_VM, TR_ANON_TMPFS, "anon tmpfs:%p %lu", tp, delta);
234 size_t delta; local
60 tmp_resv( struct tmount *tm, struct tmpnode *tp, size_t delta, int pagecreate) argument
108 tmp_unresv( struct tmount *tm, struct tmpnode *tp, size_t delta) argument
[all...]
/illumos-gate/usr/src/cmd/audio/audiotest/
H A Dwavedata.c131 int predictor[2], delta[2], samp1[2], samp2[2]; local
148 delta[i] = (short)le_int(&buf[x], 2);
178 new = pred + (delta[i] * i_delta);
181 delta[i] = delta[i] *
183 if (delta[i] < 16)
184 delta[i] = 16;
/illumos-gate/usr/src/common/atomic/
H A Datomic.c110 atomic_add_16(volatile uint16_t *target, int16_t delta) argument
111 { *target += delta; }
118 atomic_add_32(volatile uint32_t *target, int32_t delta) argument
119 { *target += delta; }
126 atomic_add_long(volatile ulong_t *target, long delta) argument
127 { *target += delta; }
130 atomic_add_64(volatile uint64_t *target, int64_t delta) argument
131 { *target += delta; }
270 atomic_add_16_nv(volatile uint16_t *target, int16_t delta) argument
271 { return (*target += delta); }
278 atomic_add_32_nv(volatile uint32_t *target, int32_t delta) argument
282 atomic_add_int_nv(volatile uint_t *target, int delta) argument
290 atomic_add_long_nv(volatile ulong_t *target, long delta) argument
294 atomic_add_64_nv(volatile uint64_t *target, int64_t delta) argument
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Dfinger.c842 struct tm *delta; local
844 delta = gmtime(dt);
845 if (delta->tm_yday == 0)
846 if (delta->tm_hour == 0)
847 if (delta->tm_min == 0)
850 (void) printf(" %2d", delta->tm_min);
852 if (delta->tm_hour >= 10)
853 (void) printf("%3d:", delta->tm_hour);
856 delta->tm_hour, delta
869 struct tm *delta; local
[all...]
/illumos-gate/usr/src/uts/i86xpv/os/
H A Dxpv_timestamp.c168 hrtime_t delta = xpv_getsystime() - hrtime_suspend_time; local
170 if (delta < 0)
171 hrtime_addend += -delta;
/illumos-gate/usr/src/lib/libzonestat/common/
H A Dzonestat_impl.h80 #define TIMESTRUC_DELTA(delta, new, old) \
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/uts/common/fs/zfs/
H A Daggsum.c35 * counter (called the delta), and the amount of increment and decrement we have
42 * they simply modify the delta and return. If the bucket does not, we clear
47 * subtracted). Clearing the bucket is the opposite; we add the current delta
69 * lock (preventing threads on those CPUs from modifying their delta), and
167 aggsum_borrow(aggsum_t *as, int64_t delta, struct aggsum_bucket *asb) argument
169 int64_t abs_delta = (delta < 0 ? -delta : delta);
184 aggsum_add(aggsum_t *as, int64_t delta) argument
191 if (asb->asc_delta + delta <
[all...]

Completed in 257 milliseconds

123456789