Home
last modified time | relevance | path

Searched refs:dist_base_btf (Results 1 – 2 of 2) sorted by relevance

/linux/tools/lib/bpf/
H A Dbtf_relocate.c41 const struct btf *dist_base_btf; member
202 dist_t = btf_type_by_id(r->dist_base_btf, id); in btf_relocate_map_distilled_base()
203 info[id].name = btf__name_by_offset(r->dist_base_btf, dist_t->name_off); in btf_relocate_map_distilled_base()
288 dist_t = btf_type_by_id(r->dist_base_btf, dist_info->id); in btf_relocate_map_distilled_base()
369 dist_t = btf_type_by_id(r->dist_base_btf, id); in btf_relocate_map_distilled_base()
370 name = btf__name_by_offset(r->dist_base_btf, dist_t->name_off); in btf_relocate_map_distilled_base()
388 struct btf_type *t = btf_type_by_id(r->dist_base_btf, i); in btf_relocate_validate_distilled_base()
453 r.dist_base_btf = btf__base_btf(btf); in btf_relocate()
454 if (!base_btf || r.dist_base_btf == base_btf) in btf_relocate()
457 r.nr_dist_base_types = btf__type_cnt(r.dist_base_btf); in btf_relocate()
[all …]
H A Dbtf.c1170 struct btf *dist_base_btf = NULL; in btf_parse_elf() local
1205 dist_base_btf = btf_new(secs.btf_base_data->d_buf, secs.btf_base_data->d_size, in btf_parse_elf()
1207 if (IS_ERR(dist_base_btf)) { in btf_parse_elf()
1208 err = PTR_ERR(dist_base_btf); in btf_parse_elf()
1209 dist_base_btf = NULL; in btf_parse_elf()
1215 dist_base_btf ?: base_btf); in btf_parse_elf()
1220 if (dist_base_btf && base_btf) { in btf_parse_elf()
1224 btf__free(dist_base_btf); in btf_parse_elf()
1225 dist_base_btf = NULL; in btf_parse_elf()
1228 if (dist_base_btf) in btf_parse_elf()
[all …]