| /kernel/linux/linux-6.6/tools/lib/bpf/ |
| D | btf.c | 31 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 102 int start_id; 107 int start_str_off; 113 void *strs_data; [all …]
|
| /kernel/linux/linux-5.10/tools/lib/bpf/ |
| D | btf.c | 30 struct btf { struct 32 void *raw_data; 34 void *raw_data_swapped; 35 __u32 raw_size; 59 * and cached again if user calls btf__get_raw_data(), at which point argument 76 struct btf_header *hdr; argument 81 /* type ID to `struct btf_type *` lookup index */ argument 82 __u32 *type_offs; 83 size_t type_offs_cap; 84 __u32 nr_types; [all …]
|
| /kernel/linux/linux-6.6/kernel/bpf/ |
| D | btf.c | 244 struct btf { struct 246 struct btf_type **types; argument 251 struct btf_header hdr; argument 258 struct btf_kfunc_set_tab *kfunc_set_tab; argument 259 struct btf_id_dtor_kfunc_tab *dtor_kfunc_tab; argument 260 struct btf_struct_metas *struct_meta_tab; argument 263 struct btf *base_btf; argument 267 bool kernel_btf; argument 303 struct btf *btf; member 409 const struct btf *btf; member [all …]
|
| /kernel/linux/linux-5.10/kernel/bpf/ |
| D | btf.c | 199 struct btf { struct 201 struct btf_type **types; argument 206 struct btf_header hdr; argument 221 const struct btf_type *t; argument 248 struct btf *btf; member 344 const struct btf *btf; member 453 s32 btf_find_by_name_kind(const struct btf *btf, const char *name, u8 kind) in btf_find_by_name_kind() 472 const struct btf_type *btf_type_skip_modifiers(const struct btf *btf, in btf_type_skip_modifiers() 488 const struct btf_type *btf_type_resolve_ptr(const struct btf *btf, in btf_type_resolve_ptr() 500 const struct btf_type *btf_type_resolve_func_ptr(const struct btf *btf, in btf_type_resolve_func_ptr() [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
| D | btf_dump.c | 26 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 …]
|
| D | libbpf_str.c | 23 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 163 struct btf *btf; in test_libbpf_bpf_prog_type_str() local
|
| D | btf_write.c | 7 static void gen_btf(struct btf *btf) in gen_btf() 357 struct btf *btf; in test_btf_add() local
|
| D | linked_list.c | 240 struct btf *btf; in init_btf() local 266 struct btf *btf; in list_and_rb_node_same_struct() local 318 struct btf *btf = NULL; in test_btf() local
|
| D | ctx_rewrite.c | 249 static int find_field_offset_aux(struct btf *btf, int btf_id, char *field_name, int off) in find_field_offset_aux() 288 static int find_field_offset(struct btf *btf, char *pattern, regmatch_t *matches) in find_field_offset() 487 static bool match_pattern(struct btf *btf, char *pattern, char *text, char *reg_map[][2]) in match_pattern() 738 static void match_program(struct btf *btf, in match_program() 801 static void run_one_testcase(struct btf *btf, struct test_case *test) in run_one_testcase() 896 struct btf *btf; in test_ctx_rewrite() local
|
| D | libbpf_probes.c | 9 struct btf *btf; in test_libbpf_probe_prog_types() local 47 struct btf *btf; in test_libbpf_probe_map_types() local
|
| /kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
| D | btf_helpers.c | 81 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()
|
| /kernel/linux/linux-5.10/kernel/bpf/preload/iterators/ |
| D | iterators.bpf.c | 35 struct btf { struct 37 struct btf_type **types; argument 38 struct btf_header hdr; argument 47 struct btf *btf; argument 60 static const char *get_name(struct btf *btf, long btf_id, const char *fallback) in get_name()
|
| /kernel/linux/linux-6.6/kernel/bpf/preload/iterators/ |
| D | iterators.bpf.c | 34 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()
|
| /kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
| D | btf_dump.c | 27 static int btf_dump_all_types(const struct btf *btf, in btf_dump_all_types() 52 struct btf *btf = NULL; in test_btf_dump_case() local 138 struct btf *btf = NULL; in test_btf_dump_incremental() local
|
| /kernel/linux/linux-6.6/tools/perf/util/ |
| D | bpf-event.c | 97 struct btf *btf) in perf_env__fetch_btf() 123 struct btf *btf, in synthesize_bpf_prog_name() 176 struct btf *btf = NULL; in perf_event__synthesize_one_bpf_prog() local 454 struct btf *btf = NULL; in perf_env__add_bpf_info() local 558 struct btf *btf = NULL; in __bpf_event__print_bpf_prog_info() local
|
| /kernel/linux/linux-5.10/tools/perf/util/ |
| D | bpf-event.c | 96 struct btf *btf) in perf_env__fetch_btf() 122 struct btf *btf, in synthesize_bpf_prog_name() 175 struct btf *btf = NULL; in perf_event__synthesize_one_bpf_prog() local 443 struct btf *btf = NULL; in perf_env__add_bpf_info() local 543 struct btf *btf = NULL; in __bpf_event__print_bpf_prog_info() local
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | btf.h | 511 static inline const struct btf_type *btf_type_by_id(const struct btf *btf, in btf_type_by_id() 516 static inline const char *btf_name_by_offset(const struct btf *btf, in btf_name_by_offset() 521 static inline u32 *btf_kfunc_id_set_contains(const struct btf *btf, in btf_kfunc_id_set_contains() 533 static inline s32 btf_find_dtor_kfunc(struct btf *btf, u32 btf_id) in btf_find_dtor_kfunc() 542 static inline struct btf_struct_meta *btf_find_struct_meta(const struct btf *btf, u32 btf_id) in btf_find_struct_meta() 547 btf_get_prog_ctx_type(struct bpf_verifier_log *log, const struct btf *btf, in btf_get_prog_ctx_type() 564 static inline bool btf_type_is_struct_ptr(struct btf *btf, const struct btf_type *t) in btf_type_is_struct_ptr()
|
| /kernel/linux/linux-6.6/tools/bpf/bpftool/ |
| D | btf_dumper.c | 211 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()
|
| D | gen.c | 125 struct btf *btf, 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() 247 struct btf *btf = bpf_object__btf(obj); in codegen_datasecs() local 288 static bool btf_is_ptr_to_func_proto(const struct btf *btf, in btf_is_ptr_to_func_proto() 296 struct btf *btf = bpf_object__btf(obj); in codegen_subskel_datasecs() local 469 struct btf *btf = bpf_object__btf(obj); in codegen_asserts() local 918 struct btf *btf; in do_skeleton() local 1290 struct btf *btf; in do_subskeleton() local 1637 static int btf_save_raw(const struct btf *btf, const char *path) in btf_save_raw() 1804 struct btf *btf = info->src_btf; in btfgen_record_field_relo() local [all …]
|
| D | btf.c | 90 static const char *btf_str(const struct btf *btf, __u32 off) in btf_str() 102 static int dump_btf_type(const struct btf *btf, __u32 id, in dump_btf_type() 418 static int dump_btf_raw(const struct btf *btf, in dump_btf_raw() 463 static int dump_btf_c(const struct btf *btf, in dump_btf_c() 552 struct btf *btf = NULL, *base = NULL; in do_dump() local
|
| D | map.c | 133 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
|
| /kernel/linux/linux-5.10/tools/bpf/bpftool/ |
| D | btf_dumper.c | 175 static bool is_str_array(const struct btf *btf, const struct btf_array *arr, in is_str_array() 581 static int __btf_dumper_type_only(const struct btf *btf, __u32 type_id, in __btf_dumper_type_only() 670 static int btf_dump_func(const struct btf *btf, char *func_sig, in btf_dump_func() 707 void btf_dumper_type_only(const struct btf *btf, __u32 type_id, char *func_sig, in btf_dumper_type_only() 729 void btf_dump_linfo_plain(const struct btf *btf, in btf_dump_linfo_plain() 761 void btf_dump_linfo_json(const struct btf *btf, in btf_dump_linfo_json()
|
| D | btf.c | 93 static const char *btf_str(const struct btf *btf, __u32 off) in btf_str() 100 static int dump_btf_type(const struct btf *btf, __u32 id, in dump_btf_type() 342 static int dump_btf_raw(const struct btf *btf, in dump_btf_raw() 381 static int dump_btf_c(const struct btf *btf, in dump_btf_c() 427 struct btf *btf = NULL; in do_dump() local
|
| D | gen.c | 95 struct btf *btf, in codegen_datasec_def() 188 struct btf *btf = bpf_object__btf(obj); in codegen_datasecs() local 282 struct btf *btf; in do_skeleton() local
|
| D | map.c | 159 unsigned char *value, struct btf *btf) in print_entry_json() 748 struct bpf_map_info *map_info, struct btf *btf, in dump_map_elem() 797 struct btf *btf = NULL; in get_map_kv_btf() local 819 static void free_map_kv_btf(struct btf *btf) in free_map_kv_btf() 837 struct btf *btf = NULL; in map_dump() local 1041 struct btf *btf = NULL; in print_key_value() local
|