Searched refs:base_btf (Results 1 – 6 of 6) sorted by relevance
| /linux/tools/lib/bpf/ |
| H A 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()
|
| H A D | btf.h | 59 * provided raw data bytes. It takes another BTF instance, **base_btf**, which 64 * @param base_btf the base BTF object 68 * If *base_btf* is NULL, `btf__new_split()` is equivalent to `btf__new()` and 77 LIBBPF_API struct btf *btf__new_split(const void *data, __u32 size, struct btf *base_btf); 97 * @param base_btf base BTF object 101 * If *base_btf* is NULL, `btf__new_empty_split()` is equivalent to 110 LIBBPF_API struct btf *btf__new_empty_split(struct btf *base_btf); 138 LIBBPF_API struct btf *btf__parse_split(const char *path, struct btf *base_btf); 140 LIBBPF_API struct btf *btf__parse_elf_split(const char *path, struct btf *base_btf); 142 LIBBPF_API struct btf *btf__parse_raw_split(const char *path, struct btf *base_btf); [all...] |
| H A D | libbpf_internal.h | 251 void btf_set_base_btf(struct btf *btf, const struct btf *base_btf); 252 int btf_relocate(struct btf *btf, const struct btf *base_btf, __u32 **id_map); 426 struct btf *btf_load_from_kernel(__u32 id, struct btf *base_btf, int token_fd); 428 struct btf *btf_get_from_fd(int btf_fd, struct btf *base_btf);
|
| /linux/tools/bpf/resolve_btfids/ |
| H A D | main.c | 128 struct btf *base_btf; member 583 struct btf *base_btf = NULL, *btf = NULL; in load_btf() local 587 base_btf = btf__parse(obj->base_btf_path, NULL); in load_btf() 588 err = libbpf_get_error(base_btf); in load_btf() 596 btf = btf__parse_split(obj->btf_path ?: obj->path, base_btf); in load_btf() 604 obj->base_btf = base_btf; in load_btf() 610 btf__free(base_btf); in load_btf() 612 obj->base_btf = NULL; in load_btf() 1308 struct btf *base_btf = obj->base_btf, *btf = obj->btf; in finalize_btf() local 1311 if (obj->base_btf && obj->distill_base) { in finalize_btf() [all …]
|
| /linux/kernel/bpf/ |
| H A D | btf.c | 275 struct btf *base_btf; member 501 return btf->start_id + (btf->base_btf ? 0 : 1); in btf_start_id() 539 return btf->kernel_btf && !btf->base_btf; in btf_is_vmlinux() 548 btf = btf->base_btf; in btf_nr_types() 608 const struct btf *base_btf = btf; in btf_named_start_id() local 610 while (!own && base_btf->base_btf) in btf_named_start_id() 611 base_btf = base_btf->base_btf; in btf_named_start_id() 613 return base_btf->named_start_id ?: (base_btf->start_id ?: 1); in btf_named_start_id() 642 const struct btf *base_btf = btf_base_btf(btf); in btf_find_by_name_kind() local 647 if (base_btf) { in btf_find_by_name_kind() [all …]
|
| /linux/tools/bpf/bpftool/ |
| H A D | btf.c | 962 if (!base_btf && in do_dump() 967 btf = btf__parse_split(*argv, base ?: base_btf); in do_dump() 1043 if (!base_btf && btf_is_kernel_module(btf_id)) { in do_dump() 1046 base_btf = get_vmlinux_btf_from_sysfs(); in do_dump() 1049 btf = btf__load_from_kernel_by_id_split(btf_id, base_btf); in do_dump()
|