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