Home
last modified time | relevance | path

Searched refs:btf1 (Results 1 – 3 of 3) sorted by relevance

/tools/testing/selftests/bpf/prog_tests/
Dbtf_dedup_split.c9 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()
[all …]
Dbtf_split.c19 struct btf *btf1, *btf2; in test_btf_split() local
22 btf1 = btf__new_empty(); in test_btf_split()
23 if (!ASSERT_OK_PTR(btf1, "empty_main_btf")) in test_btf_split()
26 btf__set_pointer_size(btf1, 8); /* enforce 64-bit arch */ in test_btf_split()
28 btf__add_int(btf1, "int", 4, BTF_INT_SIGNED); /* [1] int */ in test_btf_split()
29 btf__add_ptr(btf1, 1); /* [2] ptr to int */ in test_btf_split()
31 btf__add_struct(btf1, "s1", 4); /* [3] struct s1 { */ in test_btf_split()
32 btf__add_field(btf1, "f1", 1, 0, 0); /* int f1; */ in test_btf_split()
35 btf2 = btf__new_empty_split(btf1); in test_btf_split()
57 t = btf__type_by_id(btf1, 4); in test_btf_split()
[all …]
/tools/lib/bpf/
Dlinker.c1293 const struct btf *btf1, __u32 id1, in glob_sym_btf_matches() argument
1303 t1 = skip_mods_and_typedefs(btf1, id1, &id1); in glob_sym_btf_matches()
1308 n1 = btf__str_by_offset(btf1, t1->name_off); in glob_sym_btf_matches()
1347 n1 = btf__str_by_offset(btf1, t1->name_off); in glob_sym_btf_matches()
1428 n1 = btf__str_by_offset(btf1, m1->name_off); in glob_sym_btf_matches()
1440 if (!glob_sym_btf_matches(sym_name, exact, btf1, m1->type, btf2, m2->type)) in glob_sym_btf_matches()
1460 if (!glob_sym_btf_matches(sym_name, exact, btf1, m1->type, btf2, m2->type)) in glob_sym_btf_matches()