| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | btf_dedup_split.c | 21 btf__add_field(btf1, "f1", 1, 0, 0); /* int f1; */ in test_split_simple() 57 btf__add_field(btf2, "f1", 7, 0, 0); /* struct s1 f1; */ in test_split_simple() 58 btf__add_field(btf2, "f2", 6, 32, 0); /* int f2; */ in test_split_simple() 59 btf__add_field(btf2, "f3", 2, 64, 0); /* int *f3; */ in test_split_simple() 67 btf__add_field(btf2, "f1", 6, 0, 0); /* int f1; */ in test_split_simple() 156 btf__add_field(btf1, "f1", 2, 0, 0); /* struct s1 *f1; */ in test_split_fwd_resolve() 157 btf__add_field(btf1, "f2", 3, 64, 0); /* struct s2 *f2; */ in test_split_fwd_resolve() 160 btf__add_field(btf1, "f1", 1, 0, 0); /* int f1; */ in test_split_fwd_resolve() 164 btf__add_field(btf1, "f1", 1, 0, 0); /* int f1; */ in test_split_fwd_resolve() 189 btf__add_field(btf in test_split_fwd_resolve() [all...] |
| H A D | linked_list.c | 301 err = btf__add_field(btf, "a", LIST_NODE, 0, 0); in list_and_rb_node_same_struct() 304 err = btf__add_field(btf, "c", bpf_rb_node_btf_id, 192, 0); in list_and_rb_node_same_struct() 308 err = btf__add_field(btf, "ref", bpf_refcount_btf_id, 448, 0); in list_and_rb_node_same_struct() 316 err = btf__add_field(btf, "a", LIST_HEAD, 0, 0); in list_and_rb_node_same_struct() 319 err = btf__add_field(btf, "b", SPIN_LOCK, 128, 0); in list_and_rb_node_same_struct() 343 err = btf__add_field(btf, "a", SPIN_LOCK, 0, 0); in test_btf() 346 err = btf__add_field(btf, "b", SPIN_LOCK, 32, 0); in test_btf() 349 err = btf__add_field(btf, "c", LIST_HEAD, 64, 0); in test_btf() 366 err = btf__add_field(btf, "a", LIST_HEAD, 0, 0); in test_btf() 375 err = btf__add_field(btf, "a", LIST_NODE, 0, 0); in test_btf() [all …]
|
| H A D | local_kptr_ownership.c | 67 err = btf__add_field(btf, "next", 6, 0, 0); in test_self_cycle() 94 err = btf__add_field(btf, "b", 6, 0, 0); in test_aba_cycle() 100 err = btf__add_field(btf, "a", 8, 0, 0); in test_aba_cycle() 124 err = btf__add_field(btf, "root", LIST_HEAD, 0, 0); in test_mixed_cycle() 127 err = btf__add_field(btf, "lock", SPIN_LOCK, 128, 0); in test_mixed_cycle() 136 err = btf__add_field(btf, "node", LIST_NODE, 0, 0); in test_mixed_cycle() 139 err = btf__add_field(btf, "owner", 6, 192, 0); in test_mixed_cycle() 183 err = btf__add_field(btf, "suffix", ptr_id[1], 0, 0); in test_acyclic_depth() 188 err = btf__add_field(btf, "next", ptr_id[i], offset, 0); in test_acyclic_depth() 232 err = btf__add_field(btf, "node", node_type, 0, 0); in test_graph_depth() [all …]
|
| H A 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 …]
|
| H A D | btf_split.c | 66 btf__add_field(btf1, "f1", 1, 0, 0); /* int f1; */ in test_btf_split() 86 btf__add_field(btf2, "f1", 3, 0, 0); /* struct s1 f1; */ in test_btf_split() 87 btf__add_field(btf2, "f2", 1, 32, 0); /* int f2; */ in test_btf_split() 88 btf__add_field(btf2, "f3", 2, 64, 0); /* int *f3; */ in test_btf_split() 110 btf__add_field(btf3, "f1", 4, 0, 0); /* struct s2 f1; */ 111 btf__add_field(btf3, "uf2", 1, 0, 0); /* int f2; */
|
| H A 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()
|
| H A 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()
|
| H A 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() 527 btf__add_field(split1, "x", 1, 0, 0); /* refers to base int */ 548 btf__add_field(split2, "p", 3, 0, 0); /* refers to split2's own typedef */
|
| H A D | btf_dump.c | 225 err = btf__add_field(btf, "x", 4, 0, 0); in test_btf_dump_incremental() 263 err = btf__add_field(btf, "x", 2, 0, 0); in test_btf_dump_incremental() 265 err = btf__add_field(btf, "y", 3, 32, 0); in test_btf_dump_incremental() 267 err = btf__add_field(btf, "s", 6, 64, 0); in test_btf_dump_incremental() 314 err = btf__add_field(btf, "p1", 2, 0, 0); in test_btf_dump_type_tags() 316 err = btf__add_field(btf, "p2", 4, 0, 0); in test_btf_dump_type_tags()
|
| /linux/tools/lib/bpf/ |
| H A D | libbpf.map | 216 btf__add_field;
|
| H A D | btf.h | 236 LIBBPF_API int btf__add_field(struct btf *btf, const char *name, int field_type_id,
|
| H A D | btf.c | 2643 int btf__add_field(struct btf *btf, const char *name, int type_id, in btf__add_field() function
|
| /linux/tools/bpf/bpftool/ |
| H A D | gen.c | 2582 err = btf__add_field(btf_new, name, m->type, in btfgen_get_btf()
|