Searched refs:new_cap (Results 1 – 4 of 4) sorted by relevance
/tools/lib/bpf/ |
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()
|
D | btf_dump.c | 372 size_t new_cap; in btf_dump_add_emit_queue_id() local 375 new_cap = max(16, d->emit_queue_cap * 3 / 2); in btf_dump_add_emit_queue_id() 376 new_queue = libbpf_reallocarray(d->emit_queue, new_cap, sizeof(new_queue[0])); in btf_dump_add_emit_queue_id() 380 d->emit_queue_cap = new_cap; in btf_dump_add_emit_queue_id() 1116 size_t new_cap; in btf_dump_push_decl_stack_id() local 1119 new_cap = max(16, d->decl_stack_cap * 3 / 2); in btf_dump_push_decl_stack_id() 1120 new_stack = libbpf_reallocarray(d->decl_stack, new_cap, sizeof(new_stack[0])); in btf_dump_push_decl_stack_id() 1124 d->decl_stack_cap = new_cap; in btf_dump_push_decl_stack_id()
|
D | libbpf.c | 1363 size_t new_cap; in bpf_object__add_map() local 1369 new_cap = max((size_t)4, obj->maps_cap * 3 / 2); in bpf_object__add_map() 1370 new_maps = libbpf_reallocarray(obj->maps, new_cap, sizeof(*obj->maps)); in bpf_object__add_map() 1376 obj->maps_cap = new_cap; in bpf_object__add_map()
|
/tools/perf/util/ |
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()
|