Lines Matching refs:sz
491 * within the range of memory described by addr, sz. We take care to avoid
730 dtrace_canstore_statvar(uint64_t addr, size_t sz, size_t *remain,
761 if (DTRACE_INRANGE(addr, sz, svar->dtsv_data,
779 dtrace_canstore(uint64_t addr, size_t sz, dtrace_mstate_t *mstate,
782 return (dtrace_canstore_remains(addr, sz, NULL, mstate, vstate));
790 dtrace_canstore_remains(uint64_t addr, size_t sz, size_t *remain,
796 if (DTRACE_INRANGE(addr, sz, mstate->dtms_scratch_base,
808 if (DTRACE_INRANGE(addr, sz, vstate->dtvs_dynvars.dtds_base,
842 if (chunkoffs + sz > dstate->dtds_chunksize)
862 if (dtrace_canstore_statvar(addr, sz, remain,
866 if (dtrace_canstore_statvar(addr, sz, remain,
884 dtrace_canload(uint64_t addr, size_t sz, dtrace_mstate_t *mstate,
887 return (dtrace_canload_remains(addr, sz, NULL, mstate, vstate));
895 dtrace_canload_remains(uint64_t addr, size_t sz, size_t *remain,
906 DTRACE_RANGE_REMAIN(remain, addr, addr, sz);
913 if (dtrace_canstore_remains(addr, sz, remain, mstate, vstate))
919 if (DTRACE_INRANGE(addr, sz, mstate->dtms_difo->dtdo_strtab,
947 if (DTRACE_INRANGE(addr, sz, curthread, sizeof (kthread_t))) {
954 sz, curthread->t_procp, sizeof (proc_t))) {
960 if (curthread->t_cred != NULL && DTRACE_INRANGE(addr, sz,
968 if (p != NULL && p->p_pidp != NULL && DTRACE_INRANGE(addr, sz,
975 if (curthread->t_cpu != NULL && DTRACE_INRANGE(addr, sz,
1001 if (DTRACE_INRANGE(addr, sz, fp, sizeof (file_t))) {
1009 if (DTRACE_INRANGE(addr, sz, &vp->v_path, psz)) {
1015 if (DTRACE_INRANGE(addr, sz, vp->v_path, slen)) {
1022 if (DTRACE_INRANGE(addr, sz, &vp->v_op, psz)) {
1030 DTRACE_INRANGE(addr, sz, &op->vnop_name, psz)) {
1037 DTRACE_INRANGE(addr, sz, op->vnop_name,
1059 dtrace_strcanload(uint64_t addr, size_t sz, size_t *remain,
1069 DTRACE_RANGE_REMAIN(remain, addr, addr, sz);
1089 MIN(sz, *remain));
1106 size_t sz;
1118 sz = state->dts_options[DTRACEOPT_STRSIZE];
1125 sz = dtrace_strsize_default;
1128 sz = type->dtdt_size;
1136 DTRACE_RANGE_REMAIN(remain, (uintptr_t)src, src, sz);
1141 return (dtrace_strcanload((uintptr_t)src, sz, remain, mstate,
1144 return (dtrace_canload_remains((uintptr_t)src, sz, remain, mstate,
6372 size_t sz = state->dts_options[DTRACEOPT_STRSIZE];
6386 !dtrace_strcanload(s1, sz, &lim1, mstate, vstate))
6389 !dtrace_strcanload(s2, sz, &lim2, mstate, vstate))
6508 size_t sz = v->dtdv_type.dtdt_size;
6511 sz += sizeof (uint64_t);
6512 ASSERT(svar->dtsv_size == NCPU * sz);
6513 a += curcpu * sz;
6548 size_t sz = v->dtdv_type.dtdt_size;
6551 sz += sizeof (uint64_t);
6552 ASSERT(svar->dtsv_size == NCPU * sz);
6553 a += curcpu * sz;
10732 size_t sz;
10740 sz = dp->dtdo_len * sizeof (dif_instr_t);
10741 new->dtdo_buf = kmem_alloc(sz, KM_SLEEP);
10742 bcopy(dp->dtdo_buf, new->dtdo_buf, sz);
10754 sz = dp->dtdo_intlen * sizeof (uint64_t);
10755 new->dtdo_inttab = kmem_alloc(sz, KM_SLEEP);
10756 bcopy(dp->dtdo_inttab, new->dtdo_inttab, sz);
10762 sz = dp->dtdo_varlen * sizeof (dtrace_difv_t);
10763 new->dtdo_vartab = kmem_alloc(sz, KM_SLEEP);
10764 bcopy(dp->dtdo_vartab, new->dtdo_vartab, sz);
14951 dtrace_optval_t *opt = state->dts_options, sz, nspec;
15088 sz = sizeof (uint64_t);
15090 if ((state->dts_needed != 0 && opt[DTRACEOPT_BUFSIZE] < sz) ||
15091 (state->dts_speculates && opt[DTRACEOPT_SPECSIZE] < sz) ||
15092 (state->dts_aggregations != NULL && opt[DTRACEOPT_AGGSIZE] < sz)) {
15107 if ((sz = opt[DTRACEOPT_DYNVARSIZE]) == DTRACEOPT_UNSET)
15108 sz = dtrace_dstate_defsize;
15111 rval = dtrace_dstate_init(&state->dts_vstate.dtvs_dynvars, sz);
15118 } while (sz >>= 1);
15120 opt[DTRACEOPT_DYNVARSIZE] = sz;
16595 int i, j, sz, hasprovs = 0;
16626 sz = sizeof (dtrace_difo_t *) * new->dtha_nactions;
16627 new->dtha_actions = kmem_alloc(sz, KM_SLEEP);
17947 size_t sz = buf->dtb_offset;
17966 sz = sizeof (desc);
17968 if (copyout(&desc, (void *)arg, sz) != 0)
17980 sz = buf->dtb_size;
17983 if (copyout(buf->dtb_tomax, desc.dtbd_data, sz) != 0) {
17988 desc.dtbd_size = sz;