Home
last modified time | relevance | path

Searched refs:btf_type (Results 1 – 25 of 35) sorted by relevance

12

/tools/lib/bpf/
Dbtf.h25 struct btf_type;
130 LIBBPF_API const struct btf_type *btf__type_by_id(const struct btf *btf,
152 const struct btf_type *src_type);
320 static inline __u16 btf_kind(const struct btf_type *t) in btf_kind()
325 static inline __u16 btf_vlen(const struct btf_type *t) in btf_vlen()
330 static inline bool btf_kflag(const struct btf_type *t) in btf_kflag()
335 static inline bool btf_is_void(const struct btf_type *t) in btf_is_void()
340 static inline bool btf_is_int(const struct btf_type *t) in btf_is_int()
345 static inline bool btf_is_ptr(const struct btf_type *t) in btf_is_ptr()
350 static inline bool btf_is_array(const struct btf_type *t) in btf_is_array()
[all …]
Dbtf_dump.c314 const struct btf_type *t; in btf_dump_mark_referenced()
483 const struct btf_type *t; in btf_dump_order_type()
617 const struct btf_type *t);
620 const struct btf_type *t);
622 const struct btf_type *t, int lvl);
625 const struct btf_type *t);
627 const struct btf_type *t, int lvl);
630 const struct btf_type *t);
633 const struct btf_type *t, int lvl);
654 const struct btf_type *t = btf__type_by_id(d->btf, id); in btf_dump_is_blacklisted()
[all …]
Dbtf.c29 static struct btf_type btf_void;
288 static int btf_type_size(const struct btf_type *t) in btf_type_size()
290 const int base_size = sizeof(struct btf_type); in btf_type_size()
329 static void btf_bswap_type_base(struct btf_type *t) in btf_bswap_type_base()
336 static int btf_bswap_type_rest(struct btf_type *t) in btf_bswap_type_rest()
420 while (next_type + sizeof(struct btf_type) <= end_type) { in btf_parse_type_sec()
462 struct btf_type *btf_type_by_id(const struct btf *btf, __u32 type_id) in btf_type_by_id()
471 const struct btf_type *btf__type_by_id(const struct btf *btf, __u32 type_id) in btf__type_by_id()
493 const struct btf_type *t; in determine_ptr_size()
592 static bool btf_type_is_void(const struct btf_type *t) in btf_type_is_void()
[all …]
Dlibbpf_internal.h231 struct btf_type;
233 struct btf_type *btf_type_by_id(const struct btf *btf, __u32 type_id);
234 const char *btf_kind_str(const struct btf_type *t);
235 const struct btf_type *skip_mods_and_typedefs(const struct btf *btf, __u32 id, __u32 *res_id);
237 static inline enum btf_func_linkage btf_func_linkage(const struct btf_type *t) in btf_func_linkage()
278 const struct btf_type *def_t, bool strict,
492 int btf_type_visit_type_ids(struct btf_type *t, type_id_visit_fn visit, void *ctx);
493 int btf_type_visit_str_offs(struct btf_type *t, str_off_visit_fn visit, void *ctx);
Drelo_core.c11 static const char *btf_kind_str(const struct btf_type *t) in btf_kind_str()
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()
149 const struct btf_type *local_type, *targ_type; in __bpf_core_types_are_compat()
269 const struct btf_type *t; in bpf_core_parse_spec()
417 const struct btf_type *local_type, *targ_type; in bpf_core_fields_are_compat()
488 const struct btf_type *local_type, *targ_type; in bpf_core_match_member()
561 const struct btf_type *targ_type; in bpf_core_spec_match()
685 const struct btf_type *t; in bpf_core_calc_field_relo()
[all …]
Dlinker.c940 struct btf_type *t; in linker_sanity_check_btf()
1302 const struct btf_type *t1, *t2; in glob_sym_btf_matches()
1586 const struct btf_type *t; in glob_map_defs_match()
1624 const struct btf_type *src_t; in glob_syms_match()
1652 static bool btf_is_non_static(const struct btf_type *t) in btf_is_non_static()
1662 const struct btf_type *t; in find_glob_sym_btf()
1745 struct btf_type *dst_t = btf_type_by_id(dst_btf, dst_id); in complete_extern_btf_info()
1746 struct btf_type *src_t = btf_type_by_id(src_btf, src_id); in complete_extern_btf_info()
1856 const struct btf_type *t; in linker_append_elf_sym()
2142 struct btf_type *t; in linker_fixup_btf()
[all …]
Dlibbpf.c461 const struct btf_type *type;
893 find_member_by_offset(const struct btf_type *t, __u32 bit_offset) in find_member_by_offset()
907 find_member_by_name(const struct btf *btf, const struct btf_type *t, in find_member_by_name()
927 const struct btf_type **type, __u32 *type_id, in find_struct_ops_kern_types()
928 const struct btf_type **vtype, __u32 *vtype_id, in find_struct_ops_kern_types()
931 const struct btf_type *kern_type, *kern_vtype; in find_struct_ops_kern_types()
995 const struct btf_type *type, *kern_type, *kern_vtype; in bpf_map__init_kern_struct_ops()
1028 const struct btf_type *mtype, *kern_mtype; in bpf_map__init_kern_struct_ops()
1144 const struct btf_type *type, *datasec; in init_struct_ops_maps()
1611 const struct btf_type *t, *vt; in map_is_mmapable()
[all …]
/tools/bpf/bpftool/
Dgen.c127 const struct btf_type *sec, in codegen_datasec_def()
144 const struct btf_type *var = btf__type_by_id(btf, sec_var->type); in codegen_datasec_def()
212 static const struct btf_type *find_type_for_map(struct btf *btf, const char *map_ident) in find_type_for_map()
218 const struct btf_type *t = btf__type_by_id(btf, i); in find_type_for_map()
250 const struct btf_type *sec; in codegen_datasecs()
289 const struct btf_type *v) in btf_is_ptr_to_func_proto()
299 const struct btf_type *sec, *var; in codegen_subskel_datasecs()
473 const struct btf_type *sec; in codegen_asserts()
503 const struct btf_type *var = btf__type_by_id(btf, sec_var->type); in codegen_asserts()
1291 const struct btf_type *map_type, *var_type; in do_subskeleton()
[all …]
Dbtf_dumper.c28 const struct btf_type *func_proto,
29 const struct btf_type *func, int pos, int size);
32 const struct btf_type *func_proto, in dump_prog_id_as_func_ptr()
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()
250 const struct btf_type *t = btf__type_by_id(d->btf, type_id); in btf_dumper_array()
[all …]
Dstruct_ops.c19 static const struct btf_type *map_info_type;
44 const struct btf_type *t; in get_kern_struct_ops_name()
354 const struct btf_type *struct_ops_type; in __do_dump()
Dbtf.c76 static const char *btf_func_linkage_str(const struct btf_type *t) in btf_func_linkage_str()
103 const struct btf_type *t) in dump_btf_type()
353 const struct btf_type *vt; in dump_btf_type()
421 const struct btf_type *t; in dump_btf_raw()
Dcgroup.c124 const struct btf_type *t = in show_bpf_prog()
/tools/testing/selftests/bpf/prog_tests/
Dlibbpf_str.c24 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()
164 const struct btf_type *t; in test_libbpf_bpf_prog_type_str()
Dlibbpf_probes.c10 const struct btf_type *t; in test_libbpf_probe_prog_types()
48 const struct btf_type *t; in test_libbpf_probe_map_types()
Dbtf_split.c17 const struct btf_type *t; in test_btf_split()
Dbtf_endian.c20 const struct btf_type *t; in test_btf_endian()
Dresolve_btfids.c68 const struct btf_type *type; in BTF_ID()
Dbtf_dedup_split.c8 const struct btf_type *t; in test_split_simple()
Dverifier_log.c273 struct btf_type *t; in verif_btf_log_subtest()
Dbtf_write.c10 const struct btf_type *t; in gen_btf()
/tools/include/uapi/linux/
Dbtf.h31 struct btf_type { struct
/tools/testing/selftests/bpf/
Dbtf_helpers.c67 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()
/tools/perf/tests/
Dsigtrap.c64 const struct btf_type *t; in attr_has_sigtrap()
/tools/perf/util/
Dbpf_off_cpu.c102 const struct btf_type *t1, *t2, *t3; in check_sched_switch_args()
Dbpf-event.c131 const struct btf_type *t; in synthesize_bpf_prog_name()

12