Searched refs:new_cap (Results 1 – 5 of 5) sorted by relevance
| /tools/perf/util/ |
| A D | hashmap.c | 105 size_t new_cap_bits, new_cap; in hashmap_grow() local 112 new_cap = 1UL << new_cap_bits; in hashmap_grow() 113 new_buckets = calloc(new_cap, sizeof(new_buckets[0])); in hashmap_grow() 122 map->cap = new_cap; in hashmap_grow()
|
| /tools/lib/bpf/ |
| A D | hashmap.c | 105 size_t new_cap_bits, new_cap; in hashmap_grow() local 112 new_cap = 1UL << new_cap_bits; in hashmap_grow() 113 new_buckets = calloc(new_cap, sizeof(new_buckets[0])); in hashmap_grow() 122 map->cap = new_cap; in hashmap_grow()
|
| A D | btf_dump.c | 385 size_t new_cap; in btf_dump_add_emit_queue_id() local 388 new_cap = max(16, d->emit_queue_cap * 3 / 2); in btf_dump_add_emit_queue_id() 389 new_queue = libbpf_reallocarray(d->emit_queue, new_cap, sizeof(new_queue[0])); in btf_dump_add_emit_queue_id() 393 d->emit_queue_cap = new_cap; in btf_dump_add_emit_queue_id() 1214 size_t new_cap; in btf_dump_push_decl_stack_id() local 1217 new_cap = max(16, d->decl_stack_cap * 3 / 2); in btf_dump_push_decl_stack_id() 1218 new_stack = libbpf_reallocarray(d->decl_stack, new_cap, sizeof(new_stack[0])); in btf_dump_push_decl_stack_id() 1222 d->decl_stack_cap = new_cap; in btf_dump_push_decl_stack_id()
|
| /tools/testing/selftests/vDSO/ |
| A D | vdso_test_getrandom.c | 63 size_t new_cap; in vgetrandom_get_state() local 75 new_cap = vgrnd.cap + num; in vgetrandom_get_state() 76 new_states = reallocarray(vgrnd.states, new_cap, sizeof(*vgrnd.states)); in vgetrandom_get_state() 79 vgrnd.cap = new_cap; in vgetrandom_get_state()
|
| /tools/bpf/bpftool/ |
| A D | btf.c | 482 __u32 new_cap; in ptr_array_push() local 486 new_cap = (arr->cap ?: 16) * 2; in ptr_array_push() 487 tmp = realloc(arr->elems, sizeof(*arr->elems) * new_cap); in ptr_array_push() 491 arr->cap = new_cap; in ptr_array_push()
|
Completed in 41 milliseconds