| /tools/testing/selftests/bpf/prog_tests/ |
| A D | btf_endian.c | 45 ASSERT_EQ(btf__type_cnt(swap_btf), btf__type_cnt(btf), "nr_types"); in test_btf_endian() 88 ASSERT_EQ(btf__type_cnt(swap_btf), btf__type_cnt(btf), "nr_types"); in test_btf_endian()
|
| A D | btf_distill.c | 177 !ASSERT_EQ(8, btf__type_cnt(btf3), "distilled_base_type_cnt")) in test_distilled_base() 326 !ASSERT_EQ(3, btf__type_cnt(btf3), "distilled_base_type_cnt")) in test_distilled_base_multi() 380 !ASSERT_EQ(3, btf__type_cnt(btf3), "distilled_base_type_cnt")) in test_distilled_base_missing_err() 434 !ASSERT_EQ(3, btf__type_cnt(btf3), "distilled_base_type_cnt")) in test_distilled_base_multi_err() 474 !ASSERT_EQ(2, btf__type_cnt(btf3), "distilled_base_type_cnt")) in test_distilled_base_multi_err2() 569 !ASSERT_EQ(2, btf__type_cnt(new_base), "distilled_base_type_cnt")) in test_distilled_endianness() 646 !ASSERT_EQ(2, btf__type_cnt(btf3), "distilled_base_type_cnt")) in test_distilled_base_embedded_err()
|
| A D | btf_split.c | 91 ASSERT_EQ(btf__type_cnt(btf3), 6, "split_type_cnt"); in __test_btf_split() 106 for (i = 1; i < btf__type_cnt(btf3); i++) { in __test_btf_split()
|
| A D | btf_field_iter.c | 128 for (id = 1; id < btf__type_cnt(btf); id++) { in test_btf_field_iter()
|
| A D | resolve_btfids.c | 109 nr = btf__type_cnt(btf); in resolve_symbols()
|
| A D | btf_dedup_split.c | 479 nr_base_types = btf__type_cnt(vmlinux_btf); in test_split_module()
|
| A D | btf_dump.c | 28 size_t type_cnt = btf__type_cnt(btf); in btf_dump_all_types() 170 for (i = 1; i < btf__type_cnt(t->btf); i++) { in test_ctx__dump_and_compare()
|
| A D | core_reloc.c | 447 for (i = 1; i < btf__type_cnt(local_btf); i++) in setup_type_id_case_local()
|
| A D | btf.c | 8189 test_nr_types = btf__type_cnt(test_btf); in do_test_dedup() 8190 expect_nr_types = btf__type_cnt(expect_btf); in do_test_dedup()
|
| /tools/lib/bpf/ |
| A D | btf_relocate.c | 17 #define btf__type_cnt btf_nr_types macro 446 unsigned int nr_types = btf__type_cnt(btf); in btf_relocate() 457 r.nr_dist_base_types = btf__type_cnt(r.dist_base_btf); in btf_relocate() 458 r.nr_base_types = btf__type_cnt(base_btf); in btf_relocate()
|
| A D | btf.c | 606 __u32 i, n = btf__type_cnt(btf); in btf_sanity_check() 618 __u32 btf__type_cnt(const struct btf *btf) in btf__type_cnt() function 667 n = btf__type_cnt(btf); in determine_ptr_size() 903 __u32 i, nr_types = btf__type_cnt(btf); in btf__find_by_name() 922 __u32 i, nr_types = btf__type_cnt(btf); in btf_find_by_name_kind() 1013 btf->start_id = btf__type_cnt(base_btf); in btf_new_empty() 1064 btf->start_id = btf__type_cnt(base_btf); in btf_new() 1960 cnt = btf__type_cnt(src_btf) - 1; in btf__add_btf() 3753 type_cnt = btf__type_cnt(btf); in btf_dedup_new() 5112 __u32 nr_types = btf__type_cnt(d->btf); in btf_dedup_fill_unique_names_map() [all …]
|
| A D | libbpf.map | 306 btf__type_cnt;
|
| A D | linker.c | 1068 if (*type_id >= btf__type_cnt(btf)) in check_btf_type_id() 1095 n = btf__type_cnt(obj->btf); in linker_sanity_check_btf() 1856 n = btf__type_cnt(obj->btf); in find_glob_sym_btf() 2324 n = btf__type_cnt(obj->btf); in linker_fixup_btf() 2419 start_id = btf__type_cnt(linker->btf); in linker_append_btf() 2420 n = btf__type_cnt(obj->btf); in linker_append_btf() 2481 n = btf__type_cnt(linker->btf); in linker_append_btf() 2868 if (btf__type_cnt(linker->btf) == 1) in finalize_btf()
|
| A D | btf.h | 150 LIBBPF_API __u32 btf__type_cnt(const struct btf *btf);
|
| A D | btf_dump.c | 198 int err, last_id = btf__type_cnt(d->btf) - 1; in btf_dump_resize() 286 if (id >= btf__type_cnt(d->btf)) in btf_dump__dump_type() 318 int i, j, n = btf__type_cnt(d->btf); in btf_dump_mark_referenced()
|
| A D | libbpf.c | 3008 nr_types = btf__type_cnt(obj->btf); in bpf_object__init_user_btf_maps() 3129 for (i = 1; i < btf__type_cnt(btf); i++) { in bpf_object__sanitize_btf() 3424 n = btf__type_cnt(obj->btf); in bpf_object_fixup_btf() 3555 n = btf__type_cnt(obj->btf); in bpf_object__sanitize_and_load_btf() 4039 n = btf__type_cnt(btf); in find_extern_btf_id() 4071 n = btf__type_cnt(btf); in find_extern_sec_btf_id() 4160 n = btf__type_cnt(btf); in find_int_btf_id() 5610 n = btf__type_cnt(targ_btf); in bpf_core_add_cands() 5791 btf__type_cnt(obj->btf_vmlinux), in bpf_core_find_cands() 6680 n = btf__type_cnt(obj->btf); in bpf_prog_assign_exc_cb() [all …]
|
| /tools/testing/selftests/bpf/ |
| A D | btf_helpers.c | 239 ASSERT_EQ(btf__type_cnt(btf) - 1, nr_types, "btf_nr_types"); in btf_validate_raw() 276 for (i = 1; i < btf__type_cnt(btf); i++) { in btf_type_c_dump()
|
| A D | test_loader.c | 431 for (i = 1; i < btf__type_cnt(btf); i++) { in parse_test_spec()
|
| A D | veristat.c | 1828 cnt = btf__type_cnt(btf); in find_enum_value() 2069 cnt = btf__type_cnt(btf); in set_global_vars()
|
| A D | test_progs.c | 1233 for (i = 1, type_cnt = btf__type_cnt(btf); i < type_cnt; i++) { in get_bpf_max_tramp_links_from()
|
| /tools/bpf/bpftool/ |
| A D | btf.c | 393 if (v->type < btf__type_cnt(btf)) { in dump_btf_type() 454 int cnt = btf__type_cnt(btf); in dump_btf_raw() 459 start_id = btf__type_cnt(base); in dump_btf_raw() 515 __u32 cnt = btf__type_cnt(btf), i, j; in dump_btf_kfuncs() 750 n = btf__type_cnt(btf); in sort_btf_c() 809 int cnt = btf__type_cnt(btf); in dump_btf_c() 1061 if (root_type_ids[i] >= btf__type_cnt(btf)) { in do_dump()
|
| A D | cgroup.c | 157 info.attach_btf_id < btf__type_cnt(btf_vmlinux)) { in show_bpf_prog()
|
| A D | gen.c | 237 int n = btf__type_cnt(btf), i; in find_type_for_map() 2435 unsigned int i, n = btf__type_cnt(info->marked_btf); in btfgen_get_btf() 2507 for (i = 1; i < btf__type_cnt(btf_new); i++) { in btfgen_get_btf()
|
| /tools/bpf/resolve_btfids/ |
| A D | main.c | 562 nr_types = btf__type_cnt(btf); in symbols_resolve()
|