Searched refs:btf_ext (Results 1 – 7 of 7) sorted by relevance
/linux/tools/lib/bpf/ |
H A D | btf.h | 25 struct btf_ext; 132 LIBBPF_API struct btf *btf__parse(const char *path, struct btf_ext **btf_ext); 134 LIBBPF_API struct btf *btf__parse_elf(const char *path, struct btf_ext **btf_ext); 167 LIBBPF_API struct btf_ext *btf_ext__new(const __u8 *data, __u32 size); 168 LIBBPF_API void btf_ext__free(struct btf_ext *btf_ext); 169 LIBBPF_API const void *btf_ext__raw_data(const struct btf_ext *btf_ext, __u32 *size); 170 LIBBPF_API enum btf_endianness btf_ext__endianness(const struct btf_ext *btf_ext); 171 LIBBPF_API int btf_ext__set_endianness(struct btf_ext *btf_ext, 253 struct btf_ext *btf_ext; member
|
H A D | btf.c | 1194 struct btf_ext **btf_ext) in btf_parse_elf() argument 1270 if (btf_ext && secs.btf_ext_data) { in btf_parse_elf() 1271 *btf_ext = btf_ext__new(secs.btf_ext_data->d_buf, secs.btf_ext_data->d_size); in btf_parse_elf() 1272 if (IS_ERR(*btf_ext)) { in btf_parse_elf() 1273 err = PTR_ERR(*btf_ext); in btf_parse_elf() 1276 } else if (btf_ext) { in btf_parse_elf() 1277 *btf_ext = NULL; in btf_parse_elf() 1287 if (btf_ext) in btf_parse_elf() 1288 btf_ext__free(*btf_ext); in btf_parse_elf() 1295 struct btf *btf__parse_elf(const char *path, struct btf_ext **btf_ext) in btf__parse_elf() argument [all …]
|
H A 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);
|
H A D | linker.c | 65 struct btf_ext *btf_ext; member 155 struct btf_ext *btf_ext; member 209 btf_ext__free(linker->btf_ext); in bpf_linker__free() 510 btf_ext__free(obj.btf_ext); in bpf_linker_add_file() 795 obj->btf_ext = btf_ext__new(data->d_buf, shdr->sh_size); in linker_load_obj_file() 796 err = libbpf_get_error(obj->btf_ext); in linker_load_obj_file() 1126 if (!obj->btf_ext) in linker_sanity_check_btf_ext() 1133 err = err ?: btf_ext_visit_type_ids(obj->btf_ext, check_btf_type_i in linker_sanity_check_btf_ext() [all...] |
H A D | libbpf.c | 709 struct btf_ext *btf_ext; member 3262 obj->btf_ext = btf_ext__new(btf_ext_data->d_buf, btf_ext_data->d_size); in bpf_object__init_btf() 3263 err = libbpf_get_error(obj->btf_ext); in bpf_object__init_btf() 3267 obj->btf_ext = NULL; in bpf_object__init_btf() 3272 ext_segs[0] = &obj->btf_ext->func_info; in bpf_object__init_btf() 3273 ext_segs[1] = &obj->btf_ext->line_info; in bpf_object__init_btf() 3274 ext_segs[2] = &obj->btf_ext->core_relo_info; in bpf_object__init_btf() 3472 if (obj->btf_ext && obj->btf_ext->core_relo_info.len && !obj->btf_custom_path) in obj_needs_vmlinux_btf() 5935 if (obj->btf_ext->core_relo_info.len == 0) in bpf_object__relocate_core() 5953 seg = &obj->btf_ext->core_relo_info; in bpf_object__relocate_core() [all …]
|
/linux/tools/bpf/bpftool/ |
H A D | gen.c | 2351 struct btf_ext *btf_ext = NULL; in btfgen_record_obj() local 2357 btf = btf__parse(obj_path, &btf_ext); in btfgen_record_obj() 2364 if (!btf_ext) { in btfgen_record_obj() 2371 if (btf_ext->core_relo_info.len == 0) { in btfgen_record_obj() 2382 seg = &btf_ext->core_relo_info; in btfgen_record_obj() 2418 btf_ext__free(btf_ext); in btfgen_record_obj()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | btf.c | 4832 struct btf_ext *btf_ext = NULL; in do_test_file() 4847 btf = btf__parse_elf(test->file, &btf_ext); in do_test_file() 4859 has_btf_ext = btf_ext != NULL; in do_test_file() 4860 btf_ext__free(btf_ext); in do_test_file() 4817 struct btf_ext *btf_ext = NULL; do_test_file() local
|