Searched refs:btf_ext (Results 1 – 6 of 6) sorted by relevance
| /linux/tools/lib/bpf/ |
| H A D | btf.h | 25 struct btf_ext; 157 LIBBPF_API struct btf *btf__parse(const char *path, struct btf_ext **btf_ext); 159 LIBBPF_API struct btf *btf__parse_elf(const char *path, struct btf_ext **btf_ext); 192 LIBBPF_API struct btf_ext *btf_ext__new(const __u8 *data, __u32 size); 193 LIBBPF_API void btf_ext__free(struct btf_ext *btf_ext); 194 LIBBPF_API const void *btf_ext__raw_data(const struct btf_ext *btf_ext, __u3 253 struct btf_ext *btf_ext; global() member [all...] |
| 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 | 64 struct btf_ext *btf_ext; member 154 struct btf_ext *btf_ext; member 208 btf_ext__free(linker->btf_ext); in bpf_linker__free() 509 btf_ext__free(obj.btf_ext); in bpf_linker_add_file() 794 obj->btf_ext = btf_ext__new(data->d_buf, shdr->sh_size); in linker_load_obj_file() 795 err = libbpf_get_error(obj->btf_ext); in linker_load_obj_file() 1125 if (!obj->btf_ext) in linker_sanity_check_btf_ext() 1132 err = err ?: btf_ext_visit_type_ids(obj->btf_ext, check_btf_type_id, obj->btf); in linker_sanity_check_btf_ext() 1133 err = err ?: btf_ext_visit_str_offs(obj->btf_ext, check_btf_str_off, obj->btf); in linker_sanity_check_btf_ext() 2638 if (!obj->btf_ext) in linker_append_btf_ext() [all …]
|
| H A D | libbpf_internal.h | 507 struct btf_ext { argument 594 int btf_ext_visit_type_ids(struct btf_ext *btf_ext, type_id_visit_fn visit, void *ctx); in libbpf_err() 595 int btf_ext_visit_str_offs(struct btf_ext *btf_ext, str_off_visit_fn visit, void *ctx); in libbpf_err() 498 struct btf_ext { global() struct 500 __anonb96e5b44010abtf_ext global() argument 505 func_infobtf_ext global() argument 506 line_infobtf_ext global() argument 511 data_sizebtf_ext global() argument
|
| H A D | libbpf.c | 729 struct btf_ext *btf_ext; member 3351 obj->btf_ext = btf_ext__new(btf_ext_data->d_buf, btf_ext_data->d_size); in compare_vsi_off() 3352 err = libbpf_get_error(obj->btf_ext); in compare_vsi_off() 3356 obj->btf_ext = NULL; in btf_fixup_datasec() 3361 ext_segs[0] = &obj->btf_ext->func_info; in btf_fixup_datasec() 3362 ext_segs[1] = &obj->btf_ext->line_info; in btf_fixup_datasec() 3363 ext_segs[2] = &obj->btf_ext->core_relo_info; in btf_fixup_datasec() 3561 if (obj->btf_ext && obj->btf_ext in bpf_object__sanitize_and_load_btf() [all...] |
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | btf.c | 4832 struct btf_ext *btf_ext = NULL; in do_test_file() 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() 4817 struct btf_ext *btf_ext = NULL; do_test_file() local
|