Home
last modified time | relevance | path

Searched refs:btf__add_field (Results 1 – 12 of 12) sorted by relevance

/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dbtf_dedup_split.c21 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 …]
Dlinked_list.c298 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 …]
Dbtf_distill.c25 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 …]
Dbtf_split.c31 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()
Dbtf_field_iter.c55 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()
Dcore_autosize.c101 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()
Dbtf_write.c99 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()
Dbtf_dump.c182 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/
Dlibbpf.map216 btf__add_field;
Dbtf.h206 LIBBPF_API int btf__add_field(struct btf *btf, const char *name, int field_type_id,
Dbtf.c2250 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/
Dgen.c2489 err = btf__add_field(btf_new, name, m->type, in btfgen_get_btf()