Lines Matching refs:ctfp
47 type_name(ctf_file_t *ctfp, ctf_id_t type, char *buf, size_t len) in type_name() argument
49 if (ctf_type_name(ctfp, type, buf, len) == NULL) in type_name()
56 print_value(ctf_file_t *ctfp, ctf_id_t type, ulong_t value) in print_value() argument
58 ctf_id_t rtype = ctf_type_resolve(ctfp, type); in print_value()
63 if (ctf_type_kind(ctfp, rtype) == CTF_K_POINTER) { in print_value()
64 type = ctf_type_reference(ctfp, rtype); in print_value()
65 rtype = ctf_type_resolve(ctfp, type); in print_value()
67 if (ctf_type_encoding(ctfp, rtype, &e) == 0 && in print_value()
79 if (ctf_type_kind(ctfp, rtype) == CTF_K_STRUCT) { in print_value()
85 pa.pa_ctfp = ctfp; in print_value()
89 (void) ctf_type_visit(ctfp, rtype, elt_print, &pa); in print_value()
143 ctf_file_t *ctfp = pap->pa_ctfp; in print_int() local
148 if (ctf_type_encoding(ctfp, base, &e) == CTF_ERR) { in print_int()
195 ctf_file_t *ctfp = pap->pa_ctfp; in print_float() local
205 if (ctf_type_encoding(ctfp, base, &e) == 0) { in print_float()
225 ctf_file_t *ctfp = pap->pa_ctfp; in print_ptr() local
229 if (ctf_type_kind(ctfp, base) != CTF_K_POINTER) in print_ptr()
232 if ((base = ctf_type_reference(ctfp, base)) == CTF_ERR) in print_ptr()
235 if ((base = ctf_type_resolve(ctfp, base)) == CTF_ERR) in print_ptr()
238 if (ctf_type_encoding(ctfp, base, &e) != 0) in print_ptr()
268 ctf_file_t *ctfp = pap->pa_ctfp; in print_enum() local
272 if ((ename = ctf_enum_name(ctfp, base, value)) != NULL) in print_enum()
305 ctf_file_t *ctfp = pap->pa_ctfp; in elt_print() local
312 if ((base = ctf_type_resolve(ctfp, id)) == CTF_ERR || in elt_print()
313 (kind = ctf_type_kind(ctfp, base)) == CTF_ERR) in elt_print()
316 if (ctf_type_name(ctfp, id, type, sizeof (type)) == NULL) in elt_print()