Home
last modified time | relevance | path

Searched defs:btf (Results 1 – 25 of 82) sorted by relevance

1234

/linux-6.12.1/tools/lib/bpf/
Dbtf.c31 struct btf { struct
33 void *raw_data;
35 void *raw_data_swapped;
36 __u32 raw_size;
60 * and cached again if user calls btf__raw_data(), at which point argument
77 struct btf_header *hdr; argument
97 struct btf *base_btf; argument
119 /* whether base_btf should be freed in btf_free for this instance */ argument
120 bool owns_base;
123 int fd;
[all …]
Drelo_core.h10 const struct btf *btf; member
30 const struct btf *btf; member
Drelo_core.c22 skip_mods_and_typedefs(const struct btf *btf, u32 id, u32 *res_id) in skip_mods_and_typedefs()
27 static const char *btf__name_by_offset(const struct btf *btf, u32 offset) in btf__name_by_offset()
32 static s64 btf__resolve_size(const struct btf *btf, u32 type_id) in btf__resolve_size()
71 static bool is_flex_arr(const struct btf *btf, in is_flex_arr()
263 int bpf_core_parse_spec(const char *prog_name, const struct btf *btf, in bpf_core_parse_spec()
/linux-6.12.1/kernel/bpf/
Dbtf.c252 struct btf { struct
254 struct btf_type **types; argument
259 struct btf_header hdr; argument
266 struct btf_kfunc_set_tab *kfunc_set_tab; argument
267 struct btf_id_dtor_kfunc_tab *dtor_kfunc_tab; argument
268 struct btf_struct_metas *struct_meta_tab; argument
269 struct btf_struct_ops_tab *struct_ops_tab; argument
272 struct btf *base_btf; argument
276 bool kernel_btf; argument
286 const struct btf_type *t; argument
[all …]
Dbpf_struct_ops.c42 struct btf *btf; member
88 static bool is_valid_value_type(struct btf *btf, s32 value_id, in is_valid_value_type()
158 find_stub_func_proto(const struct btf *btf, const char *st_op_name, in find_stub_func_proto()
202 static int prepare_arg_info(struct btf *btf, in prepare_arg_info()
313 struct btf *btf, in bpf_struct_ops_desc_init()
501 static int check_zero_holes(const struct btf *btf, const struct btf_type *t, void *data) in check_zero_holes()
906 struct btf *btf; in bpf_struct_ops_map_alloc() local
Dlog.c386 const struct btf *btf; in verbose_linfo() local
430 static const char *btf_type_name(const struct btf *btf, u32 id) in btf_type_name()
509 const char *iter_type_str(const struct btf *btf, u32 btf_id) in iter_type_str()
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dbtf_dump.c26 static int btf_dump_all_types(const struct btf *btf, void *ctx) in btf_dump_all_types()
51 struct btf *btf = NULL; in test_btf_dump_case() local
135 struct btf *btf = NULL; in test_btf_dump_incremental() local
269 static int btf_dump_data(struct btf *btf, struct btf_dump *d, in btf_dump_data()
350 static void test_btf_dump_int_data(struct btf *btf, struct btf_dump *d, in test_btf_dump_int_data()
408 static void test_btf_dump_float_data(struct btf *btf, struct btf_dump *d, in test_btf_dump_float_data()
453 static void test_btf_dump_char_data(struct btf *btf, struct btf_dump *d, in test_btf_dump_char_data()
475 static void test_btf_dump_typedef_data(struct btf *btf, struct btf_dump *d, in test_btf_dump_typedef_data()
530 static void test_btf_dump_enum_data(struct btf *btf, struct btf_dump *d, in test_btf_dump_enum_data()
566 static void test_btf_dump_struct_data(struct btf *btf, struct btf_dump *d, in test_btf_dump_struct_data()
[all …]
Dlibbpf_str.c23 struct btf *btf; in test_libbpf_bpf_attach_type_str() local
68 struct btf *btf; in test_libbpf_bpf_link_type_str() local
113 struct btf *btf; in test_libbpf_bpf_map_type_str() local
170 struct btf *btf; in test_libbpf_bpf_prog_type_str() local
Dctx_rewrite.c252 static int find_field_offset_aux(struct btf *btf, int btf_id, char *field_name, int off) in find_field_offset_aux()
291 static int find_field_offset(struct btf *btf, char *pattern, regmatch_t *matches) in find_field_offset()
490 static bool match_pattern(struct btf *btf, char *pattern, char *text, char *reg_map[][2]) in match_pattern()
640 static void match_program(struct btf *btf, in match_program()
705 static void run_one_testcase(struct btf *btf, struct test_case *test) in run_one_testcase()
800 struct btf *btf; in test_ctx_rewrite() local
Dbtf_write.c7 static void gen_btf(struct btf *btf) in gen_btf()
357 struct btf *btf; in test_btf_add() local
Dlinked_list.c252 struct btf *btf; in init_btf() local
278 struct btf *btf; in list_and_rb_node_same_struct() local
330 struct btf *btf = NULL; in test_btf() local
Dtest_global_funcs.c26 static void check_ctx_arg_type(const struct btf *btf, const struct btf_param *p) in check_ctx_arg_type()
47 struct btf *btf = NULL; in subtest_ctx_arg_rewrite() local
Dlibbpf_probes.c9 struct btf *btf; in test_libbpf_probe_prog_types() local
49 struct btf *btf; in test_libbpf_probe_map_types() local
Dtest_bpf_ma.c16 struct btf *btf; in do_bpf_ma_test() local
/linux-6.12.1/kernel/bpf/preload/iterators/
Diterators.bpf.c34 struct btf { struct
36 struct btf_type **types; argument
37 struct btf_header hdr; argument
46 struct btf *btf; argument
59 static const char *get_name(struct btf *btf, long btf_id, const char *fallback) in get_name()
/linux-6.12.1/tools/testing/selftests/bpf/
Dbtf_helpers.c81 static const char *btf_str(const struct btf *btf, __u32 off) in btf_str()
88 int fprintf_btf_type_raw(FILE *out, const struct btf *btf, __u32 id) in fprintf_btf_type_raw()
216 const char *btf_type_raw_dump(const struct btf *btf, int type_id) in btf_type_raw_dump()
234 int btf_validate_raw(struct btf *btf, int nr_types, const char *exp_types[]) in btf_validate_raw()
257 const char *btf_type_c_dump(const struct btf *btf) in btf_type_c_dump()
Dbtf_helpers.h13 #define VALIDATE_RAW_BTF(btf, raw_types...) \ argument
/linux-6.12.1/tools/bpf/bpftool/
Dbtf.c100 static const char *btf_str(const struct btf *btf, __u32 off) in btf_str()
112 static int dump_btf_type(const struct btf *btf, __u32 id, in dump_btf_type()
428 static int dump_btf_raw(const struct btf *btf, in dump_btf_raw()
467 static int dump_btf_kfuncs(struct btf_dump *d, const struct btf *btf) in dump_btf_kfuncs()
516 static int btf_type_rank(const struct btf *btf, __u32 index, bool has_name) in btf_type_rank()
556 static const char *btf_type_sort_name(const struct btf *btf, __u32 index, bool from_ref) in btf_type_sort_name()
593 static __u64 btf_name_hasher(__u64 hash, const struct btf *btf, __u32 name_off) in btf_name_hasher()
601 static __u64 btf_type_disambig_hash(const struct btf *btf, __u32 id, bool include_members) in btf_type_disambig_hash()
672 static struct sort_datum *sort_btf_c(const struct btf *btf) in sort_btf_c()
698 static int dump_btf_c(const struct btf *btf, in dump_btf_c()
[all …]
Dgen.c59 resolve_func_ptr(const struct btf *btf, __u32 id, __u32 *res_id) in resolve_func_ptr()
148 struct btf *btf, in codegen_datasec_def()
235 static const struct btf_type *find_type_for_map(struct btf *btf, const char *map_ident) in find_type_for_map()
277 struct btf *btf = bpf_object__btf(obj); in codegen_datasecs() local
318 static bool btf_is_ptr_to_func_proto(const struct btf *btf, in btf_is_ptr_to_func_proto()
326 struct btf *btf = bpf_object__btf(obj); in codegen_subskel_datasecs() local
499 struct btf *btf = bpf_object__btf(obj); in codegen_asserts() local
963 static int walk_st_ops_shadow_vars(struct btf *btf, const char *ident, in walk_st_ops_shadow_vars()
1078 static int gen_st_ops_shadow_type(const char *obj_name, struct btf *btf, const char *ident, in gen_st_ops_shadow_type()
1106 static int gen_st_ops_shadow(const char *obj_name, struct btf *btf, struct bpf_object *obj) in gen_st_ops_shadow()
[all …]
Dbtf_dumper.c211 static bool is_str_array(const struct btf *btf, const struct btf_array *arr, in is_str_array()
619 static int __btf_dumper_type_only(const struct btf *btf, __u32 type_id, in __btf_dumper_type_only()
710 static int btf_dump_func(const struct btf *btf, char *func_sig, in btf_dump_func()
747 void btf_dumper_type_only(const struct btf *btf, __u32 type_id, char *func_sig, in btf_dumper_type_only()
769 void btf_dump_linfo_plain(const struct btf *btf, in btf_dump_linfo_plain()
801 void btf_dump_linfo_json(const struct btf *btf, in btf_dump_linfo_json()
874 void btf_dump_linfo_dotlabel(const struct btf *btf, in btf_dump_linfo_dotlabel()
Dmap.c133 unsigned char *value, struct btf *btf) in print_entry_json()
743 struct bpf_map_info *map_info, struct btf *btf, in dump_map_elem()
790 static int get_map_kv_btf(const struct bpf_map_info *info, struct btf **btf) in get_map_kv_btf()
816 static void free_map_kv_btf(struct btf *btf) in free_map_kv_btf()
828 struct btf *btf = NULL; in map_dump() local
1035 struct btf *btf; in print_key_value() local
Dxlated_dumper.c230 struct btf *btf = dd->btf; in dump_xlated_json() local
315 struct btf *btf = dd->btf; in dump_xlated_plain() local
383 struct btf *btf = dd->btf; in dump_xlated_for_graph() local
Dmain.h188 const struct btf *btf, in disasm_print_insn()
210 const struct btf *btf; member
/linux-6.12.1/include/linux/
Dbtf.h525 static inline const struct bpf_struct_ops_desc *bpf_struct_ops_find(struct btf *btf, u32 type_id) in bpf_struct_ops_find()
585 static inline const struct btf_type *btf_type_by_id(const struct btf *btf, in btf_type_by_id()
591 static inline void btf_set_base_btf(struct btf *btf, const struct btf *base_btf) in btf_set_base_btf()
595 static inline int btf_relocate(void *log, struct btf *btf, const struct btf *base_btf, in btf_relocate()
612 static inline const char *btf_name_by_offset(const struct btf *btf, in btf_name_by_offset()
617 static inline u32 *btf_kfunc_id_set_contains(const struct btf *btf, in btf_kfunc_id_set_contains()
629 static inline s32 btf_find_dtor_kfunc(struct btf *btf, u32 btf_id) in btf_find_dtor_kfunc()
638 static inline struct btf_struct_meta *btf_find_struct_meta(const struct btf *btf, u32 btf_id) in btf_find_struct_meta()
643 btf_is_prog_ctx_type(struct bpf_verifier_log *log, const struct btf *btf, in btf_is_prog_ctx_type()
658 static inline int btf_check_iter_arg(struct btf *btf, const struct btf_type *func, int arg_idx) in btf_check_iter_arg()
[all …]
/linux-6.12.1/tools/perf/util/
Dbpf-event.c98 struct btf *btf) in perf_env__fetch_btf()
124 struct btf *btf, in synthesize_bpf_prog_name()
177 struct btf *btf = NULL; in perf_event__synthesize_one_bpf_prog() local
455 struct btf *btf = NULL; in perf_env__add_bpf_info() local
556 struct btf *btf = NULL; in __bpf_event__print_bpf_prog_info() local

1234