/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | btf_distill.c | 22 btf__add_int(btf1, "int", 4, BTF_INT_SIGNED); /* [1] int */ in test_distilled_base() 31 btf__add_int(btf1, "unsigned int", 4, 0); /* [5] unsigned int */ in test_distilled_base() 305 btf__add_int(btf1, "int", 4, BTF_INT_SIGNED); /* [1] int */ in test_distilled_base_multi() 306 btf__add_int(btf1, "int", 8, BTF_INT_SIGNED); /* [2] int */ in test_distilled_base_multi() 359 btf__add_int(btf1, "int", 4, BTF_INT_SIGNED); /* [1] int */ in test_distilled_base_missing_err() 360 btf__add_int(btf1, "int", 8, BTF_INT_SIGNED); /* [2] int */ in test_distilled_base_missing_err() 389 btf__add_int(btf5, "int", 4, BTF_INT_SIGNED); /* [1] int */ in test_distilled_base_missing_err() 413 btf__add_int(btf1, "int", 4, BTF_INT_SIGNED); /* [1] int */ in test_distilled_base_multi_err() 414 btf__add_int(btf1, "int", 4, BTF_INT_SIGNED); /* [2] int */ in test_distilled_base_multi_err() 458 btf__add_int(btf1, "int", 4, BTF_INT_SIGNED); /* [1] int */ in test_distilled_base_multi_err2() [all …]
|
H A D | btf_dedup_split.c | 18 btf__add_int(btf1, "int", 4, BTF_INT_SIGNED); /* [1] int */ in test_split_simple() 59 btf__add_int(btf2, "int", 4, BTF_INT_SIGNED); /* [5] int */ in test_split_simple() 136 btf__add_int(btf1, "int", 4, BTF_INT_SIGNED); /* [1] int */ in test_split_fwd_resolve() 168 btf__add_int(btf2, "int", 4, BTF_INT_SIGNED); /* [7] int */ in test_split_fwd_resolve() 234 btf__add_int(btf1, "int", 4, BTF_INT_SIGNED); /* [1] int */ in test_split_struct_duped() 257 btf__add_int(btf2, "int", 4, BTF_INT_SIGNED); /* [6] int */ in test_split_struct_duped() 337 btf__add_int(btf, "int", 4, BTF_INT_SIGNED); /* [1] int */ in btf_add_dup_struct_in_cu()
|
H A D | core_autosize.c | 87 char_id = btf__add_int(btf, "unsigned char", 1, 0); in test_core_autosize() 89 short_id = btf__add_int(btf, "unsigned short", 2, 0); in test_core_autosize() 92 int_id = btf__add_int(btf, "long unsigned int", 4, 0); in test_core_autosize() 94 long_long_id = btf__add_int(btf, "unsigned long long", 8, 0); in test_core_autosize()
|
H A D | btf_field_iter.c | 50 btf__add_int(btf, "int", 4, BTF_INT_SIGNED); /* [1] int */ in test_btf_field_iter() 51 btf__add_int(btf, "int64", 8, BTF_INT_SIGNED); /* [2] int64 */ in test_btf_field_iter()
|
H A D | btf_write.c | 27 id = btf__add_int(btf, "int", 4, BTF_INT_SIGNED); in gen_btf() 42 id = btf__add_int(btf, "bad sz int", 7, 0); in gen_btf() 45 id = btf__add_int(btf, "bad enc int", 4, 123); in gen_btf() 48 id = btf__add_int(btf, NULL, 4, 0); in gen_btf() 51 id = btf__add_int(btf, "", 4, 0); in gen_btf()
|
H A D | btf_split.c | 27 btf__add_int(btf1, "int", 4, BTF_INT_SIGNED); /* [1] int */ in test_btf_split()
|
H A D | log_buf.c | 213 ASSERT_GT(btf__add_int(btf, "int", 4, 0), 0, "int_type"); in bpf_btf_load_log_buf()
|
H A D | unpriv_bpf_disabled.c | 209 ASSERT_GT(btf__add_int(btf, "int", 4, 0), 0, "unpriv_int_type")) { in test_unpriv_bpf_disabled_negative()
|
H A D | verifier_log.c | 283 res = btf__add_int(btf, "whatever", 4, 0); in verif_btf_log_subtest()
|
H A D | linked_list.c | 257 id = btf__add_int(btf, "int", 4, BTF_INT_SIGNED); in init_btf()
|
H A D | btf_dump.c | 174 id = btf__add_int(btf, "int", 4, BTF_INT_SIGNED); in test_btf_dump_incremental()
|
H A D | token.c | 595 ASSERT_GT(btf__add_int(btf, "int", 4, 0), 0, "int_type"); in userns_btf_load()
|
/linux/tools/lib/bpf/ |
H A D | libbpf.map | 221 btf__add_int;
|
H A D | btf.h | 198 LIBBPF_API int btf__add_int(struct btf *btf, const char *name, size_t byte_sz, int encoding);
|
H A D | btf.c | 1998 int btf__add_int(struct btf *btf, const char *name, size_t byte_sz, int encoding) in btf__add_int() function
|
H A D | libbpf.c | 3172 enum64_placeholder_id = btf__add_int(btf, "enum64_placeholder", 1, 0); in bpf_object__sanitize_btf()
|