/linux-6.3-rc2/tools/lib/bpf/ |
A D | btf.c | 31 struct btf { struct 33 void *raw_data; 36 __u32 raw_size; 97 struct btf *base_btf; argument 102 int start_id; 107 int start_str_off; 113 void *strs_data; 117 bool strs_deduped; 120 int fd; 123 int ptr_sz; [all …]
|
A D | relo_core.h | 10 const struct btf *btf; member 30 const struct btf *btf; member
|
A D | relo_core.c | 22 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.3-rc2/kernel/bpf/ |
A D | btf.c | 227 struct btf { struct 246 struct btf *base_btf; argument 250 bool kernel_btf; argument 286 struct btf *btf; member 540 struct btf *btf; in bpf_find_btf_id() local 5269 struct btf *btf; in btf_parse_hdr() local 7185 struct btf *btf; in btf_new_fd() local 7216 struct btf *btf; in btf_get_by_fd() local 7298 struct btf *btf; in btf_get_fd_by_id() local 7340 struct btf *btf; member [all …]
|
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A 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() 530 static void test_btf_dump_enum_data(struct btf *btf, struct btf_dump *d, in test_btf_dump_enum_data() 801 static void test_btf_dump_var_data(struct btf *btf, struct btf_dump *d, in test_btf_dump_var_data() 840 struct btf *btf; in test_btf_dump_datasec_data() local [all …]
|
A 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
|
A D | btf_write.c | 7 static void gen_btf(struct btf *btf) in gen_btf() 357 struct btf *btf; in test_btf_add() local
|
A 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
|
A D | linked_list.c | 246 struct btf *btf; in init_btf() local 271 struct btf *btf = NULL; in test_btf() local
|
A D | btf_endian.c | 18 struct btf *btf = NULL, *swap_btf = NULL; in test_btf_endian() local
|
A D | btf_dedup_split.c | 332 static void btf_add_dup_struct_in_cu(struct btf *btf, int start_id) in btf_add_dup_struct_in_cu()
|
/linux-6.3-rc2/kernel/bpf/preload/iterators/ |
A 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-6.3-rc2/tools/testing/selftests/bpf/ |
A 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()
|
A D | btf_helpers.h | 13 #define VALIDATE_RAW_BTF(btf, raw_types...) \ argument
|
A D | test_cpp.cpp | 101 struct btf *btf; in main() local
|
/linux-6.3-rc2/tools/perf/util/ |
A D | bpf-event.c | 28 struct btf *btf; in btf__load_from_kernel_by_id() local 161 struct btf *btf) in perf_env__fetch_btf() 187 struct btf *btf, in synthesize_bpf_prog_name() 240 struct btf *btf = NULL; in perf_event__synthesize_one_bpf_prog() local 515 struct btf *btf = NULL; in perf_env__add_bpf_info() local 616 struct btf *btf = NULL; in bpf_event__print_bpf_prog_info() local
|
/linux-6.3-rc2/include/linux/ |
A D | btf.h | 510 static inline const struct btf_type *btf_type_by_id(const struct btf *btf, in btf_type_by_id() 515 static inline const char *btf_name_by_offset(const struct btf *btf, in btf_name_by_offset() 520 static inline u32 *btf_kfunc_id_set_contains(const struct btf *btf, in btf_kfunc_id_set_contains() 531 static inline s32 btf_find_dtor_kfunc(struct btf *btf, u32 btf_id) in btf_find_dtor_kfunc() 540 static inline struct btf_struct_meta *btf_find_struct_meta(const struct btf *btf, u32 btf_id) in btf_find_struct_meta() 545 btf_get_prog_ctx_type(struct bpf_verifier_log *log, const struct btf *btf, in btf_get_prog_ctx_type() 562 static inline bool btf_type_is_struct_ptr(struct btf *btf, const struct btf_type *t) in btf_type_is_struct_ptr()
|
/linux-6.3-rc2/tools/bpf/bpftool/ |
A D | gen.c | 125 struct btf *btf, in codegen_datasec_def() 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 1287 struct btf *btf; in do_subskeleton() local 1634 static int btf_save_raw(const struct btf *btf, const char *path) in btf_save_raw() 1801 struct btf *btf = info->src_btf; in btfgen_record_field_relo() local 1864 struct btf *btf = info->src_btf; in btfgen_mark_type_match() local [all …]
|
A 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()
|
A 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
|
A D | map.c | 133 unsigned char *value, struct btf *btf) in print_entry_json() 735 struct bpf_map_info *map_info, struct btf *btf, in dump_map_elem() 782 static int get_map_kv_btf(const struct bpf_map_info *info, struct btf **btf) in get_map_kv_btf() 808 static void free_map_kv_btf(struct btf *btf) in free_map_kv_btf() 820 struct btf *btf = NULL; in map_dump() local 1027 struct btf *btf; in print_key_value() local
|
A D | main.h | 187 const struct btf *btf, in disasm_print_insn() 209 const struct btf *btf; member
|
A D | xlated_dumper.c | 226 struct btf *btf = dd->btf; in dump_xlated_json() local 311 struct btf *btf = dd->btf; in dump_xlated_plain() local
|
A D | xlated_dumper.h | 22 struct btf *btf; member
|
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/ |
A D | bpf_mod_race.c | 94 int BPF_PROG(fexit_module_get, const struct btf *btf, struct module *mod) in BPF_PROG()
|