Searched refs:nelems (Results 1 – 6 of 6) sorted by relevance
/tools/include/uapi/linux/ |
D | btf.h | 107 __u32 nelems; member
|
/tools/lib/bpf/ |
D | btf.c | 233 __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()
|
D | btf_dump.c | 1253 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()
|
D | libbpf.c | 1068 *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/ |
D | btf_dumper.c | 65 for (i = 0; i < arr->nelems; i++) { in btf_dumper_array() 456 BTF_PRINT_ARG("[%d]", array->nelems); in __btf_dumper_type_only()
|
D | btf.c | 138 jsonw_uint_field(w, "nr_elems", arr->nelems); in dump_btf_type() 141 arr->type, arr->index_type, arr->nelems); in dump_btf_type()
|