Lines Matching +refs:val +refs:current

188 static dtrace_genid_t	dtrace_probegen;	/* current probe generation */
191 static dtrace_genid_t dtrace_retained_gen; /* current retained enab gen */
807 * When we have privileges to the current process, there are
816 * the current thread context, the memory associated with these
1030 int64_t val = 0;
1066 val = val * base + x;
1068 return (neg ? -val : val);
1495 * the current probe to continue. Note that this routine may allow continued
1779 uint64_t val = key[i].dttk_value;
1781 hashval += (val >> 48) & 0xffff;
1785 hashval += (val >> 32) & 0xffff;
1789 hashval += (val >> 16) & 0xffff;
1793 hashval += val & 0xffff;
2228 int64_t val = (int64_t)nval;
2230 if (val < 0) {
2232 if (val <= DTRACE_QUANTIZE_BUCKETVAL(i)) {
2239 if (val < DTRACE_QUANTIZE_BUCKETVAL(i)) {
2259 int32_t val = (int32_t)nval, level;
2264 if (val < base) {
2272 level = (val - base) / step;
2668 dtrace_speculation_state_t current;
2674 current = spec->dtsp_state;
2676 if (current != DTRACESPEC_INACTIVE) {
2677 if (current == DTRACESPEC_COMMITTINGMANY ||
2678 current == DTRACESPEC_COMMITTING ||
2679 current == DTRACESPEC_DISCARDING)
2686 current, DTRACESPEC_ACTIVE) == current)
2715 dtrace_speculation_state_t current, new;
2732 current = spec->dtsp_state;
2734 if (current == DTRACESPEC_COMMITTINGMANY)
2737 switch (current) {
2779 current, new) != current);
2795 * in the timestamp of all entries with the current time. The data
2858 if (current == DTRACESPEC_ACTIVE ||
2859 (current == DTRACESPEC_ACTIVEONE && new == DTRACESPEC_COMMITTING)) {
2882 dtrace_speculation_state_t current, new;
2897 current = spec->dtsp_state;
2899 switch (current) {
2923 current, new) != current);
3015 dtrace_speculation_state_t current, new;
3020 current = spec->dtsp_state;
3021 ASSERT(current == DTRACESPEC_DISCARDING ||
3022 current == DTRACESPEC_COMMITTINGMANY);
3026 rv = dtrace_cas32((uint32_t *)&spec->dtsp_state, current, new);
3027 ASSERT(rv == current);
3044 dtrace_speculation_state_t current, new;
3059 current = spec->dtsp_state;
3061 switch (current) {
3097 current, new) != current);
3177 uint64_t val;
3181 val = pv->dtpv_pops.dtps_getargval(pv->dtpv_arg,
3185 val = dtrace_getarg(ndx, aframes);
3197 return (val);
3350 * with the current PID. The second uint64_t will
5108 uint64_t val, digit;
5121 val = (base == 10 && i < 0) ? i * -1 : i;
5129 for (*end-- = '\0'; val; val /= base) {
5130 if ((digit = val % base) <= '9' - '0') {
5482 uint8_t *ptr8, val;
5513 val = ptr8[i];
5515 if (val == 0) {
5518 for (; val; val /= 10) {
5519 *end-- = '0' + (val % 10);
5531 uint16_t val;
5613 val = ip6._S6_un._S6_u8[i];
5615 if (val == 0) {
5618 for (; val; val /= 10) {
5619 *end-- = '0' + val % 10;
5654 val = (ip6._S6_un._S6_u8[i] << 8) +
5657 if (val == 0) {
5660 for (; val; val /= 16) {
5661 *end-- = digits[val % 16];
5717 * We stash the current DIF object into the machine state: we need it
6504 uintptr_t val = (uintptr_t)ecb;
6546 if (val >= ((uintptr_t)1 << shift))
6547 c[i++] = "0123456789abcdef"[(val & mask) >> shift];
6622 dtrace_action_chill(dtrace_mstate_t *mstate, hrtime_t val)
6637 * We need to advance the mark to the current time.
6648 if (cpu->cpu_dtrace_chilled + val > dtrace_chill_max ||
6649 cpu->cpu_dtrace_chilled + val < cpu->cpu_dtrace_chilled) {
6654 while (dtrace_gethrtime() - now < val)
6663 cpu->cpu_dtrace_chilled += val;
6791 uint64_t val = *valp;
6807 c = dtrace_load8(val++);
6810 c = dtrace_fuword8((void *)(uintptr_t)val++);
6825 c = dtrace_load8(val++);
6828 c = dtrace_fuword8((void *)(uintptr_t)val++);
6839 *valp = val;
6866 * curthread will be set to -1) or the current thread can't allow
6867 * probes in its current context.
6928 * declaration of the automatic 'val': by looking at the
6937 uint64_t val = 0;
6939 uint64_t val;
6999 dtrace_activity_t current;
7002 current = state->dts_activity;
7003 } while (dtrace_cas32(activity, current,
7004 DTRACE_ACTIVITY_KILLED) != current);
7088 offs, aggbuf, v, val);
7186 val = dtrace_dif_emulate(dp, &mstate, vstate, state);
7197 cpuid, val);
7236 dtrace_action_chill(&mstate, val);
7242 dtrace_action_raise(val);
7254 dtrace_speculation_commit(state, cpuid, val);
7259 dtrace_speculation_discard(state, cpuid, val);
7272 tracememsize = val;
7292 valoffs + sizeof (uint64_t), val);
7303 * or because our current activity is something
7314 dtrace_activity_t current = state->dts_activity;
7316 if (current == DTRACE_ACTIVITY_COOLDOWN)
7319 if (current != DTRACE_ACTIVITY_WARMUP)
7320 current = DTRACE_ACTIVITY_ACTIVE;
7322 if (dtrace_cas32(activity, current,
7323 DTRACE_ACTIVITY_DRAINING) != current) {
7346 !dtrace_vcanload((void *)(uintptr_t)val,
7351 &val, end, act->dta_intuple,
7362 DTRACE_STORE(uint8_t, tomax, valoffs, val);
7365 DTRACE_STORE(uint16_t, tomax, valoffs, val);
7368 DTRACE_STORE(uint32_t, tomax, valoffs, val);
7371 DTRACE_STORE(uint64_t, tomax, valoffs, val);
9454 err += efunc(pc, "invalid val type %u\n", type);
11666 * currently greater than the current offset. If it
11667 * is less than the current offset, it is because a
11686 * there. We need to clear the buffer from the current
14316 dtrace_optval_t val)
14326 if (option != DTRACEOPT_CPU && val < 0)
14342 if (val < 0)
14345 if (val >= LONG_MAX) {
14360 val = LONG_MAX - (1 << 27) + 1;
14364 state->dts_options[option] = val;