Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H A 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()
H A Dbtf_distill.c177 !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()
H A Dbtf_split.c125 ASSERT_EQ(btf__type_cnt(btf3), 6, "split_type_cnt");
140 for (i = 1; i < btf__type_cnt(btf3); i++) {
184 if (!ASSERT_EQ(btf__type_cnt(btf3), btf__type_cnt(btf6), "cmp_type_cnt"))
188 for (i = 1; i < btf__type_cnt(btf6); i++) {
H A Dresolve_btfids.c185 __u32 nr = btf__type_cnt(btf); in resolve_symbols()
201 nr = btf__type_cnt(btf); in btf_has_decl_tag()
H A Dbtf_field_iter.c128 for (id = 1; id < btf__type_cnt(btf); id++) { in test_btf_field_iter()
H A Dtracing_multi.c116 nr = btf__type_cnt(btf); in get_ids()
725 nr = btf__type_cnt(btf); in serial_test_tracing_multi_bench_attach()
H A Dbtf_dump.c28 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()
H A Dcore_reloc.c447 for (i = 1; i < btf__type_cnt(local_btf); i++) in setup_type_id_case_local()
H A Dbtf.c8331 test_nr_types = btf__type_cnt(test_btf); in do_test_dedup()
8332 expect_nr_types = btf__type_cnt(expect_btf); in do_test_dedup()
/linux/tools/lib/bpf/
H A Dbtf_relocate.c17 #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()
H A Dbtf.c766 __u32 i, n = btf__type_cnt(btf); in btf_sanity_check()
778 __u32 btf__type_cnt(const struct btf *btf) in btf__type_cnt() function
827 n = btf__type_cnt(btf); in determine_ptr_size()
1065 n = btf__type_cnt(btf); in btf_check_sorted()
1093 r = btf__type_cnt(btf) - 1; in btf_find_type_by_name_bsearch()
1107 return btf__type_cnt(btf); in btf_find_type_by_name_bsearch()
1113 __u32 nr_types = btf__type_cnt(btf); in btf_find_by_name_kind()
1237 btf->start_id = btf__type_cnt(base_btf); in btf_new_empty()
1317 btf->start_id = btf__type_cnt(base_btf); in btf_new()
2258 src_start_id = src_btf->base_btf ? btf__type_cnt(src_btf->base_btf) : 1; in btf__add_btf()
[all …]
H A Dlibbpf.map306 btf__type_cnt;
H A Dlinker.c1067 if (*type_id >= btf__type_cnt(btf)) in check_btf_type_id()
1094 n = btf__type_cnt(obj->btf); in linker_sanity_check_btf()
1855 n = btf__type_cnt(obj->btf); in find_glob_sym_btf()
2326 n = btf__type_cnt(obj->btf); in linker_fixup_btf()
2421 start_id = btf__type_cnt(linker->btf); in linker_append_btf()
2422 n = btf__type_cnt(obj->btf); in linker_append_btf()
2483 n = btf__type_cnt(linker->btf); in linker_append_btf()
2870 if (btf__type_cnt(linker->btf) == 1) in finalize_btf()
H A Dbtf.h177 LIBBPF_API __u32 btf__type_cnt(const struct btf *btf);
H A Dbtf_dump.c197 int err, last_id = btf__type_cnt(d->btf) - 1; in btf_dump_resize()
285 if (id >= btf__type_cnt(d->btf)) in btf_dump__dump_type()
317 int i, j, n = btf__type_cnt(d->btf); in btf_dump_mark_referenced()
H A Dlibbpf.c3068 nr_types = btf__type_cnt(obj->btf); in bpf_object__init_user_btf_maps()
3246 for (i = 1; i < btf__type_cnt(btf); i++) { in bpf_object__sanitize_btf()
3542 n = btf__type_cnt(obj->btf); in bpf_object_fixup_btf()
3673 n = btf__type_cnt(obj->btf); in bpf_object__sanitize_and_load_btf()
4157 n = btf__type_cnt(btf); in find_extern_btf_id()
4189 n = btf__type_cnt(btf); in find_extern_sec_btf_id()
4278 n = btf__type_cnt(btf); in find_int_btf_id()
5818 n = btf__type_cnt(targ_btf); in bpf_core_add_cands()
6000 btf__type_cnt(obj->btf_vmlinux), in bpf_core_find_cands()
7084 n = btf__type_cnt(obj->btf); in bpf_prog_assign_exc_cb()
[all …]
/linux/tools/testing/selftests/bpf/
H A 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()
H A Dtest_loader.c356 for (i = 1; i < btf__type_cnt(btf); i++) { in collect_decl_tags()
1207 cnt = btf__type_cnt(prog_btf); in fixup_btf_from_path()
1208 custom_cnt = btf__type_cnt(custom_btf); in fixup_btf_from_path()
H A Dveristat.c1957 cnt = btf__type_cnt(btf); in find_enum_value()
2198 cnt = btf__type_cnt(btf); in set_global_vars()
H A Dtest_progs.c1280 for (i = 1, type_cnt = btf__type_cnt(btf); i < type_cnt; i++) { in get_bpf_max_tramp_links_from()
/linux/tools/bpf/bpftool/
H A Dbtf.c388 if (v->type < btf__type_cnt(btf)) { in dump_btf_type()
449 int cnt = btf__type_cnt(btf); in dump_btf_raw()
454 start_id = btf__type_cnt(base); in dump_btf_raw()
510 __u32 cnt = btf__type_cnt(btf), i, j; in dump_btf_kfuncs()
745 n = btf__type_cnt(btf); in sort_btf_c()
804 int cnt = btf__type_cnt(btf); in dump_btf_c()
1151 if (root_type_ids[i] >= btf__type_cnt(btf)) { in do_dump()
H A Dcgroup.c168 info.attach_btf_id < btf__type_cnt(btf_vmlinux)) { in show_bpf_prog()
H A Dgen.c243 int n = btf__type_cnt(btf), i; in find_type_for_map()
2528 unsigned int n = btf__type_cnt(info->marked_btf); in btfgen_get_btf()
2600 for (i = 1; i < btf__type_cnt(btf_new); i++) { in btfgen_get_btf()
/linux/tools/bpf/resolve_btfids/
H A Dmain.c727 nr_types = btf__type_cnt(btf); in symbols_resolve()
1055 const u32 type_cnt = btf__type_cnt(ctx->btf); in collect_decl_tags()
1542 start_id = btf__type_cnt(btf__base_btf(btf)); in sort_btf_by_name()
1543 nr_types = btf__type_cnt(btf) - start_id; in sort_btf_by_name()