Searched refs:btf_ext (Results 1 – 8 of 8) sorted by relevance
/linux-6.1.9/tools/lib/bpf/ |
D | btf.c | 910 struct btf_ext **btf_ext) in btf_parse_elf() argument 979 } else if (btf_ext && strcmp(name, BTF_EXT_ELF_SEC) == 0) { in btf_parse_elf() 1013 if (btf_ext && btf_ext_data) { in btf_parse_elf() 1014 *btf_ext = btf_ext__new(btf_ext_data->d_buf, btf_ext_data->d_size); in btf_parse_elf() 1015 err = libbpf_get_error(*btf_ext); in btf_parse_elf() 1018 } else if (btf_ext) { in btf_parse_elf() 1019 *btf_ext = NULL; in btf_parse_elf() 1029 if (btf_ext) in btf_parse_elf() 1030 btf_ext__free(*btf_ext); in btf_parse_elf() 1036 struct btf *btf__parse_elf(const char *path, struct btf_ext **btf_ext) in btf__parse_elf() argument [all …]
|
D | btf.h | 24 struct btf_ext; 110 LIBBPF_API struct btf *btf__parse(const char *path, struct btf_ext **btf_ext); 112 LIBBPF_API struct btf *btf__parse_elf(const char *path, struct btf_ext **btf_ext); 145 LIBBPF_API struct btf_ext *btf_ext__new(const __u8 *data, __u32 size); 146 LIBBPF_API void btf_ext__free(struct btf_ext *btf_ext); 147 LIBBPF_API const void *btf_ext__raw_data(const struct btf_ext *btf_ext, __u32 *size); 225 struct btf_ext *btf_ext; member
|
D | libbpf_legacy.h | 126 struct btf_ext; 134 LIBBPF_API const void *btf_ext__get_raw_data(const struct btf_ext *btf_ext, __u32 *size);
|
D | linker.c | 59 struct btf_ext *btf_ext; member 148 struct btf_ext *btf_ext; member 198 btf_ext__free(linker->btf_ext); in bpf_linker__free() 462 btf_ext__free(obj.btf_ext); in bpf_linker__add_file() 666 obj->btf_ext = btf_ext__new(data->d_buf, shdr->sh_size); in linker_load_obj_file() 667 err = libbpf_get_error(obj->btf_ext); in linker_load_obj_file() 963 if (!obj->btf_ext) in linker_sanity_check_btf_ext() 970 err = err ?: btf_ext_visit_type_ids(obj->btf_ext, check_btf_type_id, obj->btf); in linker_sanity_check_btf_ext() 971 err = err ?: btf_ext_visit_str_offs(obj->btf_ext, check_btf_str_off, obj->btf); in linker_sanity_check_btf_ext() 2435 if (!obj->btf_ext) in linker_append_btf_ext() [all …]
|
D | libbpf_internal.h | 440 struct btf_ext { struct 477 int btf_ext_visit_type_ids(struct btf_ext *btf_ext, type_id_visit_fn visit, void *ctx); 478 int btf_ext_visit_str_offs(struct btf_ext *btf_ext, str_off_visit_fn visit, void *ctx);
|
D | libbpf.c | 636 struct btf_ext *btf_ext; member 2788 obj->btf_ext = btf_ext__new(btf_ext_data->d_buf, btf_ext_data->d_size); in bpf_object__init_btf() 2789 err = libbpf_get_error(obj->btf_ext); in bpf_object__init_btf() 2793 obj->btf_ext = NULL; in bpf_object__init_btf() 2798 ext_segs[0] = &obj->btf_ext->func_info; in bpf_object__init_btf() 2799 ext_segs[1] = &obj->btf_ext->line_info; in bpf_object__init_btf() 2800 ext_segs[2] = &obj->btf_ext->core_relo_info; in bpf_object__init_btf() 2973 if (obj->btf_ext && obj->btf_ext->core_relo_info.len && !obj->btf_custom_path) in obj_needs_vmlinux_btf() 5663 if (obj->btf_ext->core_relo_info.len == 0) in bpf_object__relocate_core() 5681 seg = &obj->btf_ext->core_relo_info; in bpf_object__relocate_core() [all …]
|
/linux-6.1.9/tools/bpf/bpftool/ |
D | gen.c | 2052 struct btf_ext *btf_ext = NULL; in btfgen_record_obj() local 2058 btf = btf__parse(obj_path, &btf_ext); in btfgen_record_obj() 2065 if (!btf_ext) { in btfgen_record_obj() 2072 if (btf_ext->core_relo_info.len == 0) { in btfgen_record_obj() 2083 seg = &btf_ext->core_relo_info; in btfgen_record_obj() 2119 btf_ext__free(btf_ext); in btfgen_record_obj()
|
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/ |
D | btf.c | 4677 struct btf_ext *btf_ext = NULL; in do_test_file() local 4692 btf = btf__parse_elf(test->file, &btf_ext); in do_test_file() 4704 has_btf_ext = btf_ext != NULL; in do_test_file() 4705 btf_ext__free(btf_ext); in do_test_file()
|