Searched refs:btf_ext (Results 1 – 8 of 8) sorted by relevance
/linux-6.3-rc2/tools/lib/bpf/ |
A D | btf.c | 923 struct btf_ext **btf_ext) in btf_parse_elf() argument 1043 if (btf_ext) in btf_parse_elf() 1138 if (btf_ext) in btf_parse() 2657 static int btf_ext_setup_info(struct btf_ext *btf_ext, in btf_ext_setup_info() argument 2748 static int btf_ext_setup_func_info(struct btf_ext *btf_ext) in btf_ext_setup_func_info() argument 2823 void btf_ext__free(struct btf_ext *btf_ext) in btf_ext__free() argument 2836 struct btf_ext *btf_ext; in btf_ext__new() local 2839 btf_ext = calloc(1, sizeof(struct btf_ext)); in btf_ext__new() 2840 if (!btf_ext) in btf_ext__new() 3116 struct btf_ext *btf_ext; member [all …]
|
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
|
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);
|
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() 462 btf_ext__free(obj.btf_ext); in bpf_linker__add_file() 667 err = libbpf_get_error(obj->btf_ext); in linker_load_obj_file() 963 if (!obj->btf_ext) in linker_sanity_check_btf_ext() 2435 if (!obj->btf_ext) in linker_append_btf_ext() 2691 opts.btf_ext = linker->btf_ext; in finalize_btf() 2710 if (linker->btf_ext) { in finalize_btf() 2890 err = libbpf_get_error(linker->btf_ext); in finalize_btf_ext() [all …]
|
A D | libbpf_internal.h | 440 struct btf_ext { struct 477 int btf_ext_visit_type_ids(struct btf_ext *btf_ext, type_id_visit_fn visit, void *ctx); 478 int btf_ext_visit_str_offs(struct btf_ext *btf_ext, str_off_visit_fn visit, void *ctx);
|
A D | libbpf.c | 637 struct btf_ext *btf_ext; member 2790 err = libbpf_get_error(obj->btf_ext); in bpf_object__init_btf() 2794 obj->btf_ext = NULL; in bpf_object__init_btf() 2799 ext_segs[0] = &obj->btf_ext->func_info; in bpf_object__init_btf() 2800 ext_segs[1] = &obj->btf_ext->line_info; in bpf_object__init_btf() 2801 ext_segs[2] = &obj->btf_ext->core_relo_info; in bpf_object__init_btf() 2993 if (obj->btf_ext && obj->btf_ext->core_relo_info.len && !obj->btf_custom_path) in obj_needs_vmlinux_btf() 5679 if (obj->btf_ext->core_relo_info.len == 0) in bpf_object__relocate_core() 5697 seg = &obj->btf_ext->core_relo_info; in bpf_object__relocate_core() 6380 if (obj->btf_ext) { in bpf_object__relocate() [all …]
|
/linux-6.3-rc2/tools/bpf/bpftool/ |
A D | gen.c | 2045 struct btf_ext *btf_ext = NULL; in btfgen_record_obj() local 2051 btf = btf__parse(obj_path, &btf_ext); in btfgen_record_obj() 2058 if (!btf_ext) { in btfgen_record_obj() 2065 if (btf_ext->core_relo_info.len == 0) { in btfgen_record_obj() 2076 seg = &btf_ext->core_relo_info; in btfgen_record_obj() 2112 btf_ext__free(btf_ext); in btfgen_record_obj()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A D | btf.c | 4719 struct btf_ext *btf_ext = NULL; in do_test_file() local 4734 btf = btf__parse_elf(test->file, &btf_ext); in do_test_file() 4746 has_btf_ext = btf_ext != NULL; in do_test_file() 4747 btf_ext__free(btf_ext); in do_test_file()
|
Completed in 54 milliseconds