Home
last modified time | relevance | path

Searched refs:btf__add_struct (Results 1 – 14 of 14) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_dedup_split.c20 btf__add_struct(btf1, "s1", 4); /* [3] struct s1 { */ in test_split_simple()
56 btf__add_struct(btf2, "s2", 16); /* [5] struct s2 { */ in test_split_simple()
66 btf__add_struct(btf2, "s1", 4); /* [7] struct s1 { */ in test_split_simple()
155 btf__add_struct(btf1, "s1", 16); /* [4] struct s1 { */ in test_split_fwd_resolve()
159 btf__add_struct(btf1, "s2", 4); /* [5] struct s2 { */ in test_split_fwd_resolve()
163 btf__add_struct(btf1, "s3", 4); /* [6] struct s3 { */ in test_split_fwd_resolve()
188 btf__add_struct(btf2, "s1", 16); /* [11] struct s1 { */ in test_split_fwd_resolve()
254 btf__add_struct(btf1, "s1", 16); /* [5] struct s1 { */ in test_split_struct_duped()
277 btf__add_struct(btf2, "s1", 16); /* [10] struct s1 { */ in test_split_struct_duped()
281 btf__add_struct(btf in test_split_struct_duped()
[all...]
H A Dlinked_list.c263 lid = btf__add_struct(btf, "bpf_spin_lock", 4); in init_btf()
266 hid = btf__add_struct(btf, "bpf_list_head", 16); in init_btf()
269 nid = btf__add_struct(btf, "bpf_list_node", 24); in init_btf()
288 bpf_rb_node_btf_id = btf__add_struct(btf, "bpf_rb_node", 32); in list_and_rb_node_same_struct()
293 bpf_refcount_btf_id = btf__add_struct(btf, "bpf_refcount", 4); in list_and_rb_node_same_struct()
298 id = btf__add_struct(btf, "bar", refcount_field ? 60 : 56); in list_and_rb_node_same_struct()
313 foo_btf_id = btf__add_struct(btf, "foo", 20); in list_and_rb_node_same_struct()
340 id = btf__add_struct(btf, "foo", 24); in test_btf()
363 id = btf__add_struct(btf, "foo", 16); in test_btf()
372 id = btf__add_struct(btf, "baz", 16); in test_btf()
[all …]
H A Dlocal_kptr_ownership.c25 id = btf__add_struct(btf, "bpf_spin_lock", 4); in init_btf()
28 id = btf__add_struct(btf, "bpf_list_head", 16); in init_btf()
31 id = btf__add_struct(btf, "bpf_list_node", 24); in init_btf()
64 id = btf__add_struct(btf, "self_cycle", 8); in test_self_cycle()
91 id = btf__add_struct(btf, "cycle_a", 8); in test_aba_cycle()
97 id = btf__add_struct(btf, "cycle_b", 8); in test_aba_cycle()
121 id = btf__add_struct(btf, "mixed_owner", 20); in test_mixed_cycle()
133 id = btf__add_struct(btf, "mixed_node", 32); in test_mixed_cycle()
175 id = btf__add_struct(btf, name, shared_suffix && !i ? 16 : 8); in test_acyclic_depth()
192 id = btf__add_struct(btf, "plain_leaf", 4); in test_acyclic_depth()
[all …]
H A Dbtf_distill.c24 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 Dbtf_split.c65 btf__add_struct(btf1, "s1", 4); /* [3] struct s1 { */ in test_btf_split()
85 btf__add_struct(btf2, "s2", 16); /* [4] struct s2 { */ in test_btf_split()
H A Dbtf_field_iter.c54 btf__add_struct(btf, "s1", 12); /* [5] struct s1 { */ in test_btf_field_iter()
H A Dcore_autosize.c99 id = btf__add_struct(btf, "test_struct", 20 /* bytes */); in test_core_autosize()
H A Dbtf_dump.c223 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 Dbtf_write.c101 id = btf__add_struct(btf, "s1", 8); in gen_btf()
524 id = btf__add_struct(split1, "s1", 4);
546 id = btf__add_struct(split2, "s2", 8);
/linux/tools/lib/bpf/
H A Dlibbpf.map225 btf__add_struct;
H A Dbtf.h234 LIBBPF_API int btf__add_struct(struct btf *btf, const char *name, __u32 sz);
H A Dbtf.c2605 int btf__add_struct(struct btf *btf, const char *name, __u32 byte_sz) in btf__add_struct() function
H A Dlibbpf.c7452 struct_id = btf__add_struct(btf, ctx_name, 0); in bpf_program_fixup_func_info()
/linux/tools/bpf/bpftool/
H A Dgen.c2565 err = btf__add_struct(btf_new, name, type->size); in btfgen_get_btf()