Searched refs:btf_ext (Results 1 - 8 of 8) sorted by relevance
/linux-master/tools/lib/bpf/ |
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 | 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, __u3 225 struct btf_ext *btf_ext; member in struct:btf_dedup_opts [all...] |
H A D | btf.c | 1088 struct btf_ext **btf_ext) 1157 } else if (btf_ext && strcmp(name, BTF_EXT_ELF_SEC) == 0) { 1190 if (btf_ext && btf_ext_data) { 1191 *btf_ext = btf_ext__new(btf_ext_data->d_buf, btf_ext_data->d_size); 1192 err = libbpf_get_error(*btf_ext); 1195 } else if (btf_ext) { 1196 *btf_ext = NULL; 1206 if (btf_ext) 1207 btf_ext__free(*btf_ext); 1087 btf_parse_elf(const char *path, struct btf *base_btf, struct btf_ext **btf_ext) argument 1213 btf__parse_elf(const char *path, struct btf_ext **btf_ext) argument 1296 btf_parse(const char *path, struct btf *base_btf, struct btf_ext **btf_ext) argument 1313 btf__parse(const char *path, struct btf_ext **btf_ext) argument 2826 btf_ext_setup_info(struct btf_ext *btf_ext, struct btf_ext_sec_setup_param *ext_sec) argument 2917 btf_ext_setup_func_info(struct btf_ext *btf_ext) argument 2930 btf_ext_setup_line_info(struct btf_ext *btf_ext) argument 2943 btf_ext_setup_core_relos(struct btf_ext *btf_ext) argument 2992 btf_ext__free(struct btf_ext *btf_ext) argument 3005 struct btf_ext *btf_ext; local 3053 btf_ext__raw_data(const struct btf_ext *btf_ext, __u32 *size) argument 3289 struct btf_ext *btf_ext; member in struct:btf_dedup 5136 btf_ext_visit_type_ids(struct btf_ext *btf_ext, type_id_visit_fn visit, void *ctx) argument 5167 btf_ext_visit_str_offs(struct btf_ext *btf_ext, str_off_visit_fn visit, void *ctx) argument [all...] |
H A D | linker.c | 59 struct btf_ext *btf_ext; member in struct:src_obj 148 struct btf_ext *btf_ext; member in struct:bpf_linker 198 btf_ext__free(linker->btf_ext); 462 btf_ext__free(obj.btf_ext); 666 obj->btf_ext = btf_ext__new(data->d_buf, shdr->sh_size); 667 err = libbpf_get_error(obj->btf_ext); 982 if (!obj->btf_ext) 989 err = err ?: btf_ext_visit_type_ids(obj->btf_ext, check_btf_type_i [all...] |
H A D | libbpf_internal.h | 479 struct btf_ext { struct 516 int btf_ext_visit_type_ids(struct btf_ext *btf_ext, type_id_visit_fn visit, void *ctx); 517 int btf_ext_visit_str_offs(struct btf_ext *btf_ext, str_off_visit_fn visit, void *ctx);
|
H A D | libbpf.c | 674 struct btf_ext *btf_ext; member in struct:bpf_object 3159 obj->btf_ext = btf_ext__new(btf_ext_data->d_buf, btf_ext_data->d_size); 3160 err = libbpf_get_error(obj->btf_ext); 3164 obj->btf_ext = NULL; 3169 ext_segs[0] = &obj->btf_ext->func_info; 3170 ext_segs[1] = &obj->btf_ext->line_info; 3171 ext_segs[2] = &obj->btf_ext->core_relo_info; 3369 if (obj->btf_ext && obj->btf_ext [all...] |
/linux-master/tools/bpf/bpftool/ |
H A D | gen.c | 2302 struct btf_ext *btf_ext = NULL; local 2308 btf = btf__parse(obj_path, &btf_ext); 2315 if (!btf_ext) { 2322 if (btf_ext->core_relo_info.len == 0) { 2333 seg = &btf_ext->core_relo_info; 2369 btf_ext__free(btf_ext);
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | btf.c | 4783 struct btf_ext *btf_ext = NULL; local 4798 btf = btf__parse_elf(test->file, &btf_ext); 4810 has_btf_ext = btf_ext != NULL; 4811 btf_ext__free(btf_ext);
|
Completed in 311 milliseconds