Home
last modified time | relevance | path

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

/linux/tools/lib/bpf/
A Dbtf.h24 struct btf_ext;
110 LIBBPF_API struct btf *btf__parse(const char *path, struct btf_ext **btf_ext);
112 LIBBPF_API struct btf *btf__parse_elf(const char *path, struct btf_ext **btf_ext);
161 LIBBPF_API void btf_ext__free(struct btf_ext *btf_ext);
162 LIBBPF_API const void *btf_ext__get_raw_data(const struct btf_ext *btf_ext,
166 const struct btf_ext *btf_ext,
171 const struct btf_ext *btf_ext,
174 LIBBPF_API __u32 btf_ext__func_info_rec_size(const struct btf_ext *btf_ext);
175 LIBBPF_API __u32 btf_ext__line_info_rec_size(const struct btf_ext *btf_ext);
252 LIBBPF_API int btf__dedup(struct btf *btf, struct btf_ext *btf_ext,
[all …]
A Dbtf.c885 struct btf_ext **btf_ext) in btf_parse_elf() argument
1004 if (btf_ext) in btf_parse_elf()
1099 if (btf_ext) in btf_parse()
2542 static int btf_ext_setup_info(struct btf_ext *btf_ext, in btf_ext_setup_info() argument
2706 void btf_ext__free(struct btf_ext *btf_ext) in btf_ext__free() argument
2716 struct btf_ext *btf_ext; in btf_ext__new() local
2723 btf_ext = calloc(1, sizeof(struct btf_ext)); in btf_ext__new()
2820 const struct btf_ext *btf_ext, in btf_ext__reloc_func_info() argument
2829 const struct btf_ext *btf_ext, in btf_ext__reloc_line_info() argument
3064 struct btf_ext *btf_ext; member
[all …]
A Dlinker.c59 struct btf_ext *btf_ext; member
148 struct btf_ext *btf_ext; member
198 btf_ext__free(linker->btf_ext); in bpf_linker__free()
461 btf_ext__free(obj.btf_ext); in bpf_linker__add_file()
666 err = libbpf_get_error(obj->btf_ext); in linker_load_obj_file()
967 if (!obj->btf_ext) in linker_sanity_check_btf_ext()
2434 if (!obj->btf_ext) in linker_append_btf_ext()
2437 rec_sz = obj->btf_ext->func_info.rec_size; in linker_append_btf_ext()
2707 if (linker->btf_ext) { in finalize_btf()
2887 err = libbpf_get_error(linker->btf_ext); in finalize_btf_ext()
[all …]
A Dlibbpf_internal.h394 struct btf_ext { struct
431 int btf_ext_visit_type_ids(struct btf_ext *btf_ext, type_id_visit_fn visit, void *ctx);
432 int btf_ext_visit_str_offs(struct btf_ext *btf_ext, str_off_visit_fn visit, void *ctx);
A Dbtf_dump.c80 const struct btf_ext *btf_ext; member
149 const struct btf_ext *btf_ext, in btf_dump__new() argument
161 d->btf_ext = btf_ext; in btf_dump__new()
A Dlibbpf.c531 struct btf_ext *btf_ext; member
2700 err = libbpf_get_error(obj->btf_ext); in bpf_object__init_btf()
2704 obj->btf_ext = NULL; in bpf_object__init_btf()
2853 if (obj->btf_ext && obj->btf_ext->core_relo_info.len && !obj->btf_custom_path) in obj_needs_vmlinux_btf()
5475 if (obj->btf_ext->core_relo_info.len == 0) in bpf_object__relocate_core()
5493 seg = &obj->btf_ext->core_relo_info; in bpf_object__relocate_core()
5727 if (!obj->btf_ext || !kernel_supports(obj, FEAT_BTF_FUNC)) in reloc_prog_func_and_line_info()
5736 err = adjust_prog_btf_ext_info(obj, prog, &obj->btf_ext->func_info, in reloc_prog_func_and_line_info()
5764 err = adjust_prog_btf_ext_info(obj, prog, &obj->btf_ext->line_info, in reloc_prog_func_and_line_info()
6082 if (obj->btf_ext) { in bpf_object__relocate()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
A Dbtf.c4515 struct btf_ext *btf_ext = NULL; in do_test_file() local
4530 btf = btf__parse_elf(test->file, &btf_ext); in do_test_file()
4542 has_btf_ext = btf_ext != NULL; in do_test_file()
4543 btf_ext__free(btf_ext); in do_test_file()

Completed in 63 milliseconds