| /linux-6.15/tools/testing/selftests/bpf/prog_tests/ |
| H A D | btf_dedup_split.c | 9 struct btf *btf1, *btf2; in test_split_simple() local 67 btf2, in test_split_simple() 100 btf2, in test_split_simple() 122 btf__free(btf2); in test_split_simple() 180 btf2, in test_split_fwd_resolve() 206 btf2, in test_split_fwd_resolve() 220 btf__free(btf2); in test_split_fwd_resolve() 277 btf2, in test_split_struct_duped() 306 btf2, in test_split_struct_duped() 404 btf2, in test_split_dup_struct_in_cu() [all …]
|
| H A D | btf_distill.c | 125 btf2, in test_distilled_base() 290 btf__free(btf2); in test_distilled_base() 317 btf2, in test_distilled_base_multi() 345 btf__free(btf2); in test_distilled_base_multi() 371 btf2, in test_distilled_base_missing_err() 399 btf__free(btf2); in test_distilled_base_missing_err() 425 btf2, in test_distilled_base_multi_err() 444 btf__free(btf2); in test_distilled_base_multi_err() 467 btf2, in test_distilled_base_multi_err2() 493 btf__free(btf2); in test_distilled_base_multi_err2() [all …]
|
| H A D | btf_split.c | 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() 50 btf__add_struct(btf2, "s2", 16); /* [4] struct s2 { */ in test_btf_split() 52 btf__add_field(btf2, "f2", 1, 32, 0); /* int f2; */ in test_btf_split() 59 t = btf__type_by_id(btf2, 4); in test_btf_split() 73 for (i = 1; i < btf__type_cnt(btf2); i++) { in test_btf_split() [all …]
|
| H A D | btf_write.c | 406 struct btf *btf1 = NULL, *btf2 = NULL; in test_btf_add_btf() local 413 btf2 = btf__new_empty(); in test_btf_add_btf() 414 if (!ASSERT_OK_PTR(btf2, "btf2")) in test_btf_add_btf() 418 gen_btf(btf2); in test_btf_add_btf() 420 id = btf__add_btf(btf1, btf2); in test_btf_add_btf() 497 btf__free(btf2); in test_btf_add_btf()
|
| /linux-6.15/include/linux/ |
| H A D | btf.h | 591 const struct btf *btf2, u32 id2); 673 const struct btf *btf2, u32 id2) in btf_types_are_same() argument
|
| /linux-6.15/tools/lib/bpf/ |
| H A D | linker.c | 1485 const struct btf *btf2, __u32 id2) in glob_sym_btf_matches() argument 1495 t2 = skip_mods_and_typedefs(btf2, id2, &id2); in glob_sym_btf_matches() 1500 n2 = btf__str_by_offset(btf2, t2->name_off); in glob_sym_btf_matches() 1540 n2 = btf__str_by_offset(btf2, t2->name_off); in glob_sym_btf_matches() 1622 n2 = btf__str_by_offset(btf2, m2->name_off); in glob_sym_btf_matches() 1633 if (!glob_sym_btf_matches(sym_name, exact, btf1, m1->type, btf2, m2->type)) in glob_sym_btf_matches() 1653 if (!glob_sym_btf_matches(sym_name, exact, btf1, m1->type, btf2, m2->type)) in glob_sym_btf_matches()
|
| /linux-6.15/kernel/bpf/ |
| H A D | btf.c | 7250 const struct btf *btf2, u32 id2) in btf_types_are_same() argument 7254 if (btf1 == btf2) in btf_types_are_same() 7414 struct btf *btf2, const struct btf_type *t2) in btf_check_func_type_match() argument 7421 fn2 = btf_name_by_offset(btf2, t2->name_off); in btf_check_func_type_match() 7435 t2 = btf_type_by_id(btf2, t2->type); in btf_check_func_type_match() 7451 t2 = btf_type_skip_modifiers(btf2, t2->type, NULL); in btf_check_func_type_match() 7462 t2 = btf_type_skip_modifiers(btf2, args2[i].type, NULL); in btf_check_func_type_match() 7491 t2 = btf_type_skip_modifiers(btf2, t2->type, NULL); in btf_check_func_type_match() 7511 s2 = btf_name_by_offset(btf2, t2->name_off); in btf_check_func_type_match() 7524 struct btf *btf2, const struct btf_type *t2) in btf_check_type_match() argument [all …]
|