/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | btf_dedup_split.c | 21 btf__add_field(btf1, "f1", 1, 0, 0); /* int f1; */ in test_split_simple() 53 btf__add_field(btf2, "f1", 6, 0, 0); /* struct s1 f1; */ in test_split_simple() 54 btf__add_field(btf2, "f2", 5, 32, 0); /* int f2; */ in test_split_simple() 55 btf__add_field(btf2, "f3", 2, 64, 0); /* int *f3; */ in test_split_simple() 63 btf__add_field(btf2, "f1", 5, 0, 0); /* int f1; */ in test_split_simple() 140 btf__add_field(btf1, "f1", 2, 0, 0); /* struct s1 *f1; */ in test_split_fwd_resolve() 141 btf__add_field(btf1, "f2", 3, 64, 0); /* struct s2 *f2; */ in test_split_fwd_resolve() 144 btf__add_field(btf1, "f1", 1, 0, 0); /* int f1; */ in test_split_fwd_resolve() 148 btf__add_field(btf1, "f1", 1, 0, 0); /* int f1; */ in test_split_fwd_resolve() 173 btf__add_field(btf2, "f1", 8, 0, 0); /* struct s1 *f1; */ in test_split_fwd_resolve() [all …]
|
D | linked_list.c | 298 err = btf__add_field(btf, "a", LIST_NODE, 0, 0); in list_and_rb_node_same_struct() 301 err = btf__add_field(btf, "c", bpf_rb_node_btf_id, 192, 0); in list_and_rb_node_same_struct() 305 err = btf__add_field(btf, "ref", bpf_refcount_btf_id, 448, 0); in list_and_rb_node_same_struct() 313 err = btf__add_field(btf, "a", LIST_HEAD, 0, 0); in list_and_rb_node_same_struct() 316 err = btf__add_field(btf, "b", SPIN_LOCK, 128, 0); in list_and_rb_node_same_struct() 340 err = btf__add_field(btf, "a", SPIN_LOCK, 0, 0); in test_btf() 343 err = btf__add_field(btf, "b", SPIN_LOCK, 32, 0); in test_btf() 346 err = btf__add_field(btf, "c", LIST_HEAD, 64, 0); in test_btf() 363 err = btf__add_field(btf, "a", LIST_HEAD, 0, 0); in test_btf() 372 err = btf__add_field(btf, "a", LIST_NODE, 0, 0); in test_btf() [all …]
|
D | btf_distill.c | 25 btf__add_field(btf1, "f1", 2, 0, 0); /* int *f1; */ in test_distilled_base() 28 btf__add_field(btf1, "f1", 1, 0, 0); /* int f1; */ in test_distilled_base() 29 btf__add_field(btf1, "f2", 3, 32, 0); /* struct s1 f2; */ in test_distilled_base() 33 btf__add_field(btf1, "f1", 1, 0, 0); /* int f1; */ in test_distilled_base() 34 btf__add_field(btf1, "f2", 2, 0, 0); /* int *f2; */ in test_distilled_base() 37 btf__add_field(btf1, "f1", 1, 0, 0); /* int f1; */ in test_distilled_base() 52 btf__add_field(btf1, "f1", 1, 0, 0); /* int f1; */ in test_distilled_base() 55 btf__add_field(btf1, "f1", 1, 0, 0); /* int f1; */ in test_distilled_base() 63 btf__add_field(btf1, "f1", 1, 0, 0); /* int f1; */ in test_distilled_base() 66 btf__add_field(btf1, "f1", 1, 0, 0); /* int f1; */ in test_distilled_base() [all …]
|
D | btf_split.c | 31 btf__add_field(btf1, "f1", 1, 0, 0); /* int f1; */ in test_btf_split() 51 btf__add_field(btf2, "f1", 3, 0, 0); /* struct s1 f1; */ in test_btf_split() 52 btf__add_field(btf2, "f2", 1, 32, 0); /* int f2; */ in test_btf_split() 53 btf__add_field(btf2, "f3", 2, 64, 0); /* int *f3; */ in test_btf_split()
|
D | btf_field_iter.c | 55 btf__add_field(btf, "f1", 3, 0, 0); /* int *f1; */ in test_btf_field_iter() 56 btf__add_field(btf, "f2", 1, 0, 0); /* int f2; */ in test_btf_field_iter() 59 btf__add_field(btf, "f1", 1, 0, 0); /* int f1; */ in test_btf_field_iter() 60 btf__add_field(btf, "f2", 5, 0, 0); /* struct s1 f2; */ in test_btf_field_iter()
|
D | core_autosize.c | 101 err = btf__add_field(btf, "ptr", void_ptr_id, 0, 0); in test_core_autosize() 102 err = err ?: btf__add_field(btf, "val2", int_id, 32, 0); in test_core_autosize() 103 err = err ?: btf__add_field(btf, "val1", long_long_id, 64, 0); in test_core_autosize() 104 err = err ?: btf__add_field(btf, "val3", short_id, 128, 0); in test_core_autosize() 105 err = err ?: btf__add_field(btf, "val4", char_id, 144, 0); in test_core_autosize()
|
D | btf_write.c | 99 err = btf__add_field(btf, "field", 1, 0, 0); in gen_btf() 103 err = btf__add_field(btf, "f1", 1, 0, 0); in gen_btf() 105 err = btf__add_field(btf, "f2", 1, 32, 16); in gen_btf() 134 err = btf__add_field(btf, "field", 1, 1, 0); in gen_btf() 137 err = btf__add_field(btf, "f1", 1, 0, 16); in gen_btf()
|
D | btf_dump.c | 182 err = btf__add_field(btf, "x", 4, 0, 0); in test_btf_dump_incremental() 228 err = btf__add_field(btf, "x", 2, 0, 0); in test_btf_dump_incremental() 230 err = btf__add_field(btf, "y", 3, 32, 0); in test_btf_dump_incremental() 232 err = btf__add_field(btf, "s", 6, 64, 0); in test_btf_dump_incremental()
|
/linux-6.12.1/tools/lib/bpf/ |
D | libbpf.map | 216 btf__add_field;
|
D | btf.h | 206 LIBBPF_API int btf__add_field(struct btf *btf, const char *name, int field_type_id,
|
D | btf.c | 2250 int btf__add_field(struct btf *btf, const char *name, int type_id, in btf__add_field() function
|
/linux-6.12.1/tools/bpf/bpftool/ |
D | gen.c | 2489 err = btf__add_field(btf_new, name, m->type, in btfgen_get_btf()
|