Lines Matching refs:btf_new
2433 struct btf *btf_new = NULL; in btfgen_get_btf() local
2438 btf_new = btf__new_empty(); in btfgen_get_btf()
2439 if (!btf_new) { in btfgen_get_btf()
2472 err = btf__add_struct(btf_new, name, type->size); in btfgen_get_btf()
2474 err = btf__add_union(btf_new, name, type->size); in btfgen_get_btf()
2489 err = btf__add_field(btf_new, name, m->type, in btfgen_get_btf()
2496 err = btf__add_type(btf_new, info->src_btf, type); in btfgen_get_btf()
2507 for (i = 1; i < btf__type_cnt(btf_new); i++) { in btfgen_get_btf()
2508 struct btf_type *btf_type = (struct btf_type *) btf__type_by_id(btf_new, i); in btfgen_get_btf()
2521 return btf_new; in btfgen_get_btf()
2524 btf__free(btf_new); in btfgen_get_btf()
2556 struct btf *btf_new = NULL; in minimize_btf() local
2575 btf_new = btfgen_get_btf(info); in minimize_btf()
2576 if (!btf_new) { in minimize_btf()
2582 err = btf_save_raw(btf_new, dst_btf); in minimize_btf()
2589 btf__free(btf_new); in minimize_btf()