Searched refs:btf_ext (Results 1 – 6 of 6) sorted by relevance
/Linux-v5.10/tools/lib/bpf/ |
D | btf.h | 23 struct btf_ext; 36 LIBBPF_API struct btf *btf__parse(const char *path, struct btf_ext **btf_ext); 37 LIBBPF_API struct btf *btf__parse_elf(const char *path, struct btf_ext **btf_ext); 66 LIBBPF_API struct btf_ext *btf_ext__new(__u8 *data, __u32 size); 67 LIBBPF_API void btf_ext__free(struct btf_ext *btf_ext); 68 LIBBPF_API const void *btf_ext__get_raw_data(const struct btf_ext *btf_ext, 72 const struct btf_ext *btf_ext, 77 const struct btf_ext *btf_ext, 80 LIBBPF_API __u32 btf_ext__func_info_rec_size(const struct btf_ext *btf_ext); 81 LIBBPF_API __u32 btf_ext__line_info_rec_size(const struct btf_ext *btf_ext); [all …]
|
D | btf.c | 793 struct btf *btf__parse_elf(const char *path, struct btf_ext **btf_ext) in btf__parse_elf() argument 854 } else if (btf_ext && strcmp(name, BTF_EXT_ELF_SEC) == 0) { in btf__parse_elf() 887 if (btf_ext && btf_ext_data) { in btf__parse_elf() 888 *btf_ext = btf_ext__new(btf_ext_data->d_buf, in btf__parse_elf() 890 if (IS_ERR(*btf_ext)) in btf__parse_elf() 892 } else if (btf_ext) { in btf__parse_elf() 893 *btf_ext = NULL; in btf__parse_elf() 908 if (btf_ext && IS_ERR(*btf_ext)) { in btf__parse_elf() 910 err = PTR_ERR(*btf_ext); in btf__parse_elf() 979 struct btf *btf__parse(const char *path, struct btf_ext **btf_ext) in btf__parse() argument [all …]
|
D | btf_dump.c | 58 const struct btf_ext *btf_ext; member 122 const struct btf_ext *btf_ext, in btf_dump__new() argument 134 d->btf_ext = btf_ext; in btf_dump__new()
|
D | libbpf_internal.h | 218 struct btf_ext { struct
|
D | libbpf.c | 469 struct btf_ext *btf_ext; member 2470 obj->btf_ext = btf_ext__new(btf_ext_data->d_buf, in bpf_object__init_btf() 2472 if (IS_ERR(obj->btf_ext)) { in bpf_object__init_btf() 2474 BTF_EXT_ELF_SEC, PTR_ERR(obj->btf_ext)); in bpf_object__init_btf() 2475 obj->btf_ext = NULL; in bpf_object__init_btf() 2525 if (obj->btf_ext && obj->btf_ext->core_relo_info.len) in bpf_object__load_vmlinux_btf() 5844 if (obj->btf_ext->core_relo_info.len == 0) in bpf_object__relocate_core() 5862 seg = &obj->btf_ext->core_relo_info; in bpf_object__relocate_core() 6064 if (!obj->btf_ext || !kernel_supports(FEAT_BTF_FUNC)) in reloc_prog_func_and_line_info() 6073 err = adjust_prog_btf_ext_info(obj, prog, &obj->btf_ext->func_info, in reloc_prog_func_and_line_info() [all …]
|
/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/ |
D | btf.c | 4085 struct btf_ext *btf_ext = NULL; in do_test_file() local 4100 btf = btf__parse_elf(test->file, &btf_ext); in do_test_file() 4111 has_btf_ext = btf_ext != NULL; in do_test_file() 4112 btf_ext__free(btf_ext); in do_test_file()
|