Lines Matching defs:new

1880 		 * If we are not to allocate a new variable, we want to
1899 * We need to allocate a new dynamic variable. The size we need is the
2036 * We have now allocated a new chunk. We copy the tuple keys into the
2471 * If we don't have enough room to both allocate a new key _and_
2597 dtrace_speculation_state_t current, new;
2636 new = DTRACESPEC_COMMITTING;
2648 new = DTRACESPEC_COMMITTING;
2654 new = DTRACESPEC_COMMITTINGMANY;
2661 current, new) != current);
2741 (current == DTRACESPEC_ACTIVEONE && new == DTRACESPEC_COMMITTING)) {
2764 dtrace_speculation_state_t current, new;
2790 new = DTRACESPEC_DISCARDING;
2795 new = DTRACESPEC_INACTIVE;
2797 new = DTRACESPEC_DISCARDING;
2805 current, new) != current);
2897 dtrace_speculation_state_t current, new;
2906 new = DTRACESPEC_INACTIVE;
2908 rv = dtrace_cas32((uint32_t *)&spec->dtsp_state, current, new);
2926 dtrace_speculation_state_t current, new;
2958 * If it's zero, assume that we're starting on a new
2965 new = DTRACESPEC_ACTIVEMANY;
2972 new = DTRACESPEC_ACTIVEONE;
2979 current, new) != current);
2981 ASSERT(new == DTRACESPEC_ACTIVEONE || new == DTRACESPEC_ACTIVEMANY);
7156 * COOLDOWN, however, we want to honor the new
7384 dtrace_hash_add(dtrace_hash_t *hash, dtrace_probe_t *new)
7386 int hashval = DTRACE_HASHSTR(hash, new);
7392 if (DTRACE_HASHEQ(hash, bucket->dthb_chain, new))
7398 dtrace_hash_add(hash, new);
7408 nextp = DTRACE_HASHNEXT(hash, new);
7409 ASSERT(*nextp == NULL && *(DTRACE_HASHPREV(hash, new)) == NULL);
7415 *prevp = new;
7418 bucket->dthb_chain = new;
7525 char *new = kmem_zalloc((str != NULL ? strlen(str) : 0) + 1, KM_SLEEP);
7528 (void) strcpy(new, str);
7530 return (new);
8466 * All CPUs are now seeing the new probes array; we can
8575 * be told to provide all of its probes. (This is done whenever a new
8945 * off to the new meta provider now.
9985 dtrace_difo_t *new;
9991 new = kmem_zalloc(sizeof (dtrace_difo_t), KM_SLEEP);
9995 new->dtdo_buf = kmem_alloc(sz, KM_SLEEP);
9996 bcopy(dp->dtdo_buf, new->dtdo_buf, sz);
9997 new->dtdo_len = dp->dtdo_len;
10001 new->dtdo_strtab = kmem_alloc(dp->dtdo_strlen, KM_SLEEP);
10002 bcopy(dp->dtdo_strtab, new->dtdo_strtab, dp->dtdo_strlen);
10003 new->dtdo_strlen = dp->dtdo_strlen;
10009 new->dtdo_inttab = kmem_alloc(sz, KM_SLEEP);
10010 bcopy(dp->dtdo_inttab, new->dtdo_inttab, sz);
10011 new->dtdo_intlen = dp->dtdo_intlen;
10017 new->dtdo_vartab = kmem_alloc(sz, KM_SLEEP);
10018 bcopy(dp->dtdo_vartab, new->dtdo_vartab, sz);
10019 new->dtdo_varlen = dp->dtdo_varlen;
10022 dtrace_difo_init(new, vstate);
10023 return (new);
10118 char *fmt, **new;
10145 new = kmem_alloc((ndx + 1) * sizeof (char *), KM_SLEEP);
10149 bcopy(state->dts_formats, new, ndx * sizeof (char *));
10153 state->dts_formats = new;
10417 * point to the new ECB, and issue a dtrace_sync() to assure
11423 * mstate. Returns the new offset in the buffer, or a negative value if an
11816 dtrace_ecbdesc_t *new;
11821 * We're going to create a new ECB description that matches the
11824 new = kmem_zalloc(sizeof (dtrace_ecbdesc_t), KM_SLEEP);
11832 new->dted_action = ecb->dted_action;
11833 new->dted_pred = ecb->dted_pred;
11834 new->dted_probe = *pd;
11835 new->dted_uarg = ecb->dted_uarg;
11837 dtrace_enabling_add(enab, new);
11953 dtrace_enabling_t *new, *enab;
11962 new = dtrace_enabling_create(&state->dts_vstate);
12005 dtrace_enabling_addlike(new, ep, create);
12009 if (!found || (err = dtrace_enabling_retain(new)) != 0) {
12010 dtrace_enabling_destroy(new);
13458 * the new value. This assures that dts_alive never appears to be
14751 * helper action type, we'll refuse to add a new one.
14876 * we're refuse to add a new one.
15375 dtrace_helper_action_t *helper, *new, *last;
15399 new = kmem_zalloc(sizeof (dtrace_helper_action_t),
15401 new->dtha_generation = helper->dtha_generation;
15405 new->dtha_predicate = dp;
15408 new->dtha_nactions = helper->dtha_nactions;
15409 sz = sizeof (dtrace_difo_t *) * new->dtha_nactions;
15410 new->dtha_actions = kmem_alloc(sz, KM_SLEEP);
15412 for (j = 0; j < new->dtha_nactions; j++) {
15417 new->dtha_actions[j] = dp;
15421 last->dtha_next = new;
15423 newhelp->dthps_actions[i] = new;
15426 last = new;
15627 * For now, we only allocate a new buffer for anonymous state.