| /tools/lib/bpf/ |
| A D | btf.h | 26 struct btf_type; 177 const struct btf_type *src_type); 363 static inline __u16 btf_kind(const struct btf_type *t) in btf_kind() 368 static inline __u16 btf_vlen(const struct btf_type *t) in btf_vlen() 373 static inline bool btf_kflag(const struct btf_type *t) in btf_kflag() 383 static inline bool btf_is_int(const struct btf_type *t) in btf_is_int() 388 static inline bool btf_is_ptr(const struct btf_type *t) in btf_is_ptr() 425 static inline bool btf_is_fwd(const struct btf_type *t) in btf_is_fwd() 450 static inline bool btf_is_mod(const struct btf_type *t) in btf_is_mod() 501 const struct btf_type *t2) in btf_kind_core_compat() [all …]
|
| A D | btf_iter.c | 16 int btf_field_iter_init(struct btf_field_iter *it, struct btf_type *t, in btf_field_iter_init() 44 it->desc = (struct btf_field_desc) { 1, {offsetof(struct btf_type, type)} }; in btf_field_iter_init() 48 2, {sizeof(struct btf_type) + offsetof(struct btf_array, type), in btf_field_iter_init() 49 sizeof(struct btf_type) + offsetof(struct btf_array, index_type)} in btf_field_iter_init() 62 1, {offsetof(struct btf_type, type)}, in btf_field_iter_init() 98 1, {offsetof(struct btf_type, name_off)} in btf_field_iter_init() 103 1, {offsetof(struct btf_type, name_off)}, in btf_field_iter_init() 110 1, {offsetof(struct btf_type, name_off)}, in btf_field_iter_init() 118 1, {offsetof(struct btf_type, name_off)}, in btf_field_iter_init() 125 1, {offsetof(struct btf_type, name_off)}, in btf_field_iter_init() [all …]
|
| A D | btf_dump.c | 319 const struct btf_type *t; in btf_dump_mark_referenced() 488 const struct btf_type *t; in btf_dump_order_type() 694 const struct btf_type *t; in btf_dump_emit_type() 1296 const struct btf_type *t; in btf_dump_emit_type_decl() 1375 const struct btf_type *t; in btf_dump_emit_mods() 1401 const struct btf_type *t; in btf_dump_drop_mods() 1435 const struct btf_type *t; in btf_dump_emit_type_chain() 1612 const struct btf_type *t; in btf_dump_emit_type_cast() 2007 const struct btf_type *t; in btf_dump_var_data() 2298 const struct btf_type *var; in btf_dump_datasec_data() [all …]
|
| A D | btf.c | 1542 struct btf_type *t; in btf_get_raw_data() 1898 struct btf_type *t; in btf_add_type() 2069 struct btf_type *t; in btf__add_int() 2117 struct btf_type *t; in btf__add_float() 2162 struct btf_type *t; in btf_add_ref_kind() 2212 struct btf_type *t; in btf__add_array() 2242 struct btf_type *t; in btf_add_composite() 2322 struct btf_type *t; in btf__add_field() 3993 static bool btf_equal_enum(struct btf_type *t1, struct btf_type *t2) in btf_equal_enum() 4010 static bool btf_compat_enum(struct btf_type *t1, struct btf_type *t2) in btf_compat_enum() [all …]
|
| A D | relo_core.c | 21 static const struct btf_type * 34 const struct btf_type *t; in btf__resolve_size() 75 const struct btf_type *t; in is_flex_arr() 269 const struct btf_type *t; in bpf_core_parse_spec() 561 const struct btf_type *targ_type; in bpf_core_spec_match() 685 const struct btf_type *t; in bpf_core_calc_field_relo() 688 const struct btf_type *mt; in bpf_core_calc_field_relo() 867 const struct btf_type *t; in bpf_core_calc_enumval_relo() 927 const struct btf_type *orig_t, *new_t; in bpf_core_calc_relo() 1174 const struct btf_type *t; in bpf_core_format_spec() [all …]
|
| A D | btf_relocate.c | 16 #define btf_type_by_id (struct btf_type *)btf_type_by_id 68 struct btf_type *t = btf_type_by_id(r->btf, i); in btf_relocate_rewrite_type_id() 134 struct btf_type *t = btf_type_by_id(r->btf, i); in btf_mark_embedded_composite_type_ids() 187 struct btf_type *base_t, *dist_t; in btf_relocate_map_distilled_base() 388 struct btf_type *t = btf_type_by_id(r->dist_base_btf, i); in btf_relocate_validate_distilled_base() 414 struct btf_type *t = btf_type_by_id(r->btf, i); in btf_relocate_rewrite_strs()
|
| A D | libbpf_internal.h | 233 struct btf_type; 235 struct btf_type *btf_type_by_id(const struct btf *btf, __u32 type_id); 236 const char *btf_kind_str(const struct btf_type *t); 237 const struct btf_type *skip_mods_and_typedefs(const struct btf *btf, __u32 id, __u32 *res_id); 242 static inline enum btf_func_linkage btf_func_linkage(const struct btf_type *t) in btf_func_linkage() 283 const struct btf_type *def_t, bool strict, 566 int btf_field_iter_init(struct btf_field_iter *it, struct btf_type *t, enum btf_field_iter_kind ite…
|
| /tools/bpf/bpftool/ |
| A D | gen.c | 58 static const struct btf_type * 61 const struct btf_type *t; in resolve_func_ptr() 280 const struct btf_type *sec; in codegen_datasecs() 503 const struct btf_type *sec; in codegen_asserts() 2033 const struct btf_type *btf_type = btf__type_by_id(info->src_btf, type_id); in btfgen_mark_type() local 2108 const struct btf_type *btf_type; in btfgen_record_field_relo() local 2123 while (btf_is_mod(btf_type) || btf_is_typedef(btf_type)) { in btfgen_record_field_relo() 2124 type_id = btf_type->type; in btfgen_record_field_relo() 2151 btf_kind_str(btf_type), btf_type->type); in btfgen_record_field_relo() 2169 const struct btf_type *btf_type; in btfgen_mark_type_match() local [all …]
|
| A D | btf_dumper.c | 28 const struct btf_type *func_proto, 35 const struct btf_type *func_type; in dump_prog_id_as_func_ptr() 108 const struct btf_type *t, in btf_dumper_ptr() 112 const struct btf_type *ptr_type; in btf_dumper_ptr() 148 const struct btf_type *t, in btf_dumper_enum() 186 const struct btf_type *t, in btf_dumper_enum64() 214 const struct btf_type *elem_type; in is_str_array() 468 const struct btf_type *t; in btf_dumper_struct() 531 const struct btf_type *t; in btf_dumper_datasec() 622 const struct btf_type *proto_type; in __btf_dumper_type_only() [all …]
|
| A D | btf.c | 120 const struct btf_type *t) in dump_btf_type() 370 const struct btf_type *vt; in dump_btf_type() 438 const struct btf_type *t; in dump_btf_raw() 505 const struct btf_type *a = *(void **)pa; in cmp_kfuncs() 506 const struct btf_type *b = *(void **)pb; in cmp_kfuncs() 524 const struct btf_type *t = btf__type_by_id(btf, i); in dump_btf_kfuncs() 525 const struct btf_type *ft; in dump_btf_kfuncs() 555 const struct btf_type *t = kfuncs.elems[i]; in dump_btf_kfuncs() 591 const struct btf_type *t = btf__type_by_id(btf, index); in btf_type_rank() 676 const struct btf_type *t = btf__type_by_id(btf, id); in btf_type_disambig_hash() [all …]
|
| A D | struct_ops.c | 19 static const struct btf_type *map_info_type; 44 const struct btf_type *t; in get_kern_struct_ops_name() 360 const struct btf_type *struct_ops_type; in __do_dump()
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | libbpf_str.c | 24 const struct btf_type *t; in test_libbpf_bpf_attach_type_str() 69 const struct btf_type *t; in test_libbpf_bpf_link_type_str() 114 const struct btf_type *t; in test_libbpf_bpf_map_type_str() 171 const struct btf_type *t; in test_libbpf_bpf_prog_type_str()
|
| A D | libbpf_probes.c | 10 const struct btf_type *t; in test_libbpf_probe_prog_types() 50 const struct btf_type *t; in test_libbpf_probe_map_types()
|
| A D | test_global_funcs.c | 28 const struct btf_type *t; in check_ctx_arg_type() 93 const struct btf_type *fn_t, *proto_t; in subtest_ctx_arg_rewrite()
|
| A D | btf_dedup_split.c | 8 const struct btf_type *t; in test_split_simple() 489 const struct btf_type *t; in test_split_module()
|
| A D | btf_endian.c | 20 const struct btf_type *t; in test_btf_endian()
|
| A D | btf_field_iter.c | 129 struct btf_type *t = btf_type_by_id(btf, id); in test_btf_field_iter()
|
| A D | btf_split.c | 18 const struct btf_type *t; in __test_btf_split()
|
| A D | resolve_btfids.c | 68 const struct btf_type *type; in BTF_ID()
|
| /tools/perf/util/ |
| A D | btf.c | 15 const struct btf_type *t = btf__type_by_id(btf, type_id); in __btf_type__find_member_by_name()
|
| A D | bpf-event.c | 140 const struct btf_type *t; in synthesize_bpf_prog_name() 177 const struct btf_type *datasec; 190 const struct btf_type *datasec; in bpf_metadata_read_map_data() 228 const struct btf_type *t_var = btf__type_by_id(btf, vsi->type); in bpf_metadata_read_map_data() 280 const struct btf_type *t, const void *btf_data) in format_btf_variable() 313 const struct btf_type *t_var = btf__type_by_id(map->btf, in bpf_metadata_fill_event()
|
| /tools/testing/selftests/bpf/test_kmods/ |
| A D | bpf_test_no_cfi.c | 18 static int dummy_init_member(const struct btf_type *t, in dummy_init_member()
|
| /tools/sched_ext/include/scx/ |
| A D | compat.h | 27 const struct btf_type *t; in __COMPAT_read_enum() 83 const struct btf_type *t; in __COMPAT_struct_has_field()
|
| /tools/include/uapi/linux/ |
| A D | btf.h | 31 struct btf_type { struct
|
| /tools/testing/selftests/bpf/ |
| A D | btf_helpers.c | 67 static const char *btf_func_linkage_str(const struct btf_type *t) in btf_func_linkage_str() 90 const struct btf_type *t; in fprintf_btf_type_raw()
|