Searched refs:base_btf (Results 1 – 6 of 6) sorted by relevance
/tools/bpf/bpftool/ |
D | main.c | 33 struct btf *base_btf; variable 464 base_btf = btf__parse(optarg, NULL); in main() 465 if (libbpf_get_error(base_btf)) { in main() 467 optarg, libbpf_get_error(base_btf)); in main() 468 base_btf = NULL; in main() 499 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;
|
/tools/lib/bpf/ |
D | btf.c | 97 struct btf *base_btf; member 270 if (btf->base_btf && hdr->str_len == 0) in btf_parse_str_sec() 276 if (!btf->base_btf && start[0]) { in btf_parse_str_sec() 436 return btf->base_btf; in btf__base_btf() 445 return btf_type_by_id(btf->base_btf, type_id); in btf_type_by_id() 462 if (btf->base_btf && btf->base_btf->ptr_sz > 0) in determine_ptr_size() 463 return btf->base_btf->ptr_sz; in determine_ptr_size() 763 static struct btf *btf_new_empty(struct btf *base_btf) in btf_new_empty() argument 778 if (base_btf) { in btf_new_empty() 779 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);
|