Searched refs:base_btf (Results 1 – 8 of 8) sorted by relevance
| /tools/lib/bpf/ |
| 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()
|
| A D | btf.c | 99 struct btf *base_btf; member 625 return btf->base_btf; in btf__base_btf() 664 if (btf->base_btf && btf->base_btf->ptr_sz > 0) in determine_ptr_size() 1011 if (base_btf) { in btf_new_empty() 1012 btf->base_btf = base_btf; in btf_new_empty() 1014 btf->start_str_off = base_btf->hdr->str_len + base_btf->start_str_off; in btf_new_empty() 1062 if (base_btf) { in btf_new() 1063 btf->base_btf = base_btf; in btf_new() 1789 if (btf->base_btf) { in btf__find_str() 1815 if (btf->base_btf) { in btf__add_str() [all …]
|
| A 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); 274 LIBBPF_API int btf__relocate(struct btf *btf, const struct btf *base_btf);
|
| A D | libbpf_internal.h | 239 void btf_set_base_btf(struct btf *btf, const struct btf *base_btf); 240 int btf_relocate(struct btf *btf, const struct btf *base_btf, __u32 **id_map); 412 struct btf *btf_load_from_kernel(__u32 id, struct btf *base_btf, int token_fd); 414 struct btf *btf_get_from_fd(int btf_fd, struct btf *base_btf);
|
| /tools/bpf/bpftool/ |
| A 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()
|
| 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()
|
| A D | main.h | 86 extern struct btf *base_btf;
|
| /tools/bpf/resolve_btfids/ |
| A D | main.c | 538 struct btf *base_btf = NULL; in symbols_resolve() local 544 base_btf = btf__parse(obj->base_btf_path, NULL); in symbols_resolve() 545 err = libbpf_get_error(base_btf); in symbols_resolve() 553 btf = btf__parse_split(obj->btf ?: obj->path, base_btf); in symbols_resolve() 618 btf__free(base_btf); in symbols_resolve()
|
Completed in 25 milliseconds