Home
last modified time | relevance | path

Searched refs:base_btf (Results 1 – 6 of 6) sorted by relevance

/tools/bpf/bpftool/
Dmain.c33 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()
Dbtf.c530 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()
Dmain.h93 extern struct btf *base_btf;
/tools/lib/bpf/
Dbtf.c97 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 …]
Dbtf.h36 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);
Dlibbpf_internal.h287 struct btf *btf_get_from_fd(int btf_fd, struct btf *base_btf);