Searched refs:btf1 (Results 1 - 6 of 6) sorted by last modified time

/linux-master/tools/lib/bpf/
H A Dlinker.c1318 const struct btf *btf1, __u32 id1,
1328 t1 = skip_mods_and_typedefs(btf1, id1, &id1);
1333 n1 = btf__str_by_offset(btf1, t1->name_off);
1373 n1 = btf__str_by_offset(btf1, t1->name_off);
1455 n1 = btf__str_by_offset(btf1, m1->name_off);
1467 if (!glob_sym_btf_matches(sym_name, exact, btf1, m1->type, btf2, m2->type))
1487 if (!glob_sym_btf_matches(sym_name, exact, btf1, m1->type, btf2, m2->type))
1317 glob_sym_btf_matches(const char *sym_name, bool exact, const struct btf *btf1, __u32 id1, const struct btf *btf2, __u32 id2) argument
/linux-master/kernel/bpf/
H A Dbtf.c6751 bool btf_types_are_same(const struct btf *btf1, u32 id1,
6756 if (btf1 == btf2)
6758 return btf_type_by_id(btf1, id1) == btf_type_by_id(btf2, id2);
6907 * t1 points to BTF_KIND_FUNC in btf1
6915 struct btf *btf1, const struct btf_type *t1,
6922 fn1 = btf_name_by_offset(btf1, t1->name_off);
6934 t1 = btf_type_by_id(btf1, t1->type);
6952 t1 = btf_type_skip_modifiers(btf1, t1->type, NULL);
6963 t1 = btf_type_skip_modifiers(btf1, args1[i].type, NULL);
6992 t1 = btf_type_skip_modifiers(btf1, t
6730 btf_types_are_same(const struct btf *btf1, u32 id1, const struct btf *btf2, u32 id2) argument
6893 btf_check_func_type_match(struct bpf_verifier_log *log, struct btf *btf1, const struct btf_type *t1, struct btf *btf2, const struct btf_type *t2) argument
7007 struct btf *btf1 = prog->aux->btf; local
[all...]
/linux-master/include/linux/
H A Dbtf.h538 bool btf_types_are_same(const struct btf *btf1, u32 id1,
587 static inline bool btf_types_are_same(const struct btf *btf1, u32 id1, argument
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_dedup_split.c9 struct btf *btf1, *btf2; local
12 btf1 = btf__new_empty();
13 if (!ASSERT_OK_PTR(btf1, "empty_main_btf"))
16 btf__set_pointer_size(btf1, 8); /* enforce 64-bit arch */
18 btf__add_int(btf1, "int", 4, BTF_INT_SIGNED); /* [1] int */
19 btf__add_ptr(btf1, 1); /* [2] ptr to int */
20 btf__add_struct(btf1, "s1", 4); /* [3] struct s1 { */
21 btf__add_field(btf1, "f1", 1, 0, 0); /* int f1; */
25 btf1,
31 ASSERT_STREQ(btf_type_c_dump(btf1), "\
127 struct btf *btf1, *btf2; local
225 struct btf *btf1, *btf2; local
358 struct btf *btf1, *btf2 = NULL; local
[all...]
H A Dbtf_write.c406 struct btf *btf1 = NULL, *btf2 = NULL; local
409 btf1 = btf__new_empty();
410 if (!ASSERT_OK_PTR(btf1, "btf1"))
417 gen_btf(btf1);
420 id = btf__add_btf(btf1, btf2);
425 btf1,
496 btf__free(btf1);
H A Dbtf_split.c18 struct btf *btf1, *btf2; local
21 btf1 = btf__new_empty();
22 if (!ASSERT_OK_PTR(btf1, "empty_main_btf"))
25 btf__set_pointer_size(btf1, 8); /* enforce 64-bit arch */
27 btf__add_int(btf1, "int", 4, BTF_INT_SIGNED); /* [1] int */
28 btf__add_ptr(btf1, 1); /* [2] ptr to int */
30 btf__add_struct(btf1, "s1", 4); /* [3] struct s1 { */
31 btf__add_field(btf1, "f1", 1, 0, 0); /* int f1; */
34 btf2 = btf__new_empty_split(btf1);
56 t = btf__type_by_id(btf1,
[all...]

Completed in 268 milliseconds