Lines Matching defs:kind
491 dt_node_xalloc(dtrace_hdl_t *dtp, int kind)
500 dnp->dn_kind = (uchar_t)kind;
520 dt_node_alloc(int kind)
522 dt_node_t *dnp = dt_node_xalloc(yypcb->pcb_hdl, kind);
537 uchar_t kind = dnp->dn_kind;
541 switch (kind) {
657 uint_t kind = ctf_type_kind(fp, base);
663 if (kind == CTF_K_INTEGER && ctf_type_encoding(fp, base, &e) == 0) {
673 if (kind == CTF_K_FLOAT && ctf_type_encoding(fp, base, &e) == 0) {
678 if (kind == CTF_K_STRUCT || kind == CTF_K_UNION ||
679 kind == CTF_K_FORWARD ||
680 kind == CTF_K_ARRAY || kind == CTF_K_FUNCTION)
733 * specified kind, and if so return a pointer to it; otherwise return NULL.
769 * the kind of the node. If the node is a SYM, the size is obtained
794 uint_t kind;
799 kind = ctf_type_kind(fp, type);
801 if (kind == CTF_K_INTEGER &&
805 return (kind == CTF_K_INTEGER || kind == CTF_K_ENUM);
814 uint_t kind;
819 kind = ctf_type_kind(fp, type);
821 return (kind == CTF_K_FLOAT &&
833 uint_t kind;
838 kind = ctf_type_kind(fp, type);
840 if (kind == CTF_K_INTEGER &&
844 return (kind == CTF_K_INTEGER || kind == CTF_K_ENUM ||
845 kind == CTF_K_POINTER);
854 uint_t kind;
859 kind = ctf_type_kind(fp, type);
861 if (kind == CTF_K_INTEGER)
864 return (kind == CTF_K_ENUM);
873 uint_t kind;
882 kind = ctf_type_kind(fp, type);
884 return (kind == CTF_K_FUNCTION || (kind == CTF_K_INTEGER &&
936 uint_t kind;
941 kind = ctf_type_kind(fp, base);
943 if (kind == CTF_K_POINTER &&
949 if (kind == CTF_K_ARRAY && ctf_array_info(fp, base, &r) == 0 &&
961 uint_t kind;
968 kind = ctf_type_kind(fp, ctf_type_resolve(fp, dnp->dn_type));
969 return (kind == CTF_K_POINTER || kind == CTF_K_ARRAY);
1505 uint_t id, kind;
1636 kind = ctf_type_kind(dtt.dtt_ctfp, type);
1638 switch (kind) {
1753 uint_t kind;
1765 kind = ctf_type_kind(dtt.dtt_ctfp, type);
1767 if (kind != CTF_K_STRUCT && kind != CTF_K_UNION) {
2383 uint_t kind;
2412 kind = ctf_type_kind(dst.dtt_ctfp,
2415 if (kind == CTF_K_FORWARD) {
2420 if (kind != CTF_K_STRUCT && kind != CTF_K_UNION) {
2560 * kind, and a boolean flag indicating whether we are allowed to instantiate
2854 uint_t kind;
2898 kind = ctf_type_kind(cp->dn_ctfp, type);
2900 if (kind == CTF_K_ARRAY) {
2906 } else if (kind == CTF_K_POINTER) {
2915 kind = ctf_type_kind(cp->dn_ctfp, base);
2917 if (kind == CTF_K_INTEGER && ctf_type_encoding(cp->dn_ctfp,
2923 if (kind == CTF_K_FUNCTION) {
2928 if (kind != CTF_K_ARRAY || dt_node_is_string(dnp))
2944 (kind == CTF_K_POINTER || (dnp->dn_flags & DT_NF_REF)))
3080 int kind, val, uref;
3219 kind = ctf_type_kind(lp->dn_ctfp,
3222 if (kind == CTF_K_ENUM && rp->dn_kind == DT_NODE_IDENT &&
3482 kind = ctf_type_kind(lp->dn_ctfp,
3485 if (kind == CTF_K_ARRAY || kind == CTF_K_FUNCTION) {
3634 kind = ctf_type_kind(ctfp, type);
3637 if (kind != CTF_K_POINTER) {
3643 kind = ctf_type_kind(ctfp, type);
3650 while (kind == CTF_K_FORWARD) {
3658 kind = ctf_type_kind(ctfp, type);
3667 if (kind != CTF_K_STRUCT && kind != CTF_K_UNION) {
3688 kind = ctf_type_kind(ctfp, type);
3693 if (op == DT_TOK_PTR && (kind != CTF_K_ARRAY ||
3698 (kind != CTF_K_ARRAY || dt_node_is_string(dnp)))
3704 if (uref && (kind == CTF_K_POINTER ||
3838 * same base type, between any kind of scalar values, from
4234 dt_node_provider_cmp_argv(dt_provider_t *pvp, dt_node_t *pnp, const char *kind,
4247 pvp->pv_desc.dtvd_name, prp->pr_ident->di_name, kind,
4261 pvp->pv_desc.dtvd_name, prp->pr_ident->di_name, kind, i + 1,
4841 (void) fprintf(fp, "<bad node %p, kind %d>\n",