Home
last modified time | relevance | path

Searched refs:new_cands (Results 1 – 2 of 2) sorted by relevance

/linux/kernel/bpf/
H A Dbtf.c9293 struct bpf_cand_cache **cc = &cache[hash_cands(cands) % cache_size], *new_cands; in populate_cand_cache() local
9299 new_cands = kmemdup(cands, sizeof_cands(cands->cnt), GFP_KERNEL_ACCOUNT); in populate_cand_cache()
9300 if (!new_cands) { in populate_cand_cache()
9307 new_cands->name = kmemdup_nul(cands->name, cands->name_len, GFP_KERNEL_ACCOUNT); in populate_cand_cache()
9309 if (!new_cands->name) { in populate_cand_cache()
9310 kfree(new_cands); in populate_cand_cache()
9313 *cc = new_cands; in populate_cand_cache()
9314 return new_cands; in populate_cand_cache()
9362 struct bpf_cand_cache *new_cands; in bpf_core_add_cands() local
9391 new_cands = kmalloc(sizeof_cands(cands->cnt + 1), GFP_KERNEL_ACCOUNT); in bpf_core_add_cands()
[all …]
/linux/tools/lib/bpf/
H A Dlibbpf.c5760 struct bpf_core_cand *new_cands, *cand; in load_module_btfs()
5790 new_cands = libbpf_reallocarray(cands->cands, cands->len + 1, in load_module_btfs()
5792 if (!new_cands) in load_module_btfs()
5795 cand = &new_cands[cands->len]; in load_module_btfs()
5799 cands->cands = new_cands; in load_module_btfs()
5706 struct bpf_core_cand *new_cands, *cand; bpf_core_add_cands() local