Home
last modified time | relevance | path

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

/tools/lib/bpf/
Dbtf.h24 struct btf_ext;
70 struct btf_ext **btf_ext);
89 LIBBPF_API struct btf_ext *btf_ext__new(__u8 *data, __u32 size);
90 LIBBPF_API void btf_ext__free(struct btf_ext *btf_ext);
91 LIBBPF_API const void *btf_ext__get_raw_data(const struct btf_ext *btf_ext,
94 const struct btf_ext *btf_ext,
98 const struct btf_ext *btf_ext,
101 LIBBPF_API __u32 btf_ext__func_info_rec_size(const struct btf_ext *btf_ext);
102 LIBBPF_API __u32 btf_ext__line_info_rec_size(const struct btf_ext *btf_ext);
109 LIBBPF_API int btf__dedup(struct btf *btf, struct btf_ext *btf_ext,
[all …]
Dbtf.c382 struct btf *btf__parse_elf(const char *path, struct btf_ext **btf_ext) in btf__parse_elf() argument
447 } else if (btf_ext && strcmp(name, BTF_EXT_ELF_SEC) == 0) { in btf__parse_elf()
468 if (btf_ext && btf_ext_data) { in btf__parse_elf()
469 *btf_ext = btf_ext__new(btf_ext_data->d_buf, in btf__parse_elf()
471 if (IS_ERR(*btf_ext)) in btf__parse_elf()
473 } else if (btf_ext) { in btf__parse_elf()
474 *btf_ext = NULL; in btf__parse_elf()
489 if (btf_ext && IS_ERR(*btf_ext)) { in btf__parse_elf()
491 err = PTR_ERR(*btf_ext); in btf__parse_elf()
775 static int btf_ext_setup_info(struct btf_ext *btf_ext, in btf_ext_setup_info() argument
[all …]
Dbtf_dump.c57 const struct btf_ext *btf_ext; member
120 const struct btf_ext *btf_ext, in btf_dump__new() argument
132 d->btf_ext = btf_ext; in btf_dump__new()
Dlibbpf_internal.h90 struct btf_ext { struct
Dlibbpf.c287 struct btf_ext *btf_ext; member
1424 if (!obj->btf_ext) in bpf_object__sanitize_btf_ext()
1428 btf_ext__free(obj->btf_ext); in bpf_object__sanitize_btf_ext()
1429 obj->btf_ext = NULL; in bpf_object__sanitize_btf_ext()
1465 obj->btf_ext = btf_ext__new(btf_ext_data->d_buf, in bpf_object__init_btf()
1467 if (IS_ERR(obj->btf_ext)) { in bpf_object__init_btf()
1469 BTF_EXT_ELF_SEC, PTR_ERR(obj->btf_ext)); in bpf_object__init_btf()
1470 obj->btf_ext = NULL; in bpf_object__init_btf()
1508 if (obj->btf_ext) { in bpf_object__sanitize_and_load_btf()
1509 btf_ext__free(obj->btf_ext); in bpf_object__sanitize_and_load_btf()
[all …]
/tools/testing/selftests/bpf/
Dtest_btf.c4118 struct btf_ext *btf_ext = NULL; in do_test_file() local
4133 btf = btf__parse_elf(test->file, &btf_ext); in do_test_file()
4144 has_btf_ext = btf_ext != NULL; in do_test_file()
4145 btf_ext__free(btf_ext); in do_test_file()