Lines Matching refs:btf

56 	const struct btf *btf;  member
107 return btf__name_by_offset(d->btf, name_off); in btf_name_of()
119 struct btf_dump *btf_dump__new(const struct btf *btf, in btf_dump__new() argument
131 d->btf = btf; in btf_dump__new()
164 for (i = 0, cnt = btf__get_nr_types(d->btf); i <= cnt; i++) { in btf_dump__free()
202 if (id > btf__get_nr_types(d->btf)) in btf_dump__dump_type()
207 d->type_states = calloc(1 + btf__get_nr_types(d->btf), in btf_dump__dump_type()
211 d->cached_names = calloc(1 + btf__get_nr_types(d->btf), in btf_dump__dump_type()
251 int i, j, n = btf__get_nr_types(d->btf); in btf_dump_mark_referenced()
256 t = btf__type_by_id(d->btf, i); in btf_dump_mark_referenced()
425 t = btf__type_by_id(d->btf, id); in btf_dump_order_type()
581 const struct btf_type *t = btf__type_by_id(d->btf, id); in btf_dump_is_blacklisted()
622 t = btf__type_by_id(d->btf, id); in btf_dump_emit_type()
755 static int btf_align_of(const struct btf *btf, __u32 id) in btf_align_of() argument
757 const struct btf_type *t = btf__type_by_id(btf, id); in btf_align_of()
770 return btf_align_of(btf, t->type); in btf_align_of()
772 return btf_align_of(btf, btf_array(t)->type); in btf_align_of()
780 align = max(align, btf_align_of(btf, m->type)); in btf_align_of()
790 static bool btf_is_struct_packed(const struct btf *btf, __u32 id, in btf_is_struct_packed() argument
797 align = btf_align_of(btf, id); in btf_is_struct_packed()
806 align = btf_align_of(btf, m->type); in btf_is_struct_packed()
878 packed = is_struct ? btf_is_struct_packed(d->btf, id, t) : 0; in btf_dump_emit_struct_def()
879 align = packed ? 1 : btf_align_of(d->btf, id); in btf_dump_emit_struct_def()
893 align = packed ? 1 : btf_align_of(d->btf, m->type); in btf_dump_emit_struct_def()
903 m_sz = max(0, btf__resolve_size(d->btf, m->type)); in btf_dump_emit_struct_def()
1062 t = btf__type_by_id(d->btf, id); in btf_dump_emit_type_decl()
1119 t = btf__type_by_id(d->btf, id); in btf_dump_emit_mods()
1175 t = btf__type_by_id(d->btf, id); in btf_dump_emit_type_chain()
1238 next_t = btf__type_by_id(d->btf, next_id); in btf_dump_emit_type_chain()
1252 next_t = btf__type_by_id(d->btf, next_id); in btf_dump_emit_type_chain()
1337 const struct btf_type *t = btf__type_by_id(d->btf, id); in btf_dump_resolve_name()