/linux-6.6.21/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 | 286 err = btf__add_field(btf, "a", LIST_NODE, 0, 0); in list_and_rb_node_same_struct() 289 err = btf__add_field(btf, "c", bpf_rb_node_btf_id, 192, 0); in list_and_rb_node_same_struct() 293 err = btf__add_field(btf, "ref", bpf_refcount_btf_id, 448, 0); in list_and_rb_node_same_struct() 301 err = btf__add_field(btf, "a", LIST_HEAD, 0, 0); in list_and_rb_node_same_struct() 304 err = btf__add_field(btf, "b", SPIN_LOCK, 128, 0); in list_and_rb_node_same_struct() 328 err = btf__add_field(btf, "a", SPIN_LOCK, 0, 0); in test_btf() 331 err = btf__add_field(btf, "b", SPIN_LOCK, 32, 0); in test_btf() 334 err = btf__add_field(btf, "c", LIST_HEAD, 64, 0); in test_btf() 351 err = btf__add_field(btf, "a", LIST_HEAD, 0, 0); in test_btf() 360 err = btf__add_field(btf, "a", LIST_NODE, 0, 0); in test_btf() [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 | 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.6.21/tools/lib/bpf/ |
D | libbpf.map | 216 btf__add_field;
|
D | btf.h | 184 LIBBPF_API int btf__add_field(struct btf *btf, const char *name, int field_type_id,
|
D | btf.c | 2009 int btf__add_field(struct btf *btf, const char *name, int type_id, in btf__add_field() function
|
/linux-6.6.21/tools/bpf/bpftool/ |
D | gen.c | 2195 err = btf__add_field(btf_new, name, m->type, in btfgen_get_btf()
|