Home
last modified time | relevance | path

Searched refs:elem_size (Results 1 – 3 of 3) sorted by relevance

/tools/bpf/bpftool/
Dbtf_dumper.c218 long long elem_size; in btf_dumper_array() local
227 elem_size = btf__resolve_size(d->btf, arr->type); in btf_dumper_array()
228 if (elem_size < 0) in btf_dumper_array()
229 return elem_size; in btf_dumper_array()
234 data + i * elem_size); in btf_dumper_array()
/tools/testing/selftests/bpf/progs/
Dmap_ptr_kern.c95 __u32 elem_size; member
115 VERIFY(hash->elem_size == 64); in check_hash()
132 __u32 elem_size; member
150 VERIFY(array->elem_size == 8); in check_array()
/tools/lib/bpf/
Dbtf_dump.c1924 __s64 elem_size; in btf_dump_array_data() local
1929 elem_size = btf__resolve_size(d->btf, elem_type_id); in btf_dump_array_data()
1930 if (elem_size <= 0) { in btf_dump_array_data()
1932 (ssize_t)elem_size, id); in btf_dump_array_data()
1942 if (elem_size == 1) in btf_dump_array_data()
1961 for (i = 0; i < array->nelems; i++, data += elem_size) { in btf_dump_array_data()
2222 __u32 elem_type_id, elem_size; in btf_dump_type_data_check_zero() local
2226 elem_size = btf__resolve_size(d->btf, elem_type_id); in btf_dump_type_data_check_zero()
2229 ischar = btf_is_int(elem_type) && elem_size == 1; in btf_dump_type_data_check_zero()
2243 (i * elem_size), in btf_dump_type_data_check_zero()