| H A D | btf_dedup_split.c | 9 struct btf *btf1, *btf2; in test_split_simple() local 12 btf1 = btf__new_empty(); in test_split_simple() 13 if (!ASSERT_OK_PTR(btf1, "empty_main_btf")) in test_split_simple() 16 btf__set_pointer_size(btf1, 8); /* enforce 64-bit arch */ in test_split_simple() 18 btf__add_int(btf1, "int", 4, BTF_INT_SIGNED); /* [1] int */ in test_split_simple() 19 btf__add_ptr(btf1, 1); /* [2] ptr to int */ in test_split_simple() 20 btf__add_struct(btf1, "s1", 4); /* [3] struct s1 { */ in test_split_simple() 21 btf__add_field(btf1, "f1", 1, 0, 0); /* int f1; */ in test_split_simple() 25 btf1, in test_split_simple() 31 ASSERT_STREQ(btf_type_c_dump(btf1), "\ in test_split_simple() 127 struct btf *btf1, *btf2; test_split_fwd_resolve() local 225 struct btf *btf1, *btf2; test_split_struct_duped() local 358 struct btf *btf1, *btf2 = NULL; test_split_dup_struct_in_cu() local [all...] |