Home
last modified time | relevance | path

Searched refs:btf_ext (Results 1 – 4 of 4) 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 Dlibbpf.c728 struct btf_ext *btf_ext; member
3290 obj->btf_ext = btf_ext__new(btf_ext_data->d_buf, btf_ext_data->d_size); in bpf_object__init_btf()
3291 err = libbpf_get_error(obj->btf_ext); in bpf_object__init_btf()
3295 obj->btf_ext = NULL; in bpf_object__init_btf()
3300 ext_segs[0] = &obj->btf_ext->func_info; in bpf_object__init_btf()
3301 ext_segs[1] = &obj->btf_ext->line_info; in bpf_object__init_btf()
3302 ext_segs[2] = &obj->btf_ext->core_relo_info; in bpf_object__init_btf()
3500 if (obj->btf_ext && obj->btf_ext->core_relo_info.len && !obj->btf_custom_path) in obj_needs_vmlinux_btf()
6036 if (obj->btf_ext->core_relo_info.len == 0) in bpf_object__relocate_core()
6054 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