Searched refs:btf_ext (Results 1 – 8 of 8) sorted by relevance
/openbmc/linux/tools/lib/bpf/ |
H A D | btf.c | 923 struct btf_ext **btf_ext) in btf_parse_elf() argument 992 } else if (btf_ext && strcmp(name, BTF_EXT_ELF_SEC) == 0) { in btf_parse_elf() 1025 if (btf_ext && btf_ext_data) { in btf_parse_elf() 1026 *btf_ext = btf_ext__new(btf_ext_data->d_buf, btf_ext_data->d_size); in btf_parse_elf() 1027 err = libbpf_get_error(*btf_ext); in btf_parse_elf() 1030 } else if (btf_ext) { in btf_parse_elf() 1031 *btf_ext = NULL; in btf_parse_elf() 1041 if (btf_ext) in btf_parse_elf() 1042 btf_ext__free(*btf_ext); in btf_parse_elf() 1048 struct btf *btf__parse_elf(const char *path, struct btf_ext **btf_ext) in btf__parse_elf() argument [all …]
|
H A D | btf.h | 24 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); 145 LIBBPF_API struct btf_ext *btf_ext__new(const __u8 *data, __u32 size); 146 LIBBPF_API void btf_ext__free(struct btf_ext *btf_ext); 147 LIBBPF_API const void *btf_ext__raw_data(const struct btf_ext *btf_ext, __u32 *size); 225 struct btf_ext *btf_ext; member
|
H A D | libbpf_legacy.h | 126 struct btf_ext; 134 LIBBPF_API const void *btf_ext__get_raw_data(const struct btf_ext *btf_ext, __u32 *size);
|
H A D | linker.c | 59 struct btf_ext *btf_ext; member 148 struct btf_ext *btf_ext; member 198 btf_ext__free(linker->btf_ext); in bpf_linker__free() 464 btf_ext__free(obj.btf_ext); in bpf_linker__add_file() 662 obj->btf_ext = btf_ext__new(data->d_buf, shdr->sh_size); in linker_load_obj_file() 663 err = libbpf_get_error(obj->btf_ext); in linker_load_obj_file() 959 if (!obj->btf_ext) in linker_sanity_check_btf_ext() 966 err = err ?: btf_ext_visit_type_ids(obj->btf_ext, check_btf_type_id, obj->btf); in linker_sanity_check_btf_ext() 967 err = err ?: btf_ext_visit_str_offs(obj->btf_ext, check_btf_str_off, obj->btf); in linker_sanity_check_btf_ext() 2443 if (!obj->btf_ext) in linker_append_btf_ext() [all …]
|
H A D | libbpf_internal.h | 457 struct btf_ext { struct 494 int btf_ext_visit_type_ids(struct btf_ext *btf_ext, type_id_visit_fn visit, void *ctx); 495 int btf_ext_visit_str_offs(struct btf_ext *btf_ext, str_off_visit_fn visit, void *ctx);
|
H A D | libbpf.c | 658 struct btf_ext *btf_ext; member 2849 obj->btf_ext = btf_ext__new(btf_ext_data->d_buf, btf_ext_data->d_size); in bpf_object__init_btf() 2850 err = libbpf_get_error(obj->btf_ext); in bpf_object__init_btf() 2854 obj->btf_ext = NULL; in bpf_object__init_btf() 2859 ext_segs[0] = &obj->btf_ext->func_info; in bpf_object__init_btf() 2860 ext_segs[1] = &obj->btf_ext->line_info; in bpf_object__init_btf() 2861 ext_segs[2] = &obj->btf_ext->core_relo_info; in bpf_object__init_btf() 3053 if (obj->btf_ext && obj->btf_ext->core_relo_info.len && !obj->btf_custom_path) in obj_needs_vmlinux_btf() 5796 if (obj->btf_ext->core_relo_info.len == 0) in bpf_object__relocate_core() 5814 seg = &obj->btf_ext->core_relo_info; in bpf_object__relocate_core() [all …]
|
/openbmc/linux/tools/bpf/bpftool/ |
H A D | gen.c | 2048 struct btf_ext *btf_ext = NULL; in btfgen_record_obj() local 2054 btf = btf__parse(obj_path, &btf_ext); in btfgen_record_obj() 2061 if (!btf_ext) { in btfgen_record_obj() 2068 if (btf_ext->core_relo_info.len == 0) { in btfgen_record_obj() 2079 seg = &btf_ext->core_relo_info; in btfgen_record_obj() 2115 btf_ext__free(btf_ext); in btfgen_record_obj()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | btf.c | 4754 struct btf_ext *btf_ext = NULL; in do_test_file() local 4769 btf = btf__parse_elf(test->file, &btf_ext); in do_test_file() 4781 has_btf_ext = btf_ext != NULL; in do_test_file() 4782 btf_ext__free(btf_ext); in do_test_file()
|