Lines Matching defs:src_btf
2230 int btf__add_type(struct btf *btf, const struct btf *src_btf, const struct btf_type *src_type)
2232 struct btf_pipe p = { .src = src_btf, .dst = btf };
2240 int btf__add_btf(struct btf *btf, const struct btf *src_btf)
2242 struct btf_pipe p = { .src = src_btf, .dst = btf };
2252 if (src_btf->base_btf && src_btf->base_btf != btf->base_btf)
2255 src_start_id = src_btf->base_btf ? btf__type_cnt(src_btf->base_btf) : 1;
2267 data_sz = src_btf->hdr.type_len;
2268 cnt = src_btf->nr_types;
2280 /* Map the string offsets from src_btf to the offsets from btf to improve performance */
2285 /* bulk copy types data for all types from src_btf */
2286 memcpy(t, src_btf->types_data, data_sz);
2292 sz = btf_type_size(src_btf, t);
2294 /* unlikely, has to be corrupted src_btf */
2308 if (*str_off < src_btf->start_str_off)
6108 int btf__distill_base(const struct btf *src_btf, struct btf **new_base_btf,
6113 unsigned int n = btf__type_cnt(src_btf);
6119 old_base = btf__base_btf(src_btf);
6127 btf__set_endianness(new_base, btf__endianness(src_btf));
6134 dist.pipe.src = src_btf;
6148 for (i = src_btf->start_id; i < n; i++) {
6172 for (i = src_btf->start_id; i < n; i++) {
6173 t = btf_type_by_id(src_btf, i);