Home
last modified time | relevance | path

Searched refs:btf__type_cnt (Results 1 – 17 of 17) sorted by relevance

/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dbtf_endian.c45 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()
Dbtf_split.c73 for (i = 1; i < btf__type_cnt(btf2); i++) { in test_btf_split()
Dresolve_btfids.c109 nr = btf__type_cnt(btf); in resolve_symbols()
Dbtf_dump.c28 size_t type_cnt = btf__type_cnt(btf); in btf_dump_all_types()
185 for (i = 1; i < btf__type_cnt(btf); i++) { in test_btf_dump_incremental()
235 for (i = 1; i < btf__type_cnt(btf); i++) { in test_btf_dump_incremental()
Dcore_reloc.c445 for (i = 1; i < btf__type_cnt(local_btf); i++) in setup_type_id_case_local()
Dbtf.c7779 test_nr_types = btf__type_cnt(test_btf); in do_test_dedup()
7780 expect_nr_types = btf__type_cnt(expect_btf); in do_test_dedup()
/linux-6.1.9/tools/testing/selftests/bpf/
Dbtf_helpers.c239 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()
/linux-6.1.9/tools/bpf/bpftool/
Dbtf.c376 if (v->type < btf__type_cnt(btf)) { in dump_btf_type()
437 int cnt = btf__type_cnt(btf); in dump_btf_raw()
442 start_id = btf__type_cnt(base); in dump_btf_raw()
488 int cnt = btf__type_cnt(btf); in dump_btf_c()
Dgen.c214 int n = btf__type_cnt(btf), i; in find_type_for_map()
2145 unsigned int i, n = btf__type_cnt(info->marked_btf); in btfgen_get_btf()
2217 for (i = 1; i < btf__type_cnt(btf_new); i++) { in btfgen_get_btf()
Dcgroup.c123 info.attach_btf_id < btf__type_cnt(btf_vmlinux)) { in show_bpf_prog()
/linux-6.1.9/tools/lib/bpf/
Dlibbpf.map307 btf__type_cnt;
Dlinker.c919 if (*type_id >= btf__type_cnt(btf)) in check_btf_type_id()
946 n = btf__type_cnt(obj->btf); in linker_sanity_check_btf()
1659 n = btf__type_cnt(obj->btf); in find_glob_sym_btf()
2134 n = btf__type_cnt(obj->btf); in linker_fixup_btf()
2238 start_id = btf__type_cnt(linker->btf); in linker_append_btf()
2239 n = btf__type_cnt(obj->btf); in linker_append_btf()
2300 n = btf__type_cnt(linker->btf); in linker_append_btf()
2661 if (btf__type_cnt(linker->btf) == 1) in finalize_btf()
Dbtf.c451 __u32 btf__type_cnt(const struct btf *btf) in btf__type_cnt() function
500 n = btf__type_cnt(btf); in determine_ptr_size()
723 __u32 i, nr_types = btf__type_cnt(btf); in btf__find_by_name()
742 __u32 i, nr_types = btf__type_cnt(btf); in btf_find_by_name_kind()
820 btf->start_id = btf__type_cnt(base_btf); in btf_new_empty()
870 btf->start_id = btf__type_cnt(base_btf); in btf_new()
1657 cnt = btf__type_cnt(src_btf) - 1; in btf__add_btf()
1983 return btf_type_by_id(btf, btf__type_cnt(btf) - 1); in btf_last_type()
3218 type_cnt = btf__type_cnt(btf); in btf_dedup_new()
Dbtf.h128 LIBBPF_API __u32 btf__type_cnt(const struct btf *btf);
Dbtf_dump.c195 int err, last_id = btf__type_cnt(d->btf) - 1; in btf_dump_resize()
280 if (id >= btf__type_cnt(d->btf)) in btf_dump__dump_type()
312 int i, j, n = btf__type_cnt(d->btf); in btf_dump_mark_referenced()
Dlibbpf.c2576 nr_types = btf__type_cnt(obj->btf); in bpf_object__init_user_btf_maps()
2663 for (i = 1; i < btf__type_cnt(btf); i++) { in bpf_object__sanitize_btf()
2914 __u32 i, n = btf__type_cnt(btf); in btf_finalize_data()
3051 n = btf__type_cnt(obj->btf); in bpf_object__sanitize_and_load_btf()
3515 n = btf__type_cnt(btf); in find_extern_btf_id()
3547 n = btf__type_cnt(btf); in find_extern_sec_btf_id()
3636 n = btf__type_cnt(btf); in find_int_btf_id()
5336 n = btf__type_cnt(targ_btf); in bpf_core_add_cands()
5513 btf__type_cnt(obj->btf_vmlinux), in bpf_core_find_cands()
/linux-6.1.9/tools/bpf/resolve_btfids/
Dmain.c535 nr_types = btf__type_cnt(btf); in symbols_resolve()