Lines Matching refs:btf1
18 struct btf *btf1, *btf2; in test_btf_split() local
21 btf1 = btf__new_empty(); in test_btf_split()
22 if (!ASSERT_OK_PTR(btf1, "empty_main_btf")) in test_btf_split()
25 btf__set_pointer_size(btf1, 8); /* enforce 64-bit arch */ in test_btf_split()
27 btf__add_int(btf1, "int", 4, BTF_INT_SIGNED); /* [1] int */ in test_btf_split()
28 btf__add_ptr(btf1, 1); /* [2] ptr to int */ in test_btf_split()
30 btf__add_struct(btf1, "s1", 4); /* [3] struct s1 { */ in test_btf_split()
31 btf__add_field(btf1, "f1", 1, 0, 0); /* int f1; */ in test_btf_split()
34 btf2 = btf__new_empty_split(btf1); in test_btf_split()
56 t = btf__type_by_id(btf1, 4); in test_btf_split()
95 btf__free(btf1); in test_btf_split()