Searched refs:btf__type_cnt (Results 1 – 17 of 17) sorted by relevance
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/ |
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()
|
D | btf_split.c | 73 for (i = 1; i < btf__type_cnt(btf2); i++) { in test_btf_split()
|
D | resolve_btfids.c | 109 nr = btf__type_cnt(btf); in resolve_symbols()
|
D | btf_dump.c | 28 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()
|
D | core_reloc.c | 445 for (i = 1; i < btf__type_cnt(local_btf); i++) in setup_type_id_case_local()
|
D | btf.c | 7779 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/ |
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()
|
/linux-6.1.9/tools/bpf/bpftool/ |
D | btf.c | 376 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()
|
D | gen.c | 214 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()
|
D | cgroup.c | 123 info.attach_btf_id < btf__type_cnt(btf_vmlinux)) { in show_bpf_prog()
|
/linux-6.1.9/tools/lib/bpf/ |
D | libbpf.map | 307 btf__type_cnt;
|
D | linker.c | 919 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()
|
D | btf.c | 451 __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()
|
D | btf.h | 128 LIBBPF_API __u32 btf__type_cnt(const struct btf *btf);
|
D | btf_dump.c | 195 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()
|
D | libbpf.c | 2576 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/ |
D | main.c | 535 nr_types = btf__type_cnt(btf); in symbols_resolve()
|