| /linux-6.15/tools/testing/selftests/bpf/prog_tests/ |
| H A D | btf_dedup_split.c | 20 btf__add_struct(btf1, "s1", 4); /* [3] struct s1 { */ in test_split_simple() 52 btf__add_struct(btf2, "s2", 16); /* [4] struct s2 { */ in test_split_simple() 62 btf__add_struct(btf2, "s1", 4); /* [6] struct s1 { */ in test_split_simple() 139 btf__add_struct(btf1, "s1", 16); /* [4] struct s1 { */ in test_split_fwd_resolve() 143 btf__add_struct(btf1, "s2", 4); /* [5] struct s2 { */ in test_split_fwd_resolve() 147 btf__add_struct(btf1, "s3", 4); /* [6] struct s3 { */ in test_split_fwd_resolve() 172 btf__add_struct(btf2, "s1", 16); /* [11] struct s1 { */ in test_split_fwd_resolve() 238 btf__add_struct(btf1, "s1", 16); /* [5] struct s1 { */ in test_split_struct_duped() 261 btf__add_struct(btf2, "s1", 16); /* [10] struct s1 { */ in test_split_struct_duped() 265 btf__add_struct(btf2, "s2", 40); /* [11] struct s2 { */ in test_split_struct_duped() [all …]
|
| H A D | linked_list.c | 337 id = btf__add_struct(btf, "foo", 24); in test_btf() 360 id = btf__add_struct(btf, "foo", 16); in test_btf() 369 id = btf__add_struct(btf, "baz", 16); in test_btf() 386 id = btf__add_struct(btf, "foo", 36); in test_btf() 412 id = btf__add_struct(btf, "foo", 24); in test_btf() 432 id = btf__add_struct(btf, "foo", 24); in test_btf() 455 id = btf__add_struct(btf, "foo", 24); in test_btf() 478 id = btf__add_struct(btf, "foo", 20); in test_btf() 490 id = btf__add_struct(btf, "bar", 4); in test_btf() 507 id = btf__add_struct(btf, "foo", 52); in test_btf() [all …]
|
| H A D | btf_distill.c | 24 btf__add_struct(btf1, "s1", 8); /* [3] struct s1 { */ in test_distilled_base() 27 btf__add_struct(btf1, "", 12); /* [4] struct { */ in test_distilled_base() 51 btf__add_struct(btf1, "unneeded", 4); /* [12] struct unneeded { */ in test_distilled_base() 54 btf__add_struct(btf1, "embedded", 4); /* [13] struct embedded { */ in test_distilled_base() 62 btf__add_struct(btf1, "from_proto", 4); /* [16] struct from_proto { */ in test_distilled_base() 116 btf__add_struct(btf2, "with_embedded", 4); /* [26] struct with_embedded { */ in test_distilled_base() 617 btf__add_struct(btf1, "s1", 4); /* [2] struct s1 { */ in test_distilled_base_embedded_err() 630 btf__add_struct(btf2, "with_embedded", 8); /* [3] struct with_embedded { */ in test_distilled_base_embedded_err() 661 btf__add_struct(btf5, "s1", 8); /* [2] struct s1 { */ in test_distilled_base_embedded_err()
|
| H A D | btf_split.c | 30 btf__add_struct(btf1, "s1", 4); /* [3] struct s1 { */ in test_btf_split() 50 btf__add_struct(btf2, "s2", 16); /* [4] struct s2 { */ in test_btf_split()
|
| H A D | btf_field_iter.c | 54 btf__add_struct(btf, "s1", 12); /* [5] struct s1 { */ in test_btf_field_iter()
|
| H A D | btf_dump.c | 223 id = btf__add_struct(btf, "s", 4); in test_btf_dump_incremental() 261 id = btf__add_struct(btf, "s", 4); in test_btf_dump_incremental() 312 id = btf__add_struct(btf, "s", 8); in test_btf_dump_type_tags()
|
| H A D | core_autosize.c | 99 id = btf__add_struct(btf, "test_struct", 20 /* bytes */); in test_core_autosize()
|
| H A D | btf_write.c | 101 id = btf__add_struct(btf, "s1", 8); in gen_btf()
|
| /linux-6.15/tools/lib/bpf/ |
| H A D | libbpf.map | 225 btf__add_struct;
|
| H A D | btf.h | 207 LIBBPF_API int btf__add_struct(struct btf *btf, const char *name, __u32 sz);
|
| H A D | btf.c | 2225 int btf__add_struct(struct btf *btf, const char *name, __u32 byte_sz) in btf__add_struct() function
|
| H A D | libbpf.c | 7035 struct_id = btf__add_struct(btf, ctx_name, 0); in bpf_program_fixup_func_info()
|
| /linux-6.15/tools/bpf/bpftool/ |
| H A D | gen.c | 2472 err = btf__add_struct(btf_new, name, type->size); in btfgen_get_btf()
|