Searched refs:btf__type_cnt (Results 1 – 19 of 19) sorted by relevance
/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 | 8111 test_nr_types = btf__type_cnt(test_btf); in do_test_dedup() 8112 expect_nr_types = btf__type_cnt(expect_btf); in do_test_dedup()
|
/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()
|
D | test_loader.c | 187 for (i = 1; i < btf__type_cnt(btf); i++) { in parse_test_spec()
|
D | test_progs.c | 955 for (i = 1, type_cnt = btf__type_cnt(btf); i < type_cnt; i++) { in get_bpf_max_tramp_links_from()
|
/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() 487 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() 2141 unsigned int i, n = btf__type_cnt(info->marked_btf); in btfgen_get_btf() 2213 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()
|
/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() 1671 n = btf__type_cnt(obj->btf); in find_glob_sym_btf() 2139 n = btf__type_cnt(obj->btf); in linker_fixup_btf() 2250 start_id = btf__type_cnt(linker->btf); in linker_append_btf() 2251 n = btf__type_cnt(obj->btf); in linker_append_btf() 2312 n = btf__type_cnt(linker->btf); in linker_append_btf() 2673 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() 736 __u32 i, nr_types = btf__type_cnt(btf); in btf__find_by_name() 755 __u32 i, nr_types = btf__type_cnt(btf); in btf_find_by_name_kind() 833 btf->start_id = btf__type_cnt(base_btf); in btf_new_empty() 883 btf->start_id = btf__type_cnt(base_btf); in btf_new() 1669 cnt = btf__type_cnt(src_btf) - 1; in btf__add_btf() 1996 return btf_type_by_id(btf, btf__type_cnt(btf) - 1); in btf_last_type() 3237 type_cnt = btf__type_cnt(btf); in btf_dedup_new() 4531 __u32 nr_types = btf__type_cnt(d->btf); in btf_dedup_fill_unique_names_map()
|
D | btf.h | 128 LIBBPF_API __u32 btf__type_cnt(const struct btf *btf);
|
D | btf_dump.c | 196 int err, last_id = btf__type_cnt(d->btf) - 1; in btf_dump_resize() 281 if (id >= btf__type_cnt(d->btf)) in btf_dump__dump_type() 313 int i, j, n = btf__type_cnt(d->btf); in btf_dump_mark_referenced()
|
D | libbpf.c | 2636 nr_types = btf__type_cnt(obj->btf); in bpf_object__init_user_btf_maps() 2723 for (i = 1; i < btf__type_cnt(btf); i++) { in bpf_object__sanitize_btf() 3011 n = btf__type_cnt(obj->btf); in bpf_object_fixup_btf() 3131 n = btf__type_cnt(obj->btf); in bpf_object__sanitize_and_load_btf() 3601 n = btf__type_cnt(btf); in find_extern_btf_id() 3633 n = btf__type_cnt(btf); in find_extern_sec_btf_id() 3722 n = btf__type_cnt(btf); in find_int_btf_id() 5471 n = btf__type_cnt(targ_btf); in bpf_core_add_cands() 5652 btf__type_cnt(obj->btf_vmlinux), in bpf_core_find_cands()
|
/tools/bpf/resolve_btfids/ |
D | main.c | 553 nr_types = btf__type_cnt(btf); in symbols_resolve()
|