Lines Matching defs:sz
507 * within the range of memory described by addr, sz. We take care to avoid
817 dtrace_canstore_statvar(uint64_t addr, size_t sz,
828 if (DTRACE_INRANGE(addr, sz, svar->dtsv_data, svar->dtsv_size))
842 dtrace_canstore(uint64_t addr, size_t sz, dtrace_mstate_t *mstate,
848 if (DTRACE_INRANGE(addr, sz, mstate->dtms_scratch_base,
857 if (DTRACE_INRANGE(addr, sz, (uintptr_t)vstate->dtvs_dynvars.dtds_base,
888 if (chunkoffs + sz > dstate->dtds_chunksize)
898 if (dtrace_canstore_statvar(addr, sz,
902 if (dtrace_canstore_statvar(addr, sz,
920 dtrace_canload(uint64_t addr, size_t sz, dtrace_mstate_t *mstate,
939 if (dtrace_canstore(addr, sz, mstate, vstate))
945 if (DTRACE_INRANGE(addr, sz, (uintptr_t)mstate->dtms_difo->dtdo_strtab,
961 dtrace_strcanload(uint64_t addr, size_t sz, dtrace_mstate_t *mstate,
973 strsz = 1 + dtrace_strlen((char *)(uintptr_t)addr, sz);
988 size_t sz;
999 sz = dtrace_strlen(src,
1002 sz = type->dtdt_size;
1004 return (dtrace_canload((uintptr_t)src, sz, mstate, vstate));
3965 size_t sz;
3967 sz = dtrace_strlen((char *)addr,
3970 if (!dtrace_canload(addr, sz + 1, mstate, vstate)) {
3975 regs[rd] = sz;
5542 size_t sz = state->dts_options[DTRACEOPT_STRSIZE];
5547 !dtrace_strcanload(s1, sz, mstate, vstate))
5550 !dtrace_strcanload(s2, sz, mstate, vstate))
5553 cc_r = dtrace_strncmp((char *)s1, (char *)s2, sz);
5670 size_t sz = v->dtdv_type.dtdt_size;
5672 sz += sizeof (uint64_t);
5673 ASSERT(svar->dtsv_size == (int)NCPU * sz);
5674 a += CPU->cpu_id * sz;
5713 size_t sz = v->dtdv_type.dtdt_size;
5715 sz += sizeof (uint64_t);
5716 ASSERT(svar->dtsv_size == (int)NCPU * sz);
5717 a += CPU->cpu_id * sz;
9982 size_t sz;
9990 sz = dp->dtdo_len * sizeof (dif_instr_t);
9991 new->dtdo_buf = kmem_alloc(sz, KM_SLEEP);
9992 bcopy(dp->dtdo_buf, new->dtdo_buf, sz);
10004 sz = dp->dtdo_intlen * sizeof (uint64_t);
10005 new->dtdo_inttab = kmem_alloc(sz, KM_SLEEP);
10006 bcopy(dp->dtdo_inttab, new->dtdo_inttab, sz);
10012 sz = dp->dtdo_varlen * sizeof (dtrace_difv_t);
10013 new->dtdo_vartab = kmem_alloc(sz, KM_SLEEP);
10014 bcopy(dp->dtdo_vartab, new->dtdo_vartab, sz);
14003 dtrace_optval_t *opt = state->dts_options, sz, nspec;
14143 sz = sizeof (uint64_t);
14145 if ((state->dts_needed != 0 && opt[DTRACEOPT_BUFSIZE] < sz) ||
14146 (state->dts_speculates && opt[DTRACEOPT_SPECSIZE] < sz) ||
14147 (state->dts_aggregations != NULL && opt[DTRACEOPT_AGGSIZE] < sz)) {
14162 if ((sz = opt[DTRACEOPT_DYNVARSIZE]) == DTRACEOPT_UNSET)
14163 sz = dtrace_dstate_defsize;
14166 rval = dtrace_dstate_init(&state->dts_vstate.dtvs_dynvars, sz);
14173 } while (sz >>= 1);
14175 opt[DTRACEOPT_DYNVARSIZE] = sz;
16061 int i, j, sz, hasprovs = 0;
16064 int j, sz, hasprovs = 0;
16096 sz = sizeof (dtrace_difo_t *) * new->dtha_nactions;
16097 new->dtha_actions = kmem_alloc(sz, KM_SLEEP);
17835 size_t sz = buf->dtb_offset;
17854 sz = sizeof (desc);
17856 if (copyout(&desc, (void *)arg, sz) != 0)
17868 sz = buf->dtb_size;
17871 if (copyout(buf->dtb_tomax, desc.dtbd_data, sz) != 0) {
17876 desc.dtbd_size = sz;
18744 size_t sz = buf->dtb_offset;
18763 sz = sizeof (desc);
18765 if (copyout(&desc, arg, sz) != 0)
18777 sz = buf->dtb_size;
18780 if (copyout(buf->dtb_tomax, (user_addr_t)desc.dtbd_data, sz) != 0) {
18785 desc.dtbd_size = sz;