Symbol: btf__add_struct
tools/bpf/bpftool/gen.c
2532
err = btf__add_struct(btf_new, name, type->size);
tools/lib/bpf/btf.h
212
LIBBPF_API int btf__add_struct(struct btf *btf, const char *name, __u32 sz);
tools/lib/bpf/libbpf.c
7341
struct_id = btf__add_struct(btf, ctx_name, 0);
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
139
btf__add_struct(btf1, "s1", 16); /* [4] struct s1 { */
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
143
btf__add_struct(btf1, "s2", 4); /* [5] struct s2 { */
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
147
btf__add_struct(btf1, "s3", 4); /* [6] struct s3 { */
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
172
btf__add_struct(btf2, "s1", 16); /* [11] struct s1 { */
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
20
btf__add_struct(btf1, "s1", 4); /* [3] struct s1 { */
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
238
btf__add_struct(btf1, "s1", 16); /* [5] struct s1 { */
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
261
btf__add_struct(btf2, "s1", 16); /* [10] struct s1 { */
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
265
btf__add_struct(btf2, "s2", 40); /* [11] struct s2 { */
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
272
btf__add_struct(btf2, "s3", 8); /* [13] struct s3 { */
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
339
btf__add_struct(btf, "s", 8); /* [2] struct s { */
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
344
btf__add_struct(btf, "(anon)", 8); /* [3] struct anon { */
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
349
btf__add_struct(btf, "(anon)", 8); /* [4] struct anon { */
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
52
btf__add_struct(btf2, "s2", 16); /* [4] struct s2 { */
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
62
btf__add_struct(btf2, "s1", 4); /* [6] struct s1 { */
tools/testing/selftests/bpf/prog_tests/btf_distill.c
116
btf__add_struct(btf2, "with_embedded", 4); /* [26] struct with_embedded { */
tools/testing/selftests/bpf/prog_tests/btf_distill.c
24
btf__add_struct(btf1, "s1", 8); /* [3] struct s1 { */
tools/testing/selftests/bpf/prog_tests/btf_distill.c
27
btf__add_struct(btf1, "", 12); /* [4] struct { */
tools/testing/selftests/bpf/prog_tests/btf_distill.c
51
btf__add_struct(btf1, "unneeded", 4); /* [12] struct unneeded { */
tools/testing/selftests/bpf/prog_tests/btf_distill.c
54
btf__add_struct(btf1, "embedded", 4); /* [13] struct embedded { */
tools/testing/selftests/bpf/prog_tests/btf_distill.c
617
btf__add_struct(btf1, "s1", 4); /* [2] struct s1 { */
tools/testing/selftests/bpf/prog_tests/btf_distill.c
62
btf__add_struct(btf1, "from_proto", 4); /* [16] struct from_proto { */
tools/testing/selftests/bpf/prog_tests/btf_distill.c
630
btf__add_struct(btf2, "with_embedded", 8); /* [3] struct with_embedded { */
tools/testing/selftests/bpf/prog_tests/btf_distill.c
661
btf__add_struct(btf5, "s1", 8); /* [2] struct s1 { */
tools/testing/selftests/bpf/prog_tests/btf_dump.c
223
id = btf__add_struct(btf, "s", 4);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
261
id = btf__add_struct(btf, "s", 4);
tools/testing/selftests/bpf/prog_tests/btf_dump.c
312
id = btf__add_struct(btf, "s", 8);
tools/testing/selftests/bpf/prog_tests/btf_field_iter.c
54
btf__add_struct(btf, "s1", 12); /* [5] struct s1 { */
tools/testing/selftests/bpf/prog_tests/btf_permute.c
165
btf__add_struct(split_btf, "s1", 4); /* [3] struct s1 { */
tools/testing/selftests/bpf/prog_tests/btf_permute.c
168
btf__add_struct(split_btf, "s2", 4); /* [4] struct s2 { */
tools/testing/selftests/bpf/prog_tests/btf_permute.c
36
btf__add_struct(btf, "s1", 4); /* [3] struct s1 { */
tools/testing/selftests/bpf/prog_tests/btf_permute.c
39
btf__add_struct(btf, "s2", 4); /* [4] struct s2 { */
tools/testing/selftests/bpf/prog_tests/btf_split.c
65
btf__add_struct(btf1, "s1", 4); /* [3] struct s1 { */
tools/testing/selftests/bpf/prog_tests/btf_split.c
85
btf__add_struct(btf2, "s2", 16); /* [4] struct s2 { */
tools/testing/selftests/bpf/prog_tests/btf_write.c
101
id = btf__add_struct(btf, "s1", 8);
tools/testing/selftests/bpf/prog_tests/core_autosize.c
99
id = btf__add_struct(btf, "test_struct", 20 /* bytes */);
tools/testing/selftests/bpf/prog_tests/linked_list.c
261
lid = btf__add_struct(btf, "bpf_spin_lock", 4);
tools/testing/selftests/bpf/prog_tests/linked_list.c
264
hid = btf__add_struct(btf, "bpf_list_head", 16);
tools/testing/selftests/bpf/prog_tests/linked_list.c
267
nid = btf__add_struct(btf, "bpf_list_node", 24);
tools/testing/selftests/bpf/prog_tests/linked_list.c
286
bpf_rb_node_btf_id = btf__add_struct(btf, "bpf_rb_node", 32);
tools/testing/selftests/bpf/prog_tests/linked_list.c
291
bpf_refcount_btf_id = btf__add_struct(btf, "bpf_refcount", 4);
tools/testing/selftests/bpf/prog_tests/linked_list.c
296
id = btf__add_struct(btf, "bar", refcount_field ? 60 : 56);
tools/testing/selftests/bpf/prog_tests/linked_list.c
311
foo_btf_id = btf__add_struct(btf, "foo", 20);
tools/testing/selftests/bpf/prog_tests/linked_list.c
338
id = btf__add_struct(btf, "foo", 24);
tools/testing/selftests/bpf/prog_tests/linked_list.c
361
id = btf__add_struct(btf, "foo", 16);
tools/testing/selftests/bpf/prog_tests/linked_list.c
370
id = btf__add_struct(btf, "baz", 16);
tools/testing/selftests/bpf/prog_tests/linked_list.c
387
id = btf__add_struct(btf, "foo", 36);
tools/testing/selftests/bpf/prog_tests/linked_list.c
413
id = btf__add_struct(btf, "foo", 24);
tools/testing/selftests/bpf/prog_tests/linked_list.c
433
id = btf__add_struct(btf, "foo", 24);
tools/testing/selftests/bpf/prog_tests/linked_list.c
456
id = btf__add_struct(btf, "foo", 24);
tools/testing/selftests/bpf/prog_tests/linked_list.c
479
id = btf__add_struct(btf, "foo", 20);
tools/testing/selftests/bpf/prog_tests/linked_list.c
491
id = btf__add_struct(btf, "bar", 4);
tools/testing/selftests/bpf/prog_tests/linked_list.c
508
id = btf__add_struct(btf, "foo", 52);
tools/testing/selftests/bpf/prog_tests/linked_list.c
537
id = btf__add_struct(btf, "foo", 44);
tools/testing/selftests/bpf/prog_tests/linked_list.c
563
id = btf__add_struct(btf, "foo", 44);
tools/testing/selftests/bpf/prog_tests/linked_list.c
578
id = btf__add_struct(btf, "bar", 44);
tools/testing/selftests/bpf/prog_tests/linked_list.c
604
id = btf__add_struct(btf, "foo", 28);
tools/testing/selftests/bpf/prog_tests/linked_list.c
616
id = btf__add_struct(btf, "bar", 24);
tools/testing/selftests/bpf/prog_tests/linked_list.c
633
id = btf__add_struct(btf, "foo", 28);
tools/testing/selftests/bpf/prog_tests/linked_list.c
645
id = btf__add_struct(btf, "bar", 44);
tools/testing/selftests/bpf/prog_tests/linked_list.c
660
id = btf__add_struct(btf, "baz", 24);
tools/testing/selftests/bpf/prog_tests/linked_list.c
677
id = btf__add_struct(btf, "foo", 44);
tools/testing/selftests/bpf/prog_tests/linked_list.c
692
id = btf__add_struct(btf, "bar", 44);
tools/testing/selftests/bpf/prog_tests/linked_list.c
707
id = btf__add_struct(btf, "baz", 24);
tools/testing/selftests/bpf/prog_tests/linked_list.c
724
id = btf__add_struct(btf, "foo", 20);
tools/testing/selftests/bpf/prog_tests/linked_list.c
736
id = btf__add_struct(btf, "bar", 44);
tools/testing/selftests/bpf/prog_tests/linked_list.c
751
id = btf__add_struct(btf, "baz", 44);
tools/testing/selftests/bpf/prog_tests/linked_list.c
766
id = btf__add_struct(btf, "bam", 24);