Lines Matching refs:src_btf
1862 int btf__add_type(struct btf *btf, const struct btf *src_btf, const struct btf_type *src_type) in btf__add_type() argument
1864 struct btf_pipe p = { .src = src_btf, .dst = btf }; in btf__add_type()
1872 int btf__add_btf(struct btf *btf, const struct btf *src_btf) in btf__add_btf() argument
1874 struct btf_pipe p = { .src = src_btf, .dst = btf }; in btf__add_btf()
1880 if (src_btf->base_btf) in btf__add_btf()
1892 data_sz = src_btf->hdr->type_len; in btf__add_btf()
1893 cnt = btf__type_cnt(src_btf) - 1; in btf__add_btf()
1911 memcpy(t, src_btf->types_data, data_sz); in btf__add_btf()
5545 int btf__distill_base(const struct btf *src_btf, struct btf **new_base_btf, in btf__distill_base() argument
5550 unsigned int n = btf__type_cnt(src_btf); in btf__distill_base()
5556 old_base = btf__base_btf(src_btf); in btf__distill_base()
5564 btf__set_endianness(new_base, btf__endianness(src_btf)); in btf__distill_base()
5571 dist.pipe.src = src_btf; in btf__distill_base()
5585 for (i = src_btf->start_id; i < n; i++) { in btf__distill_base()
5609 for (i = src_btf->start_id; i < n; i++) { in btf__distill_base()
5610 t = btf_type_by_id(src_btf, i); in btf__distill_base()