Searched refs:base_btf (Results 1 – 7 of 7) sorted by relevance
/Linux-v5.15/tools/lib/bpf/ |
D | btf.c | 97 struct btf *base_btf; member 264 if (btf->base_btf && hdr->str_len == 0) in btf_parse_str_sec() 270 if (!btf->base_btf && start[0]) { in btf_parse_str_sec() 430 return btf->base_btf; in btf__base_btf() 439 return btf_type_by_id(btf->base_btf, type_id); in btf_type_by_id() 456 if (btf->base_btf && btf->base_btf->ptr_sz > 0) in determine_ptr_size() 457 return btf->base_btf->ptr_sz; in determine_ptr_size() 744 static struct btf *btf_new_empty(struct btf *base_btf) in btf_new_empty() argument 759 if (base_btf) { in btf_new_empty() 760 btf->base_btf = base_btf; in btf_new_empty() [all …]
|
D | btf.h | 36 LIBBPF_API struct btf *btf__new_split(const void *data, __u32 size, struct btf *base_btf); 38 LIBBPF_API struct btf *btf__new_empty_split(struct btf *base_btf); 41 LIBBPF_API struct btf *btf__parse_split(const char *path, struct btf *base_btf); 43 LIBBPF_API struct btf *btf__parse_elf_split(const char *path, struct btf *base_btf); 45 LIBBPF_API struct btf *btf__parse_raw_split(const char *path, struct btf *base_btf); 52 LIBBPF_API struct btf *btf__load_from_kernel_by_id_split(__u32 id, struct btf *base_btf);
|
D | libbpf_internal.h | 287 struct btf *btf_get_from_fd(int btf_fd, struct btf *base_btf);
|
/Linux-v5.15/tools/bpf/bpftool/ |
D | main.c | 33 struct btf *base_btf; variable 452 base_btf = btf__parse(optarg, NULL); in main() 453 if (libbpf_get_error(base_btf)) { in main() 455 optarg, libbpf_get_error(base_btf)); in main() 456 base_btf = NULL; in main() 487 btf__free(base_btf); in main()
|
D | btf.c | 530 if (!base_btf && in do_dump() 541 btf = btf__parse_split(*argv, base ?: base_btf); in do_dump() 583 btf = btf__load_from_kernel_by_id_split(btf_id, base_btf); in do_dump()
|
D | main.h | 93 extern struct btf *base_btf;
|
/Linux-v5.15/kernel/bpf/ |
D | btf.c | 216 struct btf *base_btf; member 468 btf = btf->base_btf; in btf_nr_types() 630 btf = btf->base_btf; in btf_name_offset_valid() 650 btf = btf->base_btf; in btf_str_by_offset() 712 btf = btf->base_btf; in btf_type_by_id() 1456 if (!btf->base_btf) { in btf_add_type() 1770 btf = btf->base_btf; in btf_resolved_type_id() 1786 btf = btf->base_btf; in btf_resolved_type_size() 3992 env->log_type_id = btf->base_btf ? btf->start_id : 1; in btf_check_all_metas() 4091 for (i = btf->base_btf ? 0 : 1; i < btf->nr_types; i++) { in btf_check_all_types() [all …]
|