Searched refs:cands (Results 1 – 7 of 7) sorted by relevance
/Linux-v6.6/kernel/bpf/ |
D | btf.c | 8131 } cands[]; member 8134 static void bpf_free_cands(struct bpf_cand_cache *cands) in bpf_free_cands() argument 8136 if (!cands->cnt) in bpf_free_cands() 8139 kfree(cands); in bpf_free_cands() 8142 static void bpf_free_cands_from_cache(struct bpf_cand_cache *cands) in bpf_free_cands_from_cache() argument 8144 kfree(cands->name); in bpf_free_cands_from_cache() 8145 kfree(cands); in bpf_free_cands_from_cache() 8169 bpf_log(log, "%d", cc->cands[j].id); in __print_cand_cache() 8188 static u32 hash_cands(struct bpf_cand_cache *cands) in hash_cands() argument 8190 return jhash(cands->name, cands->name_len, 0); in hash_cands() [all …]
|
/Linux-v6.6/tools/lib/bpf/ |
D | relo_core.h | 16 struct bpf_core_cand *cands; member 85 struct bpf_core_cand_list *cands,
|
D | relo_core.c | 1284 struct bpf_core_cand_list *cands, in bpf_core_calc_relo_insn() argument 1337 for (i = 0, j = 0; i < cands->len; i++) { in bpf_core_calc_relo_insn() 1338 err = bpf_core_spec_match(local_spec, cands->cands[i].btf, in bpf_core_calc_relo_insn() 1339 cands->cands[i].id, cand_spec); in bpf_core_calc_relo_insn() 1384 cands->cands[j++] = cands->cands[i]; in bpf_core_calc_relo_insn() 1396 cands->len = j; in bpf_core_calc_relo_insn()
|
D | libbpf_internal.h | 564 struct bpf_core_cand_list *cands); 565 void bpf_core_free_cands(struct bpf_core_cand_list *cands);
|
D | libbpf.c | 5440 void bpf_core_free_cands(struct bpf_core_cand_list *cands) in bpf_core_free_cands() argument 5442 if (!cands) in bpf_core_free_cands() 5445 free(cands->cands); in bpf_core_free_cands() 5446 free(cands); in bpf_core_free_cands() 5454 struct bpf_core_cand_list *cands) in bpf_core_add_cands() argument 5486 new_cands = libbpf_reallocarray(cands->cands, cands->len + 1, in bpf_core_add_cands() 5487 sizeof(*cands->cands)); in bpf_core_add_cands() 5491 cand = &new_cands[cands->len]; in bpf_core_add_cands() 5495 cands->cands = new_cands; in bpf_core_add_cands() 5496 cands->len++; in bpf_core_add_cands() [all …]
|
/Linux-v6.6/tools/bpf/bpftool/ |
D | gen.c | 1999 struct bpf_core_cand_list *cands = NULL; in btfgen_find_cands() local 2021 cands = calloc(1, sizeof(*cands)); in btfgen_find_cands() 2022 if (!cands) in btfgen_find_cands() 2025 err = bpf_core_add_cands(&local_cand, local_essent_len, targ_btf, "vmlinux", 1, cands); in btfgen_find_cands() 2029 return cands; in btfgen_find_cands() 2032 bpf_core_free_cands(cands); in btfgen_find_cands() 2081 struct bpf_core_cand_list *cands = NULL; in btfgen_record_obj() local 2085 !hashmap__find(cand_cache, relo->type_id, &cands)) { in btfgen_record_obj() 2086 cands = btfgen_find_cands(btf, info->src_btf, relo->type_id); in btfgen_record_obj() 2087 if (!cands) { in btfgen_record_obj() [all …]
|
/Linux-v6.6/net/batman-adv/ |
D | distributed-arp-table.c | 560 struct batadv_dat_candidate *cands, in batadv_choose_next_candidate() argument 574 cands[select].type = BATADV_DAT_CANDIDATE_NOT_FOUND; in batadv_choose_next_candidate() 588 if (!batadv_is_orig_node_eligible(cands, select, in batadv_choose_next_candidate() 604 cands[select].type = BATADV_DAT_CANDIDATE_ORIG; in batadv_choose_next_candidate() 605 cands[select].orig_node = max_orig_node; in batadv_choose_next_candidate()
|