Home
last modified time | relevance | path

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

/tools/lib/bpf/
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);
A Dbtf.h25 struct btf_ext;
132 LIBBPF_API struct btf *btf__parse(const char *path, struct btf_ext **btf_ext);
134 LIBBPF_API struct btf *btf__parse_elf(const char *path, struct btf_ext **btf_ext);
167 LIBBPF_API struct btf_ext *btf_ext__new(const __u8 *data, __u32 size);
168 LIBBPF_API void btf_ext__free(struct btf_ext *btf_ext);
169 LIBBPF_API const void *btf_ext__raw_data(const struct btf_ext *btf_ext, __u32 *size);
170 LIBBPF_API enum btf_endianness btf_ext__endianness(const struct btf_ext *btf_ext);
171 LIBBPF_API int btf_ext__set_endianness(struct btf_ext *btf_ext,
253 struct btf_ext *btf_ext; member
A Dbtf.c1194 struct btf_ext **btf_ext) in btf_parse_elf() argument
1287 if (btf_ext) in btf_parse_elf()
1414 if (btf_ext) in btf_parse()
3235 static int btf_ext_parse(struct btf_ext *btf_ext) in btf_ext_parse() argument
3292 btf_ext_bswap_info(btf_ext, btf_ext->data); in btf_ext_parse()
3303 void btf_ext__free(struct btf_ext *btf_ext) in btf_ext__free() argument
3317 struct btf_ext *btf_ext; in btf_ext__new() local
3320 btf_ext = calloc(1, sizeof(struct btf_ext)); in btf_ext__new()
3345 struct btf_ext *btf_ext = (struct btf_ext *)btf_ext_ro; in btf_ext_raw_data() local
3630 struct btf_ext *btf_ext; member
[all …]
A Dlinker.c65 struct btf_ext *btf_ext; member
155 struct btf_ext *btf_ext; member
209 btf_ext__free(linker->btf_ext); in bpf_linker__free()
510 btf_ext__free(obj.btf_ext); in bpf_linker_add_file()
796 err = libbpf_get_error(obj->btf_ext); in linker_load_obj_file()
1126 if (!obj->btf_ext) in linker_sanity_check_btf_ext()
2636 if (!obj->btf_ext) in linker_append_btf_ext()
2898 opts.btf_ext = linker->btf_ext; in finalize_btf()
2909 if (linker->btf_ext) in finalize_btf()
2924 if (linker->btf_ext) { in finalize_btf()
[all …]
A Dlibbpf_internal.h484 struct btf_ext { struct
571 int btf_ext_visit_type_ids(struct btf_ext *btf_ext, type_id_visit_fn visit, void *ctx);
572 int btf_ext_visit_str_offs(struct btf_ext *btf_ext, str_off_visit_fn visit, void *ctx);
A Dlibbpf.c709 struct btf_ext *btf_ext; member
3263 err = libbpf_get_error(obj->btf_ext); in bpf_object__init_btf()
3267 obj->btf_ext = NULL; in bpf_object__init_btf()
3272 ext_segs[0] = &obj->btf_ext->func_info; in bpf_object__init_btf()
3273 ext_segs[1] = &obj->btf_ext->line_info; in bpf_object__init_btf()
3472 if (obj->btf_ext && obj->btf_ext->core_relo_info.len && !obj->btf_custom_path) in obj_needs_vmlinux_btf()
5935 if (obj->btf_ext->core_relo_info.len == 0) in bpf_object__relocate_core()
5953 seg = &obj->btf_ext->core_relo_info; in bpf_object__relocate_core()
6946 if (!obj->btf_ext || !prog->func_info) in bpf_program_fixup_func_info()
7078 if (obj->btf_ext) { in bpf_object__relocate()
[all …]
/tools/bpf/bpftool/
A Dgen.c2351 struct btf_ext *btf_ext = NULL; in btfgen_record_obj() local
2357 btf = btf__parse(obj_path, &btf_ext); in btfgen_record_obj()
2364 if (!btf_ext) { in btfgen_record_obj()
2371 if (btf_ext->core_relo_info.len == 0) { in btfgen_record_obj()
2382 seg = &btf_ext->core_relo_info; in btfgen_record_obj()
2418 btf_ext__free(btf_ext); in btfgen_record_obj()
/tools/testing/selftests/bpf/prog_tests/
A Dbtf.c4832 struct btf_ext *btf_ext = NULL; in do_test_file() local
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()

Completed in 65 milliseconds