Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/tools/lib/bpf/
H A Dbtf.h23 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 …]
H A Dbtf.c790 struct btf *btf__parse_elf(const char *path, struct btf_ext **btf_ext) in btf__parse_elf() argument
851 } else if (btf_ext && strcmp(name, BTF_EXT_ELF_SEC) == 0) { in btf__parse_elf()
884 if (btf_ext && btf_ext_data) { in btf__parse_elf()
885 *btf_ext = btf_ext__new(btf_ext_data->d_buf, in btf__parse_elf()
887 if (IS_ERR(*btf_ext)) in btf__parse_elf()
889 } else if (btf_ext) { in btf__parse_elf()
890 *btf_ext = NULL; in btf__parse_elf()
905 if (btf_ext && IS_ERR(*btf_ext)) { in btf__parse_elf()
907 err = PTR_ERR(*btf_ext); in btf__parse_elf()
976 struct btf *btf__parse(const char *path, struct btf_ext **btf_ext) in btf__parse() argument
[all …]
H A Dbtf_dump.c58 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()
H A Dlibbpf_internal.h218 struct btf_ext { struct
H A Dlibbpf.c469 struct btf_ext *btf_ext; member
2471 obj->btf_ext = btf_ext__new(btf_ext_data->d_buf, in bpf_object__init_btf()
2473 if (IS_ERR(obj->btf_ext)) { in bpf_object__init_btf()
2475 BTF_EXT_ELF_SEC, PTR_ERR(obj->btf_ext)); in bpf_object__init_btf()
2476 obj->btf_ext = NULL; in bpf_object__init_btf()
2526 if (obj->btf_ext && obj->btf_ext->core_relo_info.len) in bpf_object__load_vmlinux_btf()
5903 if (obj->btf_ext->core_relo_info.len == 0) in bpf_object__relocate_core()
5921 seg = &obj->btf_ext->core_relo_info; in bpf_object__relocate_core()
6131 if (!obj->btf_ext || !kernel_supports(FEAT_BTF_FUNC)) in reloc_prog_func_and_line_info()
6140 err = adjust_prog_btf_ext_info(obj, prog, &obj->btf_ext->func_info, in reloc_prog_func_and_line_info()
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/
H A Dbtf.c4085 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()