Home
last modified time | relevance | path

Searched refs:libbpf_reallocarray (Results 1 – 5 of 5) sorted by relevance

/kernel/linux/linux-5.10/tools/lib/bpf/
Dringbuf.c81 tmp = libbpf_reallocarray(rb->rings, rb->ring_cnt + 1, sizeof(*rb->rings)); in ring_buffer__add()
86 tmp = libbpf_reallocarray(rb->events, rb->ring_cnt + 1, sizeof(*rb->events)); in ring_buffer__add()
Dlibbpf_internal.h93 static inline void *libbpf_reallocarray(void *ptr, size_t nmemb, size_t size) in libbpf_reallocarray() function
Dbtf_dump.c348 new_queue = libbpf_reallocarray(d->emit_queue, new_cap, sizeof(new_queue[0])); in btf_dump_add_emit_queue_id()
1027 new_stack = libbpf_reallocarray(d->decl_stack, new_cap, sizeof(new_stack[0])); in btf_dump_push_decl_stack_id()
Dbtf.c137 new_data = libbpf_reallocarray(*data, new_cnt, elem_sz); in btf_add_mem()
2897 new_list = libbpf_reallocarray(d->hypot_list, d->hypot_cap, sizeof(__u32)); in btf_dedup_hypot_map_add()
3195 new_ptrs = libbpf_reallocarray(strs.ptrs, strs.cap, sizeof(strs.ptrs[0])); in btf_dedup_strings()
4280 new_offs = libbpf_reallocarray(d->btf->type_offs, d->btf->type_offs_cap, in btf_dedup_compact_types()
Dlibbpf.c648 progs = libbpf_reallocarray(progs, nr_progs + 1, sizeof(*progs)); in bpf_object__add_programs()
1306 new_maps = libbpf_reallocarray(obj->maps, new_cap, sizeof(*obj->maps)); in bpf_object__add_map()
2913 sects = libbpf_reallocarray(sects, nr_sects + 1, in bpf_object__elf_collect()
3118 ext = libbpf_reallocarray(ext, obj->nr_extern + 1, sizeof(*ext)); in bpf_object__collect_externs()
3566 relos = libbpf_reallocarray(prog->reloc_desc, in bpf_object__collect_prog_relos()
4717 new_ids = libbpf_reallocarray(cand_ids->data, in bpf_core_find_cands()
6265 insns = libbpf_reallocarray(main_prog->insns, new_cnt, sizeof(*insns)); in bpf_object__reloc_code()
6570 tmp = libbpf_reallocarray(map->init_slots, new_sz, host_ptr_sz); in bpf_object__collect_map_relos()