Home
last modified time | relevance | path

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

/tools/include/uapi/linux/
Dbtf.h107 __u32 nelems; member
/tools/lib/bpf/
Dbtf.c233 __u32 nelems = 1; in btf__resolve_size() local
260 if (nelems && array->nelems > UINT32_MAX / nelems) in btf__resolve_size()
262 nelems *= array->nelems; in btf__resolve_size()
275 if (nelems && size > UINT32_MAX / nelems) in btf__resolve_size()
278 return nelems * size; in btf__resolve_size()
1872 h = hash_combine(h, info->nelems); in btf_hash_array()
1894 info1->nelems == info2->nelems; in btf_equal_array()
1907 return btf_array(t1)->nelems == btf_array(t2)->nelems; in btf_compat_array()
Dbtf_dump.c1253 btf_dump_printf(d, "[%u]", a->nelems); in btf_dump_emit_type_chain()
1269 btf_dump_printf(d, "[%u]", a->nelems); in btf_dump_emit_type_chain()
Dlibbpf.c1068 *res = arr_info->nelems; in get_map_field_int()
2449 if (!t || access_idx >= a->nelems) in bpf_core_spec_parse()
2749 if (local_acc->idx >= a->nelems) in bpf_core_spec_match()
/tools/bpf/bpftool/
Dbtf_dumper.c65 for (i = 0; i < arr->nelems; i++) { in btf_dumper_array()
456 BTF_PRINT_ARG("[%d]", array->nelems); in __btf_dumper_type_only()
Dbtf.c138 jsonw_uint_field(w, "nr_elems", arr->nelems); in dump_btf_type()
141 arr->type, arr->index_type, arr->nelems); in dump_btf_type()