Symbol: btf__add_struct
tools/bpf/bpftool/gen.c
2534
err = btf__add_struct(btf_new, name, type->size);
tools/lib/bpf/btf.h
232
LIBBPF_API int btf__add_struct(struct btf *btf, const char *name, __u32 sz);
tools/lib/bpf/libbpf.c
7401
struct_id = btf__add_struct(btf, ctx_name, 0);
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
155
btf__add_struct(btf1, "s1", 16); /* [4] struct s1 { */
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
159
btf__add_struct(btf1, "s2", 4); /* [5] struct s2 { */
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
163
btf__add_struct(btf1, "s3", 4); /* [6] struct s3 { */
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
188
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
254
btf__add_struct(btf1, "s1", 16); /* [5] struct s1 { */
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
277
btf__add_struct(btf2, "s1", 16); /* [10] struct s1 { */
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
281
btf__add_struct(btf2, "s2", 40); /* [11] struct s2 { */
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
288
btf__add_struct(btf2, "s3", 8); /* [13] struct s3 { */
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
355
btf__add_struct(btf, "s", 8); /* [2] struct s { */
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
360
btf__add_struct(btf, "(anon)", 8); /* [3] struct anon { */
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
365
btf__add_struct(btf, "(anon)", 8); /* [4] struct anon { */
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
56
btf__add_struct(btf2, "s2", 16); /* [5] struct s2 { */
tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c
66
btf__add_struct(btf2, "s1", 4); /* [7] 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/btf_write.c
524
id = btf__add_struct(split1, "s1", 4);
tools/testing/selftests/bpf/prog_tests/btf_write.c
546
id = btf__add_struct(split2, "s2", 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
262
lid = btf__add_struct(btf, "bpf_spin_lock", 4);
tools/testing/selftests/bpf/prog_tests/linked_list.c
265
hid = btf__add_struct(btf, "bpf_list_head", 16);
tools/testing/selftests/bpf/prog_tests/linked_list.c
268
nid = btf__add_struct(btf, "bpf_list_node", 24);
tools/testing/selftests/bpf/prog_tests/linked_list.c
287
bpf_rb_node_btf_id = btf__add_struct(btf, "bpf_rb_node", 32);
tools/testing/selftests/bpf/prog_tests/linked_list.c
292
bpf_refcount_btf_id = btf__add_struct(btf, "bpf_refcount", 4);
tools/testing/selftests/bpf/prog_tests/linked_list.c
297
id = btf__add_struct(btf, "bar", refcount_field ? 60 : 56);
tools/testing/selftests/bpf/prog_tests/linked_list.c
312
foo_btf_id = btf__add_struct(btf, "foo", 20);
tools/testing/selftests/bpf/prog_tests/linked_list.c
339
id = btf__add_struct(btf, "foo", 24);
tools/testing/selftests/bpf/prog_tests/linked_list.c
362
id = btf__add_struct(btf, "foo", 16);
tools/testing/selftests/bpf/prog_tests/linked_list.c
371
id = btf__add_struct(btf, "baz", 16);
tools/testing/selftests/bpf/prog_tests/linked_list.c
388
id = btf__add_struct(btf, "foo", 36);
tools/testing/selftests/bpf/prog_tests/linked_list.c
414
id = btf__add_struct(btf, "foo", 24);
tools/testing/selftests/bpf/prog_tests/linked_list.c
434
id = btf__add_struct(btf, "foo", 24);
tools/testing/selftests/bpf/prog_tests/linked_list.c
457
id = btf__add_struct(btf, "foo", 24);
tools/testing/selftests/bpf/prog_tests/linked_list.c
480
id = btf__add_struct(btf, "foo", 20);
tools/testing/selftests/bpf/prog_tests/linked_list.c
492
id = btf__add_struct(btf, "bar", 4);
tools/testing/selftests/bpf/prog_tests/linked_list.c
509
id = btf__add_struct(btf, "foo", 52);
tools/testing/selftests/bpf/prog_tests/linked_list.c
538
id = btf__add_struct(btf, "foo", 44);
tools/testing/selftests/bpf/prog_tests/linked_list.c
564
id = btf__add_struct(btf, "foo", 44);
tools/testing/selftests/bpf/prog_tests/linked_list.c
579
id = btf__add_struct(btf, "bar", 44);
tools/testing/selftests/bpf/prog_tests/linked_list.c
605
id = btf__add_struct(btf, "foo", 28);
tools/testing/selftests/bpf/prog_tests/linked_list.c
617
id = btf__add_struct(btf, "bar", 24);
tools/testing/selftests/bpf/prog_tests/linked_list.c
634
id = btf__add_struct(btf, "foo", 28);
tools/testing/selftests/bpf/prog_tests/linked_list.c
646
id = btf__add_struct(btf, "bar", 44);
tools/testing/selftests/bpf/prog_tests/linked_list.c
661
id = btf__add_struct(btf, "baz", 24);
tools/testing/selftests/bpf/prog_tests/linked_list.c
678
id = btf__add_struct(btf, "foo", 44);
tools/testing/selftests/bpf/prog_tests/linked_list.c
693
id = btf__add_struct(btf, "bar", 44);
tools/testing/selftests/bpf/prog_tests/linked_list.c
708
id = btf__add_struct(btf, "baz", 24);
tools/testing/selftests/bpf/prog_tests/linked_list.c
725
id = btf__add_struct(btf, "foo", 20);
tools/testing/selftests/bpf/prog_tests/linked_list.c
737
id = btf__add_struct(btf, "bar", 44);
tools/testing/selftests/bpf/prog_tests/linked_list.c
752
id = btf__add_struct(btf, "baz", 44);
tools/testing/selftests/bpf/prog_tests/linked_list.c
767
id = btf__add_struct(btf, "bam", 24);