Searched refs:base_btf (Results 1 – 10 of 10) sorted by relevance
/linux-6.12.1/tools/lib/bpf/ |
D | btf_relocate.c | 40 const struct btf *base_btf; member 231 base_t = btf_type_by_id(r->base_btf, id); in btf_relocate_map_distilled_base() 243 base_t = btf_type_by_id(r->base_btf, id); in btf_relocate_map_distilled_base() 249 base_info.name = btf__name_by_offset(r->base_btf, base_t->name_off); in btf_relocate_map_distilled_base() 444 int btf_relocate(struct btf *btf, const struct btf *base_btf, __u32 **id_map) in btf_relocate() argument 454 if (!base_btf || r.dist_base_btf == base_btf) in btf_relocate() 458 r.nr_base_types = btf__type_cnt(base_btf); in btf_relocate() 461 r.base_btf = base_btf; in btf_relocate() 466 base_hdr = btf_header(r.base_btf); in btf_relocate() 509 btf_set_base_btf(btf, base_btf); in btf_relocate()
|
D | btf.c | 97 struct btf *base_btf; member 278 if (btf->base_btf && hdr->str_len == 0) in btf_parse_str_sec() 284 if (!btf->base_btf && start[0]) { in btf_parse_str_sec() 620 return btf->base_btf; in btf__base_btf() 629 return btf_type_by_id(btf->base_btf, type_id); in btf_type_by_id() 659 if (btf->base_btf && btf->base_btf->ptr_sz > 0) in determine_ptr_size() 660 return btf->base_btf->ptr_sz; in determine_ptr_size() 976 btf__free(btf->base_btf); in btf__free() 980 static struct btf *btf_new_empty(struct btf *base_btf) in btf_new_empty() argument 995 if (base_btf) { in btf_new_empty() [all …]
|
D | btf.h | 77 LIBBPF_API struct btf *btf__new_split(const void *data, __u32 size, struct btf *base_btf); 109 LIBBPF_API struct btf *btf__new_empty_split(struct btf *base_btf); 133 LIBBPF_API struct btf *btf__parse_split(const char *path, struct btf *base_btf); 135 LIBBPF_API struct btf *btf__parse_elf_split(const char *path, struct btf *base_btf); 137 LIBBPF_API struct btf *btf__parse_raw_split(const char *path, struct btf *base_btf); 143 LIBBPF_API struct btf *btf__load_from_kernel_by_id_split(__u32 id, struct btf *base_btf); 268 LIBBPF_API int btf__relocate(struct btf *btf, const struct btf *base_btf);
|
D | libbpf_internal.h | 238 void btf_set_base_btf(struct btf *btf, const struct btf *base_btf); 239 int btf_relocate(struct btf *btf, const struct btf *base_btf, __u32 **id_map); 412 struct btf *btf_get_from_fd(int btf_fd, struct btf *base_btf);
|
/linux-6.12.1/tools/bpf/bpftool/ |
D | main.c | 34 struct btf *base_btf; variable 512 base_btf = btf__parse(optarg, NULL); in main() 513 if (!base_btf) { in main() 544 btf__free(base_btf); in main()
|
D | btf.c | 879 if (!base_btf && in do_dump() 884 btf = btf__parse_split(*argv, base ?: base_btf); in do_dump() 928 if (!base_btf && btf_is_kernel_module(btf_id)) { in do_dump() 931 base_btf = get_vmlinux_btf_from_sysfs(); in do_dump() 934 btf = btf__load_from_kernel_by_id_split(btf_id, base_btf); in do_dump()
|
D | main.h | 85 extern struct btf *base_btf;
|
/linux-6.12.1/tools/bpf/resolve_btfids/ |
D | main.c | 537 struct btf *base_btf = NULL; in symbols_resolve() local 543 base_btf = btf__parse(obj->base_btf_path, NULL); in symbols_resolve() 544 err = libbpf_get_error(base_btf); in symbols_resolve() 552 btf = btf__parse_split(obj->btf ?: obj->path, base_btf); in symbols_resolve() 616 btf__free(base_btf); in symbols_resolve()
|
/linux-6.12.1/include/linux/ |
D | btf.h | 555 void btf_set_base_btf(struct btf *btf, const struct btf *base_btf); 556 int btf_relocate(struct btf *btf, const struct btf *base_btf, __u32 **map_ids); 591 static inline void btf_set_base_btf(struct btf *btf, const struct btf *base_btf) in btf_set_base_btf() argument 595 static inline int btf_relocate(void *log, struct btf *btf, const struct btf *base_btf, in btf_relocate() argument
|
/linux-6.12.1/kernel/bpf/ |
D | btf.c | 272 struct btf *base_btf; member 536 return btf->kernel_btf && !btf->base_btf; in btf_is_vmlinux() 545 btf = btf->base_btf; in btf_nr_types() 765 btf = btf->base_btf; in btf_name_offset_valid() 784 btf = btf->base_btf; in btf_str_by_offset() 854 btf = btf->base_btf; in btf_type_by_id() 1455 if (env->btf->base_btf && IS_ENABLED(CONFIG_MODULE_ALLOW_BTF_MISMATCH)) in __btf_verifier_log_type() 1501 if (env->btf->base_btf && IS_ENABLED(CONFIG_MODULE_ALLOW_BTF_MISMATCH)) in btf_verifier_log_member() 1613 if (!btf->base_btf) { in btf_add_type() 1771 return btf->base_btf; in btf_base_btf() [all …]
|