Lines Matching refs:btf2
18 struct btf *btf1, *btf2; in test_btf_split() local
34 btf2 = btf__new_empty_split(btf1); in test_btf_split()
35 if (!ASSERT_OK_PTR(btf2, "empty_split_btf")) in test_btf_split()
39 ASSERT_EQ(btf__pointer_size(btf2), 8, "inherit_ptr_sz"); in test_btf_split()
41 str_off = btf__find_str(btf2, "int"); in test_btf_split()
44 t = btf__type_by_id(btf2, 1); in test_btf_split()
48 ASSERT_STREQ(btf__str_by_offset(btf2, t->name_off), "int", "int_name"); in test_btf_split()
50 btf__add_struct(btf2, "s2", 16); /* [4] struct s2 { */ in test_btf_split()
51 btf__add_field(btf2, "f1", 3, 0, 0); /* struct s1 f1; */ in test_btf_split()
52 btf__add_field(btf2, "f2", 1, 32, 0); /* int f2; */ in test_btf_split()
53 btf__add_field(btf2, "f3", 2, 64, 0); /* int *f3; */ in test_btf_split()
59 t = btf__type_by_id(btf2, 4); in test_btf_split()
64 ASSERT_STREQ(btf__str_by_offset(btf2, t->name_off), "s2", "split_struct_name"); in test_btf_split()
70 d = btf_dump__new(btf2, btf_dump_printf, dump_buf_file, NULL); in test_btf_split()
73 for (i = 1; i < btf__type_cnt(btf2); i++) { in test_btf_split()
96 btf__free(btf2); in test_btf_split()