Home
last modified time | relevance | path

Searched refs:btf_ext (Results 1 – 6 of 6) sorted by relevance

/linux/tools/lib/bpf/
H A Dbtf.h25 struct btf_ext;
137 LIBBPF_API struct btf *btf__parse(const char *path, struct btf_ext **btf_ext);
139 LIBBPF_API struct btf *btf__parse_elf(const char *path, struct btf_ext **btf_ext);
172 LIBBPF_API struct btf_ext *btf_ext__new(const __u8 *data, __u32 size);
173 LIBBPF_API void btf_ext__free(struct btf_ext *btf_ext);
174 LIBBPF_API const void *btf_ext__raw_data(const struct btf_ext *btf_ext, __u3
253 struct btf_ext *btf_ext; global() member
[all...]
H A Dlibbpf_legacy.h126 struct btf_ext;
134 LIBBPF_API const void *btf_ext__get_raw_data(const struct btf_ext *btf_ext, __u32 *size);
H A Dlinker.c64 struct btf_ext *btf_ext; member
154 struct btf_ext *btf_ext; member
208 btf_ext__free(linker->btf_ext); in bpf_linker__free()
509 btf_ext__free(obj.btf_ext); in bpf_linker_add_file()
794 obj->btf_ext = btf_ext__new(data->d_buf, shdr->sh_size); in linker_load_obj_file()
795 err = libbpf_get_error(obj->btf_ext); in linker_load_obj_file()
1125 if (!obj->btf_ext) in linker_sanity_check_btf_ext()
1132 err = err ?: btf_ext_visit_type_ids(obj->btf_ext, check_btf_type_id, obj->btf); in linker_sanity_check_btf_ext()
1133 err = err ?: btf_ext_visit_str_offs(obj->btf_ext, check_btf_str_off, obj->btf); in linker_sanity_check_btf_ext()
2638 if (!obj->btf_ext) in linker_append_btf_ext()
[all …]
H A Dlibbpf_internal.h498 struct btf_ext { struct
585 int btf_ext_visit_type_ids(struct btf_ext *btf_ext, type_id_visit_fn visit, void *ctx);
586 int btf_ext_visit_str_offs(struct btf_ext *btf_ext, str_off_visit_fn visit, void *ctx);
H A Dlibbpf.c729 struct btf_ext *btf_ext; member
3293 obj->btf_ext = btf_ext__new(btf_ext_data->d_buf, btf_ext_data->d_size); in bpf_object__init_btf()
3294 err = libbpf_get_error(obj->btf_ext); in bpf_object__init_btf()
3298 obj->btf_ext = NULL; in bpf_object__init_btf()
3303 ext_segs[0] = &obj->btf_ext->func_info; in bpf_object__init_btf()
3304 ext_segs[1] = &obj->btf_ext->line_info; in bpf_object__init_btf()
3305 ext_segs[2] = &obj->btf_ext->core_relo_info; in bpf_object__init_btf()
3503 if (obj->btf_ext && obj->btf_ext->core_relo_info.len && !obj->btf_custom_path) in obj_needs_vmlinux_btf()
6040 if (obj->btf_ext->core_relo_info.len == 0) in bpf_object__relocate_core()
6058 seg = &obj->btf_ext->core_relo_info; in bpf_object__relocate_core()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbtf.c4832 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