Searched refs:elem_sz (Results 1 – 3 of 3) sorted by relevance
/third_party/libbpf/src/ |
D | libbpf_internal.h | 266 void *libbpf_add_mem(void **data, size_t *cap_cnt, size_t elem_sz, 268 int libbpf_ensure_mem(void **data, size_t *cap_cnt, size_t elem_sz, size_t need_cnt);
|
D | btf.c | 156 void *libbpf_add_mem(void **data, size_t *cap_cnt, size_t elem_sz, in libbpf_add_mem() argument 163 return *data + cur_cnt * elem_sz; in libbpf_add_mem() 178 new_data = libbpf_reallocarray(*data, new_cnt, elem_sz); in libbpf_add_mem() 183 memset(new_data + (*cap_cnt) * elem_sz, 0, (new_cnt - *cap_cnt) * elem_sz); in libbpf_add_mem() 187 return new_data + cur_cnt * elem_sz; in libbpf_add_mem() 193 int libbpf_ensure_mem(void **data, size_t *cap_cnt, size_t elem_sz, size_t need_cnt) in libbpf_ensure_mem() argument 200 p = libbpf_add_mem(data, cap_cnt, elem_sz, *cap_cnt, SIZE_MAX, need_cnt - *cap_cnt); in libbpf_ensure_mem()
|
D | libbpf.c | 9831 size_t elem_sz = roundup(map->def.value_size, 8); local 9833 if (value_sz != num_cpu * elem_sz) { 9835 map->name, value_sz, num_cpu, elem_sz, num_cpu * elem_sz);
|