/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | btf_dedup_split.c | 9 struct btf *btf1, *btf2; local 36 btf2 = btf__new_empty_split(btf1); 37 if (!ASSERT_OK_PTR(btf2, "empty_split_btf")) 41 ASSERT_EQ(btf__pointer_size(btf2), 8, "inherit_ptr_sz"); 43 str_off = btf__find_str(btf2, "int"); 46 t = btf__type_by_id(btf2, 1); 50 ASSERT_STREQ(btf__str_by_offset(btf2, t->name_off), "int", "int_name"); 52 btf__add_struct(btf2, "s2", 16); /* [4] struct s2 { */ 53 btf__add_field(btf2, "f1", 6, 0, 0); /* struct s1 f1; */ 54 btf__add_field(btf2, "f 127 struct btf *btf1, *btf2; local 225 struct btf *btf1, *btf2; local 358 struct btf *btf1, *btf2 = NULL; local [all...] |
H A D | btf_split.c | 18 struct btf *btf1, *btf2; local 34 btf2 = btf__new_empty_split(btf1); 35 if (!ASSERT_OK_PTR(btf2, "empty_split_btf")) 39 ASSERT_EQ(btf__pointer_size(btf2), 8, "inherit_ptr_sz"); 41 str_off = btf__find_str(btf2, "int"); 44 t = btf__type_by_id(btf2, 1); 48 ASSERT_STREQ(btf__str_by_offset(btf2, t->name_off), "int", "int_name"); 50 btf__add_struct(btf2, "s2", 16); /* [4] struct s2 { */ 51 btf__add_field(btf2, "f1", 3, 0, 0); /* struct s1 f1; */ 52 btf__add_field(btf2, "f [all...] |
H A D | btf_write.c | 406 struct btf *btf1 = NULL, *btf2 = NULL; local 413 btf2 = btf__new_empty(); 414 if (!ASSERT_OK_PTR(btf2, "btf2")) 418 gen_btf(btf2); 420 id = btf__add_btf(btf1, btf2); 497 btf__free(btf2);
|
/linux-master/include/linux/ |
H A D | btf.h | 539 const struct btf *btf2, u32 id2); 588 const struct btf *btf2, u32 id2) 587 btf_types_are_same(const struct btf *btf1, u32 id1, const struct btf *btf2, u32 id2) argument
|
/linux-master/tools/lib/bpf/ |
H A D | linker.c | 1319 const struct btf *btf2, __u32 id2) 1329 t2 = skip_mods_and_typedefs(btf2, id2, &id2); 1334 n2 = btf__str_by_offset(btf2, t2->name_off); 1374 n2 = btf__str_by_offset(btf2, t2->name_off); 1456 n2 = btf__str_by_offset(btf2, m2->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 D | btf.c | 6731 const struct btf *btf2, u32 id2) 6735 if (btf1 == btf2) 6737 return btf_type_by_id(btf1, id1) == btf_type_by_id(btf2, id2); 6887 * t2 points to BTF_KIND_FUNC in btf2 6895 struct btf *btf2, const struct btf_type *t2) 6902 fn2 = btf_name_by_offset(btf2, t2->name_off); 6916 t2 = btf_type_by_id(btf2, t2->type); 6932 t2 = btf_type_skip_modifiers(btf2, t2->type, NULL); 6943 t2 = btf_type_skip_modifiers(btf2, args2[i].type, NULL); 6972 t2 = btf_type_skip_modifiers(btf2, 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 7004 btf_check_type_match(struct bpf_verifier_log *log, const struct bpf_prog *prog, struct btf *btf2, const struct btf_type *t2) argument [all...] |