/Linux-v5.15/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__get_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 …]
|
D | relo_core.c | 26 const struct btf *btf; member 43 static bool is_flex_arr(const struct btf *btf, in is_flex_arr() 153 static int bpf_core_parse_spec(const struct btf *btf, in bpf_core_parse_spec()
|
D | relo_core.h | 79 const struct btf *btf; member
|
D | libbpf.c | 429 struct btf *btf; member 496 struct btf *btf; member 772 find_member_by_name(const struct btf *btf, const struct btf_type *t, in find_member_by_name() 791 find_struct_ops_kern_types(const struct btf *btf, const char *tname, in find_struct_ops_kern_types() 856 const struct btf *btf, in bpf_map__init_kern_struct_ops() 1013 const struct btf *btf; in bpf_object__init_struct_ops_maps() local 1940 skip_mods_and_typedefs(const struct btf *btf, __u32 id, __u32 *res_id) in skip_mods_and_typedefs() 1957 resolve_func_ptr(const struct btf *btf, __u32 id, __u32 *res_id) in resolve_func_ptr() 2006 static bool get_map_field_int(const char *map_name, const struct btf *btf, in get_map_field_int() 2053 int parse_btf_map_def(const char *map_name, struct btf *btf, in parse_btf_map_def() [all …]
|
D | linker.c | 59 struct btf *btf; member 148 struct btf *btf; member 922 struct btf *btf = ctx; in check_btf_type_id() local 932 struct btf *btf = ctx; in check_btf_str_off() local 2654 struct btf *btf = linker->btf; in finalize_btf() local
|
/Linux-v5.15/kernel/bpf/ |
D | btf.c | 200 struct btf { struct 202 struct btf_type **types; argument 207 struct btf_header hdr; argument 216 struct btf *base_btf; argument 220 bool kernel_btf; argument 256 struct btf *btf; member 353 const struct btf *btf; member 462 u32 btf_nr_types(const struct btf *btf) in btf_nr_types() 474 s32 btf_find_by_name_kind(const struct btf *btf, const char *name, u8 kind) in btf_find_by_name_kind() 494 const struct btf_type *btf_type_skip_modifiers(const struct btf *btf, in btf_type_skip_modifiers() [all …]
|
/Linux-v5.15/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() 53 struct btf *btf = NULL; in test_btf_dump_case() local 138 struct btf *btf = NULL; in test_btf_dump_incremental() local 246 static int btf_dump_data(struct btf *btf, struct btf_dump *d, in btf_dump_data() 327 static void test_btf_dump_int_data(struct btf *btf, struct btf_dump *d, in test_btf_dump_int_data() 370 static void test_btf_dump_float_data(struct btf *btf, struct btf_dump *d, in test_btf_dump_float_data() 415 static void test_btf_dump_char_data(struct btf *btf, struct btf_dump *d, in test_btf_dump_char_data() 437 static void test_btf_dump_typedef_data(struct btf *btf, struct btf_dump *d, in test_btf_dump_typedef_data() 492 static void test_btf_dump_enum_data(struct btf *btf, struct btf_dump *d, in test_btf_dump_enum_data() 528 static void test_btf_dump_struct_data(struct btf *btf, struct btf_dump *d, in test_btf_dump_struct_data() [all …]
|
D | btf_write.c | 13 struct btf *btf; in test_btf_write() local
|
D | btf_endian.c | 18 struct btf *btf = NULL, *swap_btf = NULL; in test_btf_endian() local
|
D | ksyms_btf.c | 115 struct btf *btf; in test_ksyms_btf() local
|
D | resolve_btfids.c | 100 struct btf *btf; in resolve_symbols() local
|
/Linux-v5.15/tools/testing/selftests/bpf/ |
D | btf_helpers.c | 78 static const char *btf_str(const struct btf *btf, __u32 off) in btf_str() 85 int fprintf_btf_type_raw(FILE *out, const struct btf *btf, __u32 id) in fprintf_btf_type_raw() 190 const char *btf_type_raw_dump(const struct btf *btf, int type_id) in btf_type_raw_dump() 208 int btf_validate_raw(struct btf *btf, int nr_types, const char *exp_types[]) in btf_validate_raw() 231 const char *btf_type_c_dump(const struct btf *btf) in btf_type_c_dump()
|
D | btf_helpers.h | 13 #define VALIDATE_RAW_BTF(btf, raw_types...) \ argument
|
/Linux-v5.15/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()
|
/Linux-v5.15/tools/perf/util/ |
D | bpf-event.c | 26 struct btf *btf; in btf__load_from_kernel_by_id() local 107 struct btf *btf) in perf_env__fetch_btf() 129 struct btf *btf, in synthesize_bpf_prog_name() 182 struct btf *btf = NULL; in perf_event__synthesize_one_bpf_prog() local 457 struct btf *btf = NULL; in perf_env__add_bpf_info() local 558 struct btf *btf = NULL; in bpf_event__print_bpf_prog_info() local
|
/Linux-v5.15/tools/bpf/bpftool/ |
D | btf_dumper.c | 177 static bool is_str_array(const struct btf *btf, const struct btf_array *arr, in is_str_array() 583 static int __btf_dumper_type_only(const struct btf *btf, __u32 type_id, in __btf_dumper_type_only() 673 static int btf_dump_func(const struct btf *btf, char *func_sig, in btf_dump_func() 710 void btf_dumper_type_only(const struct btf *btf, __u32 type_id, char *func_sig, in btf_dumper_type_only() 732 void btf_dump_linfo_plain(const struct btf *btf, in btf_dump_linfo_plain() 764 void btf_dump_linfo_json(const struct btf *btf, in btf_dump_linfo_json()
|
D | btf.c | 96 static const char *btf_str(const struct btf *btf, __u32 off) in btf_str() 108 static int dump_btf_type(const struct btf *btf, __u32 id, in dump_btf_type() 362 static int dump_btf_raw(const struct btf *btf, in dump_btf_raw() 407 static int dump_btf_c(const struct btf *btf, in dump_btf_c() 453 struct btf *btf = NULL, *base = NULL; in do_dump() local
|
D | map.c | 160 unsigned char *value, struct btf *btf) in print_entry_json() 749 struct bpf_map_info *map_info, struct btf *btf, in dump_map_elem() 798 struct btf *btf = NULL; in get_map_kv_btf() local 821 static void free_map_kv_btf(struct btf *btf) in free_map_kv_btf() 839 struct btf *btf = NULL; in map_dump() local 1043 struct btf *btf; in print_key_value() local
|
D | gen.c | 96 struct btf *btf, in codegen_datasec_def() 195 struct btf *btf = bpf_object__btf(obj); in codegen_datasecs() local 610 struct btf *btf; in do_skeleton() local
|
D | main.h | 207 const struct btf *btf, in disasm_print_insn() 229 const struct btf *btf; member
|
D | xlated_dumper.c | 223 struct btf *btf = dd->btf; in dump_xlated_json() local 308 struct btf *btf = dd->btf; in dump_xlated_plain() local
|
D | xlated_dumper.h | 22 struct btf *btf; member
|
D | jit_disasm.c | 78 const struct btf *btf, in disasm_print_insn()
|
/Linux-v5.15/include/linux/ |
D | btf.h | 229 static inline const struct btf_type *btf_type_by_id(const struct btf *btf, in btf_type_by_id() 234 static inline const char *btf_name_by_offset(const struct btf *btf, in btf_name_by_offset()
|
/Linux-v5.15/net/ipv4/ |
D | bpf_tcp_ca.c | 35 static int bpf_tcp_ca_init(struct btf *btf) in bpf_tcp_ca_init() 102 const struct btf *btf, in bpf_tcp_ca_btf_struct_access()
|