Home
last modified time | relevance | path

Searched refs:nelems (Results 1 – 9 of 9) sorted by relevance

/tools/include/uapi/linux/
Dbtf.h114 __u32 nelems; member
/tools/bpf/bpftool/
Dbtf_dumper.c217 if (!arr->nelems) in is_str_array()
234 end_s = s + arr->nelems; in is_str_array()
266 for (i = 0; i < arr->nelems; i++) { in btf_dumper_array()
656 BTF_PRINT_ARG("[%d]", array->nelems); in __btf_dumper_type_only()
Dbtf.c154 jsonw_uint_field(w, "nr_elems", arr->nelems); in dump_btf_type()
157 arr->type, arr->index_type, arr->nelems); in dump_btf_type()
/tools/lib/bpf/
Dbtf.c378 a->nelems = bswap_32(a->nelems); in btf_bswap_type_rest()
608 __u32 nelems = 1; in btf__resolve_size() local
638 if (nelems && array->nelems > UINT32_MAX / nelems) in btf__resolve_size()
640 nelems *= array->nelems; in btf__resolve_size()
653 if (nelems && size > UINT32_MAX / nelems) in btf__resolve_size()
656 return nelems * size; in btf__resolve_size()
1924 a->nelems = nr_elems; in btf__add_array()
3559 h = hash_combine(h, info->nelems); in btf_hash_array()
3581 info1->nelems == info2->nelems; in btf_equal_array()
3594 return btf_array(t1)->nelems == btf_array(t2)->nelems; in btf_compat_array()
Drelo_core.c78 if (!acc->name || arr->nelems > 0) in is_flex_arr()
374 if (!flex && access_idx >= a->nelems) in bpf_core_parse_spec()
650 if (!flex && local_acc->idx >= a->nelems) in bpf_core_spec_match()
1650 if (local_array->nelems != targ_array->nelems) in __bpf_core_types_match()
Dbtf_dump.c1517 btf_dump_printf(d, "[%u]", a->nelems); in btf_dump_emit_type_chain()
1533 btf_dump_printf(d, "[%u]", a->nelems); in btf_dump_emit_type_chain()
2071 for (i = 0; i < array->nelems; i++, data += elem_size) { in btf_dump_array_data()
2364 for (i = 0; i < array->nelems; i++) { in btf_dump_type_data_check_zero()
Dlibbpf.c2160 *res = arr_info->nelems; in get_map_field_int()
2348 if (!btf_is_array(t) || btf_array(t)->nelems) { in parse_btf_map_def()
3686 if (btf_array(t)->nelems == 0) in find_kcfg_type()
/tools/testing/selftests/bpf/
Dbtf_helpers.c121 arr->type, arr->index_type, arr->nelems); in fprintf_btf_type_raw()
/tools/testing/selftests/bpf/prog_tests/
Dbtf_write.c94 ASSERT_EQ(btf_array(t)->nelems, 10, "array_nelems"); in gen_btf()