Lines Matching refs:desc
8574 dtrace_probe_provide(dtrace_probedesc_t *desc, dtrace_provider_t *prv)
8590 prv->dtpv_pops.dtps_provide(prv->dtpv_arg, desc);
8663 dtrace_probe_enable(const dtrace_probedesc_t *desc, dtrace_enabling_t *enab)
8674 if (desc == NULL) {
8683 dtrace_probekey(desc, &pkey);
10578 dtrace_ecb_aggregation_create(dtrace_ecb_t *ecb, dtrace_actdesc_t *desc)
10582 int ntuple = desc->dtad_ntuple;
10591 ASSERT(DTRACEACT_ISAGG(desc->dtad_kind));
10593 switch (desc->dtad_kind) {
10615 uint16_t step = DTRACE_LQUANTIZE_STEP(desc->dtad_arg);
10616 uint16_t levels = DTRACE_LQUANTIZE_LEVELS(desc->dtad_arg);
10618 agg->dtag_initial = desc->dtad_arg;
10760 dtrace_ecb_action_add(dtrace_ecb_t *ecb, dtrace_actdesc_t *desc)
10763 dtrace_difo_t *dp = desc->dtad_difo;
10774 uint64_t arg = desc->dtad_arg;
10779 if (DTRACEACT_ISAGG(desc->dtad_kind)) {
10794 action = dtrace_ecb_aggregation_create(ecb, desc);
10799 if (DTRACEACT_ISDESTRUCTIVE(desc->dtad_kind) ||
10800 (desc->dtad_kind == DTRACEACT_DIFEXPR &&
10805 switch (desc->dtad_kind) {
10815 ASSERT(desc->dtad_kind == DTRACEACT_PRINTA);
10866 if (desc->dtad_kind != DTRACEACT_JSTACK &&
10957 if (size != 0 || desc->dtad_kind == DTRACEACT_SPECULATE) {
10986 action->dta_kind = desc->dtad_kind;
10993 rec->dtrd_uarg = desc->dtad_uarg;
11157 dtrace_ecbdesc_t *desc = enab->dten_current;
11163 ecb->dte_uarg = desc->dted_uarg;
11165 if ((pred = desc->dted_pred.dtpdd_predicate) != NULL) {
11222 for (act = desc->dted_action; act != NULL; act = act->dtad_next) {
11895 dtrace_probedesc_t *desc = &enab->dten_desc[i]->dted_probe;
11898 desc->dtpd_provider, desc->dtpd_mod,
11899 desc->dtpd_func, desc->dtpd_name);
12249 dtrace_probedesc_t desc;
12269 desc = enab->dten_desc[i]->dted_probe;
12271 prv->dtpv_pops.dtps_provide(parg, &desc);
12586 dtrace_dof_probedesc(dof_hdr_t *dof, dof_sec_t *sec, dtrace_probedesc_t *desc)
12623 (void) strncpy(desc->dtpd_provider,
12627 desc->dtpd_provider[DTRACE_PROVNAMELEN - 1] = '\0';
12635 (void) strncpy(desc->dtpd_mod, (char *)(str + probe->dofp_mod),
12638 desc->dtpd_mod[DTRACE_MODNAMELEN - 1] = '\0';
12646 (void) strncpy(desc->dtpd_func, (char *)(str + probe->dofp_func),
12649 desc->dtpd_func[DTRACE_FUNCNAMELEN - 1] = '\0';
12657 (void) strncpy(desc->dtpd_name, (char *)(str + probe->dofp_name),
12660 desc->dtpd_name[DTRACE_NAMELEN - 1] = '\0';
12663 return (desc);
12887 dof_actdesc_t *desc;
12925 desc = (dof_actdesc_t *)(daddr +
12927 kind = (dtrace_actkind_t)desc->dofa_kind;
12931 desc->dofa_strtab != DOF_SECIDX_NONE)) {
12940 DOF_SECT_STRTAB, desc->dofa_strtab)) == NULL)
12946 for (i = desc->dofa_arg; i < strtab->dofs_size; i++) {
12956 if (i == desc->dofa_arg) {
12961 i -= desc->dofa_arg;
12963 bcopy(&str[desc->dofa_arg], fmt, i + 1);
12967 ASSERT(desc->dofa_strtab == DOF_SECIDX_NONE);
12970 arg = desc->dofa_arg;
12974 act = dtrace_actdesc_create(kind, desc->dofa_ntuple,
12975 desc->dofa_uarg, arg);
12985 if (desc->dofa_difo == DOF_SECIDX_NONE)
12989 DOF_SECT_DIFOHDR, desc->dofa_difo)) == NULL)
13016 dtrace_probedesc_t *desc;
13037 desc = &ep->dted_probe;
13039 if (dtrace_dof_probedesc(dof, sec, desc) == NULL)
13379 dof_optdesc_t *desc;
13405 desc = (dof_optdesc_t *)((uintptr_t)dof +
13408 if (desc->dofo_strtab != DOF_SECIDX_NONE) {
13414 if (desc->dofo_value == DTRACEOPT_UNSET) {
13416 if (desc->dofo_value == (uint64_t)DTRACEOPT_UNSET) {
13423 desc->dofo_option, desc->dofo_value)) != 0) {
15448 dtrace_probedesc_t *desc = &ep->dted_probe;
15451 if (strcmp(desc->dtpd_provider, "dtrace") != 0)
15454 if (strcmp(desc->dtpd_mod, "helper") != 0)
15457 if (strcmp(desc->dtpd_func, "ustack") != 0)
15460 if (!LIT_STRNEQL(desc->dtpd_provider, "dtrace"))
15463 if (!LIT_STRNEQL(desc->dtpd_mod, "helper"))
15466 if (!LIT_STRNEQL(desc->dtpd_func, "ustack"))
17608 dtrace_repldesc_t desc;
17609 dtrace_probedesc_t *match = &desc.dtrpd_match;
17610 dtrace_probedesc_t *create = &desc.dtrpd_create;
17613 if (copyin((void *)arg, &desc, sizeof (desc)) != 0)
17636 dtrace_probedesc_t desc;
17644 if (copyin((void *)arg, &desc, sizeof (desc)) != 0)
17647 desc.dtpd_provider[DTRACE_PROVNAMELEN - 1] = '\0';
17648 desc.dtpd_mod[DTRACE_MODNAMELEN - 1] = '\0';
17649 desc.dtpd_func[DTRACE_FUNCNAMELEN - 1] = '\0';
17650 desc.dtpd_name[DTRACE_NAMELEN - 1] = '\0';
17656 if (desc.dtpd_id == DTRACE_IDNONE) {
17658 dtrace_probe_provide(&desc, NULL);
17660 desc.dtpd_id++;
17664 dtrace_probekey(&desc, &pkey);
17673 for (i = desc.dtpd_id; i <= dtrace_nprobes; i++) {
17686 for (i = desc.dtpd_id; i <= dtrace_nprobes; i++) {
17698 dtrace_probe_description(probe, &desc);
17701 if (copyout(&desc, (void *)arg, sizeof (desc)) != 0)
17708 dtrace_argdesc_t desc;
17712 if (copyin((void *)arg, &desc, sizeof (desc)) != 0)
17715 if (desc.dtargd_id == DTRACE_IDNONE)
17718 if (desc.dtargd_ndx == DTRACE_ARGNONE)
17725 if (desc.dtargd_id > dtrace_nprobes) {
17732 if ((probe = dtrace_probes[desc.dtargd_id - 1]) == NULL) {
17748 desc.dtargd_ndx = DTRACE_ARGNONE;
17750 desc.dtargd_native[0] = '\0';
17751 desc.dtargd_xlate[0] = '\0';
17752 desc.dtargd_mapping = desc.dtargd_ndx;
17755 probe->dtpr_id, probe->dtpr_arg, &desc);
17761 if (copyout(&desc, (void *)arg, sizeof (desc)) != 0)
17816 dtrace_bufdesc_t desc;
17820 if (copyin((void *)arg, &desc, sizeof (desc)) != 0)
17823 if (desc.dtbd_cpu < 0 || desc.dtbd_cpu >= NCPU)
17829 buf = &state->dts_buffer[desc.dtbd_cpu];
17831 buf = &state->dts_aggbuffer[desc.dtbd_cpu];
17850 desc.dtbd_size = 0;
17851 desc.dtbd_drops = 0;
17852 desc.dtbd_errors = 0;
17853 desc.dtbd_oldest = 0;
17854 sz = sizeof (desc);
17856 if (copyout(&desc, (void *)arg, sz) != 0)
17871 if (copyout(buf->dtb_tomax, desc.dtbd_data, sz) != 0) {
17876 desc.dtbd_size = sz;
17877 desc.dtbd_drops = buf->dtb_drops;
17878 desc.dtbd_errors = buf->dtb_errors;
17879 desc.dtbd_oldest = buf->dtb_xamot_offset;
17883 if (copyout(&desc, (void *)arg, sizeof (desc)) != 0)
17900 dtrace_xcall(desc.dtbd_cpu,
17922 if (copyout(buf->dtb_xamot, desc.dtbd_data,
17928 desc.dtbd_size = buf->dtb_xamot_offset;
17929 desc.dtbd_drops = buf->dtb_xamot_drops;
17930 desc.dtbd_errors = buf->dtb_xamot_errors;
17931 desc.dtbd_oldest = 0;
17938 if (copyout(&desc, (void *)arg, sizeof (desc)) != 0)
18514 dtrace_repldesc_t desc;
18515 dtrace_probedesc_t *match = &desc.dtrpd_match;
18516 dtrace_probedesc_t *create = &desc.dtrpd_create;
18519 if (copyin(arg, &desc, sizeof (desc)) != 0)
18542 dtrace_probedesc_t desc;
18550 if (copyin(arg, &desc, sizeof (desc)) != 0)
18553 desc.dtpd_provider[DTRACE_PROVNAMELEN - 1] = '\0';
18554 desc.dtpd_mod[DTRACE_MODNAMELEN - 1] = '\0';
18555 desc.dtpd_func[DTRACE_FUNCNAMELEN - 1] = '\0';
18556 desc.dtpd_name[DTRACE_NAMELEN - 1] = '\0';
18562 if (desc.dtpd_id == DTRACE_IDNONE) {
18564 dtrace_probe_provide(&desc, NULL);
18566 desc.dtpd_id++;
18570 dtrace_probekey(&desc, &pkey);
18580 for (i = desc.dtpd_id; i <= (dtrace_id_t)dtrace_nprobes; i++) {
18594 for (i = desc.dtpd_id; i <= (dtrace_id_t)dtrace_nprobes; i++) {
18606 dtrace_probe_description(probe, &desc);
18609 if (copyout(&desc, arg, sizeof (desc)) != 0)
18616 dtrace_argdesc_t desc;
18620 if (copyin(arg, &desc, sizeof (desc)) != 0)
18623 if (desc.dtargd_id == DTRACE_IDNONE)
18626 if (desc.dtargd_ndx == DTRACE_ARGNONE)
18634 if (desc.dtargd_id > (dtrace_id_t)dtrace_nprobes) {
18641 if ((probe = dtrace_probes[desc.dtargd_id - 1]) == NULL) {
18657 desc.dtargd_ndx = DTRACE_ARGNONE;
18659 desc.dtargd_native[0] = '\0';
18660 desc.dtargd_xlate[0] = '\0';
18661 desc.dtargd_mapping = desc.dtargd_ndx;
18664 probe->dtpr_id, probe->dtpr_arg, &desc);
18670 if (copyout(&desc, arg, sizeof (desc)) != 0)
18725 dtrace_bufdesc_t desc;
18729 if (copyin(arg, &desc, sizeof (desc)) != 0)
18732 if ((int)desc.dtbd_cpu < 0 || desc.dtbd_cpu >= NCPU)
18738 buf = &state->dts_buffer[desc.dtbd_cpu];
18740 buf = &state->dts_aggbuffer[desc.dtbd_cpu];
18759 desc.dtbd_size = 0;
18760 desc.dtbd_drops = 0;
18761 desc.dtbd_errors = 0;
18762 desc.dtbd_oldest = 0;
18763 sz = sizeof (desc);
18765 if (copyout(&desc, arg, sz) != 0)
18780 if (copyout(buf->dtb_tomax, (user_addr_t)desc.dtbd_data, sz) != 0) {
18785 desc.dtbd_size = sz;
18786 desc.dtbd_drops = buf->dtb_drops;
18787 desc.dtbd_errors = buf->dtb_errors;
18788 desc.dtbd_oldest = buf->dtb_xamot_offset;
18792 if (copyout(&desc, arg, sizeof (desc)) != 0)
18809 dtrace_xcall(desc.dtbd_cpu,
18831 if (copyout(buf->dtb_xamot, (user_addr_t)desc.dtbd_data,
18837 desc.dtbd_size = buf->dtb_xamot_offset;
18838 desc.dtbd_drops = buf->dtb_xamot_drops;
18839 desc.dtbd_errors = buf->dtb_xamot_errors;
18840 desc.dtbd_oldest = 0;
18847 if (copyout(&desc, arg, sizeof (desc)) != 0)