Searched refs:btf1 (Results 1 – 5 of 5) sorted by relevance
/linux/tools/testing/selftests/bpf/prog_tests/ |
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() 25 btf1, in test_split_simple() 123 btf__free(btf1); in test_split_simple() 127 struct btf *btf1, *btf2; in test_split_fwd_resolve() local 130 btf1 = btf__new_empty(); in test_split_fwd_resolve() 148 btf1, in test_split_fwd_resolve() 206 btf__free(btf1); in test_split_fwd_resolve() 210 struct btf *btf1, *btf2; in test_split_struct_duped() local 229 btf1, in test_split_struct_duped() [all …]
|
A D | btf_split.c | 19 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 …]
|
A D | btf_write.c | 347 struct btf *btf1 = NULL, *btf2 = NULL; in test_btf_add_btf() local 350 btf1 = btf__new_empty(); in test_btf_add_btf() 351 if (!ASSERT_OK_PTR(btf1, "btf1")) in test_btf_add_btf() 358 gen_btf(btf1); in test_btf_add_btf() 361 id = btf__add_btf(btf1, btf2); in test_btf_add_btf() 366 btf1, in test_btf_add_btf() 425 btf__free(btf1); in test_btf_add_btf()
|
/linux/tools/lib/bpf/ |
A D | linker.c | 1291 const struct btf *btf1, __u32 id1, in glob_sym_btf_matches() argument 1301 t1 = skip_mods_and_typedefs(btf1, id1, &id1); in glob_sym_btf_matches() 1306 n1 = btf__str_by_offset(btf1, t1->name_off); in glob_sym_btf_matches() 1345 n1 = btf__str_by_offset(btf1, t1->name_off); in glob_sym_btf_matches() 1426 n1 = btf__str_by_offset(btf1, m1->name_off); in glob_sym_btf_matches() 1438 if (!glob_sym_btf_matches(sym_name, exact, btf1, m1->type, btf2, m2->type)) in glob_sym_btf_matches() 1458 if (!glob_sym_btf_matches(sym_name, exact, btf1, m1->type, btf2, m2->type)) in glob_sym_btf_matches()
|
/linux/kernel/bpf/ |
A D | btf.c | 5291 if (btf1 == btf2) in btf_types_are_same() 5425 struct btf *btf1, const struct btf_type *t1, in btf_check_func_type_match() argument 5432 fn1 = btf_name_by_offset(btf1, t1->name_off); in btf_check_func_type_match() 5444 t1 = btf_type_by_id(btf1, t1->type); in btf_check_func_type_match() 5462 t1 = btf_type_skip_modifiers(btf1, t1->type, NULL); in btf_check_func_type_match() 5473 t1 = btf_type_skip_modifiers(btf1, args1[i].type, NULL); in btf_check_func_type_match() 5502 t1 = btf_type_skip_modifiers(btf1, t1->type, NULL); in btf_check_func_type_match() 5522 s1 = btf_name_by_offset(btf1, t1->name_off); in btf_check_func_type_match() 5538 struct btf *btf1 = prog->aux->btf; in btf_check_type_match() local 5551 t1 = btf_type_by_id(btf1, btf_id); in btf_check_type_match() [all …]
|
Completed in 22 milliseconds