btf__add_struct
err = btf__add_struct(btf_new, name, type->size);
LIBBPF_API int btf__add_struct(struct btf *btf, const char *name, __u32 sz);
struct_id = btf__add_struct(btf, ctx_name, 0);
btf__add_struct(btf1, "s1", 16); /* [4] struct s1 { */
btf__add_struct(btf1, "s2", 4); /* [5] struct s2 { */
btf__add_struct(btf1, "s3", 4); /* [6] struct s3 { */
btf__add_struct(btf2, "s1", 16); /* [11] struct s1 { */
btf__add_struct(btf1, "s1", 4); /* [3] struct s1 { */
btf__add_struct(btf1, "s1", 16); /* [5] struct s1 { */
btf__add_struct(btf2, "s1", 16); /* [10] struct s1 { */
btf__add_struct(btf2, "s2", 40); /* [11] struct s2 { */
btf__add_struct(btf2, "s3", 8); /* [13] struct s3 { */
btf__add_struct(btf, "s", 8); /* [2] struct s { */
btf__add_struct(btf, "(anon)", 8); /* [3] struct anon { */
btf__add_struct(btf, "(anon)", 8); /* [4] struct anon { */
btf__add_struct(btf2, "s2", 16); /* [4] struct s2 { */
btf__add_struct(btf2, "s1", 4); /* [6] struct s1 { */
btf__add_struct(btf2, "with_embedded", 4); /* [26] struct with_embedded { */
btf__add_struct(btf1, "s1", 8); /* [3] struct s1 { */
btf__add_struct(btf1, "", 12); /* [4] struct { */
btf__add_struct(btf1, "unneeded", 4); /* [12] struct unneeded { */
btf__add_struct(btf1, "embedded", 4); /* [13] struct embedded { */
btf__add_struct(btf1, "s1", 4); /* [2] struct s1 { */
btf__add_struct(btf1, "from_proto", 4); /* [16] struct from_proto { */
btf__add_struct(btf2, "with_embedded", 8); /* [3] struct with_embedded { */
btf__add_struct(btf5, "s1", 8); /* [2] struct s1 { */
id = btf__add_struct(btf, "s", 4);
id = btf__add_struct(btf, "s", 4);
id = btf__add_struct(btf, "s", 8);
btf__add_struct(btf, "s1", 12); /* [5] struct s1 { */
btf__add_struct(split_btf, "s1", 4); /* [3] struct s1 { */
btf__add_struct(split_btf, "s2", 4); /* [4] struct s2 { */
btf__add_struct(btf, "s1", 4); /* [3] struct s1 { */
btf__add_struct(btf, "s2", 4); /* [4] struct s2 { */
btf__add_struct(btf1, "s1", 4); /* [3] struct s1 { */
btf__add_struct(btf2, "s2", 16); /* [4] struct s2 { */
id = btf__add_struct(btf, "s1", 8);
id = btf__add_struct(btf, "test_struct", 20 /* bytes */);
lid = btf__add_struct(btf, "bpf_spin_lock", 4);
hid = btf__add_struct(btf, "bpf_list_head", 16);
nid = btf__add_struct(btf, "bpf_list_node", 24);
bpf_rb_node_btf_id = btf__add_struct(btf, "bpf_rb_node", 32);
bpf_refcount_btf_id = btf__add_struct(btf, "bpf_refcount", 4);
id = btf__add_struct(btf, "bar", refcount_field ? 60 : 56);
foo_btf_id = btf__add_struct(btf, "foo", 20);
id = btf__add_struct(btf, "foo", 24);
id = btf__add_struct(btf, "foo", 16);
id = btf__add_struct(btf, "baz", 16);
id = btf__add_struct(btf, "foo", 36);
id = btf__add_struct(btf, "foo", 24);
id = btf__add_struct(btf, "foo", 24);
id = btf__add_struct(btf, "foo", 24);
id = btf__add_struct(btf, "foo", 20);
id = btf__add_struct(btf, "bar", 4);
id = btf__add_struct(btf, "foo", 52);
id = btf__add_struct(btf, "foo", 44);
id = btf__add_struct(btf, "foo", 44);
id = btf__add_struct(btf, "bar", 44);
id = btf__add_struct(btf, "foo", 28);
id = btf__add_struct(btf, "bar", 24);
id = btf__add_struct(btf, "foo", 28);
id = btf__add_struct(btf, "bar", 44);
id = btf__add_struct(btf, "baz", 24);
id = btf__add_struct(btf, "foo", 44);
id = btf__add_struct(btf, "bar", 44);
id = btf__add_struct(btf, "baz", 24);
id = btf__add_struct(btf, "foo", 20);
id = btf__add_struct(btf, "bar", 44);
id = btf__add_struct(btf, "baz", 44);
id = btf__add_struct(btf, "bam", 24);