Searched refs:base_btf (Results 1 – 10 of 10) sorted by relevance
| /linux/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 | 97 struct btf *base_btf; member 620 return btf->base_btf; in btf__base_btf() 659 if (btf->base_btf && btf->base_btf->ptr_sz > 0) in determine_ptr_size() 995 if (base_btf) { in btf_new_empty() 996 btf->base_btf = base_btf; in btf_new_empty() 1046 if (base_btf) { in btf_new() 1047 btf->base_btf = base_btf; in btf_new() 1720 if (btf->base_btf) { in btf__find_str() 1746 if (btf->base_btf) { in btf__add_str() 1878 if (src_btf->base_btf) in btf__add_btf() [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); 268 LIBBPF_API int btf__relocate(struct btf *btf, const struct btf *base_btf);
|
| A 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/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 | 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()
|
| A D | main.h | 85 extern struct btf *base_btf;
|
| /linux/tools/bpf/resolve_btfids/ |
| A 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/include/linux/ |
| A 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/kernel/bpf/ |
| A D | btf.c | 272 struct btf *base_btf; member 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() 1771 return btf->base_btf; in btf_base_btf() 1781 btf->base_btf = (struct btf *)base_btf; in btf_set_base_btf() 2017 btf = btf->base_btf; in btf_resolved_type_id() 2033 btf = btf->base_btf; in btf_resolved_type_size() 6279 btf->base_btf = base_btf; in btf_parse_module() [all …]
|
Completed in 842 milliseconds