Lines Matching refs:btf_dump
78 struct btf_dump { struct
131 static const char *btf_name_of(const struct btf_dump *d, __u32 name_off) in btf_name_of() argument
136 static void btf_dump_printf(const struct btf_dump *d, const char *fmt, ...) in btf_dump_printf()
145 static int btf_dump_mark_referenced(struct btf_dump *d);
146 static int btf_dump_resize(struct btf_dump *d);
148 struct btf_dump *btf_dump__new(const struct btf *btf, in btf_dump__new()
153 struct btf_dump *d; in btf_dump__new()
156 d = calloc(1, sizeof(struct btf_dump)); in btf_dump__new()
189 static int btf_dump_resize(struct btf_dump *d) in btf_dump_resize()
229 void btf_dump__free(struct btf_dump *d) in btf_dump__free()
253 static int btf_dump_order_type(struct btf_dump *d, __u32 id, bool through_ptr);
254 static void btf_dump_emit_type(struct btf_dump *d, __u32 id, __u32 cont_id);
272 int btf_dump__dump_type(struct btf_dump *d, __u32 id) in btf_dump__dump_type()
306 static int btf_dump_mark_referenced(struct btf_dump *d) in btf_dump_mark_referenced()
369 static int btf_dump_add_emit_queue_id(struct btf_dump *d, __u32 id) in btf_dump_add_emit_queue_id()
461 static int btf_dump_order_type(struct btf_dump *d, __u32 id, bool through_ptr) in btf_dump_order_type()
605 static void btf_dump_emit_missing_aliases(struct btf_dump *d, __u32 id,
608 static void btf_dump_emit_struct_fwd(struct btf_dump *d, __u32 id,
610 static void btf_dump_emit_struct_def(struct btf_dump *d, __u32 id,
613 static void btf_dump_emit_enum_fwd(struct btf_dump *d, __u32 id,
615 static void btf_dump_emit_enum_def(struct btf_dump *d, __u32 id,
618 static void btf_dump_emit_fwd_def(struct btf_dump *d, __u32 id,
621 static void btf_dump_emit_typedef_def(struct btf_dump *d, __u32 id,
630 static void btf_dump_emit_type_decl(struct btf_dump *d, __u32 id,
632 static void btf_dump_emit_type_chain(struct btf_dump *d,
636 static const char *btf_dump_type_name(struct btf_dump *d, __u32 id);
637 static const char *btf_dump_ident_name(struct btf_dump *d, __u32 id);
638 static size_t btf_dump_name_dups(struct btf_dump *d, struct hashmap *name_map,
641 static bool btf_dump_is_blacklisted(struct btf_dump *d, __u32 id) in btf_dump_is_blacklisted()
674 static void btf_dump_emit_type(struct btf_dump *d, __u32 id, __u32 cont_id) in btf_dump_emit_type()
847 static void btf_dump_emit_bit_padding(const struct btf_dump *d, in btf_dump_emit_bit_padding()
941 static void btf_dump_emit_struct_fwd(struct btf_dump *d, __u32 id, in btf_dump_emit_struct_fwd()
950 static void btf_dump_emit_struct_def(struct btf_dump *d, in btf_dump_emit_struct_def()
1027 static void btf_dump_emit_missing_aliases(struct btf_dump *d, __u32 id, in btf_dump_emit_missing_aliases()
1042 static void btf_dump_emit_enum_fwd(struct btf_dump *d, __u32 id, in btf_dump_emit_enum_fwd()
1048 static void btf_dump_emit_enum_def(struct btf_dump *d, __u32 id, in btf_dump_emit_enum_def()
1082 static void btf_dump_emit_fwd_def(struct btf_dump *d, __u32 id, in btf_dump_emit_fwd_def()
1093 static void btf_dump_emit_typedef_def(struct btf_dump *d, __u32 id, in btf_dump_emit_typedef_def()
1113 static int btf_dump_push_decl_stack_id(struct btf_dump *d, __u32 id) in btf_dump_push_decl_stack_id()
1173 int btf_dump__emit_type_decl(struct btf_dump *d, __u32 id, in btf_dump__emit_type_decl()
1194 static void btf_dump_emit_type_decl(struct btf_dump *d, __u32 id, in btf_dump_emit_type_decl()
1273 static void btf_dump_emit_mods(struct btf_dump *d, struct id_stack *decl_stack) in btf_dump_emit_mods()
1299 static void btf_dump_drop_mods(struct btf_dump *d, struct id_stack *decl_stack) in btf_dump_drop_mods()
1313 static void btf_dump_emit_name(const struct btf_dump *d, in btf_dump_emit_name()
1321 static void btf_dump_emit_type_chain(struct btf_dump *d, in btf_dump_emit_type_chain()
1498 static void btf_dump_emit_type_cast(struct btf_dump *d, __u32 id, in btf_dump_emit_type_cast()
1531 static size_t btf_dump_name_dups(struct btf_dump *d, struct hashmap *name_map, in btf_dump_name_dups()
1555 static const char *btf_dump_resolve_name(struct btf_dump *d, __u32 id, in btf_dump_resolve_name()
1588 static const char *btf_dump_type_name(struct btf_dump *d, __u32 id) in btf_dump_type_name()
1593 static const char *btf_dump_ident_name(struct btf_dump *d, __u32 id) in btf_dump_ident_name()
1598 static int btf_dump_dump_type_data(struct btf_dump *d,
1606 static const char *btf_dump_data_newline(struct btf_dump *d) in btf_dump_data_newline()
1611 static const char *btf_dump_data_delim(struct btf_dump *d) in btf_dump_data_delim()
1616 static void btf_dump_data_pfx(struct btf_dump *d) in btf_dump_data_pfx()
1638 static int btf_dump_unsupported_data(struct btf_dump *d, in btf_dump_unsupported_data()
1646 static int btf_dump_get_bitfield_value(struct btf_dump *d, in btf_dump_get_bitfield_value()
1688 static int btf_dump_bitfield_check_zero(struct btf_dump *d, in btf_dump_bitfield_check_zero()
1705 static int btf_dump_bitfield_data(struct btf_dump *d, in btf_dump_bitfield_data()
1724 static int btf_dump_base_type_check_zero(struct btf_dump *d, in btf_dump_base_type_check_zero()
1755 static int btf_dump_int_data(struct btf_dump *d, in btf_dump_int_data()
1850 static int btf_dump_float_data(struct btf_dump *d, in btf_dump_float_data()
1882 static int btf_dump_var_data(struct btf_dump *d, in btf_dump_var_data()
1916 static int btf_dump_array_data(struct btf_dump *d, in btf_dump_array_data()
1974 static int btf_dump_struct_data(struct btf_dump *d, in btf_dump_struct_data()
2020 static int btf_dump_ptr_data(struct btf_dump *d, in btf_dump_ptr_data()
2039 static int btf_dump_get_enum_value(struct btf_dump *d, in btf_dump_get_enum_value()
2078 static int btf_dump_enum_data(struct btf_dump *d, in btf_dump_enum_data()
2102 static int btf_dump_datasec_data(struct btf_dump *d, in btf_dump_datasec_data()
2125 static int btf_dump_type_data_check_overflow(struct btf_dump *d, in btf_dump_type_data_check_overflow()
2183 static int btf_dump_type_data_check_zero(struct btf_dump *d, in btf_dump_type_data_check_zero()
2290 static int btf_dump_dump_type_data(struct btf_dump *d, in btf_dump_dump_type_data()
2379 int btf_dump__dump_type_data(struct btf_dump *d, __u32 id, in btf_dump__dump_type_data()