Searched refs:cands (Results 1 – 7 of 7) sorted by relevance
| /Linux-v6.1/kernel/bpf/ |
| D | btf.c | 7678 } cands[]; member 7681 static void bpf_free_cands(struct bpf_cand_cache *cands) in bpf_free_cands() argument 7683 if (!cands->cnt) in bpf_free_cands() 7686 kfree(cands); in bpf_free_cands() 7689 static void bpf_free_cands_from_cache(struct bpf_cand_cache *cands) in bpf_free_cands_from_cache() argument 7691 kfree(cands->name); in bpf_free_cands_from_cache() 7692 kfree(cands); in bpf_free_cands_from_cache() 7716 bpf_log(log, "%d", cc->cands[j].id); in __print_cand_cache() 7735 static u32 hash_cands(struct bpf_cand_cache *cands) in hash_cands() argument 7737 return jhash(cands->name, cands->name_len, 0); in hash_cands() [all …]
|
| /Linux-v6.1/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 | 560 struct bpf_core_cand_list *cands); 561 void bpf_core_free_cands(struct bpf_core_cand_list *cands);
|
| D | libbpf.c | 5299 void bpf_core_free_cands(struct bpf_core_cand_list *cands) in bpf_core_free_cands() argument 5301 if (!cands) in bpf_core_free_cands() 5304 free(cands->cands); in bpf_core_free_cands() 5305 free(cands); in bpf_core_free_cands() 5313 struct bpf_core_cand_list *cands) in bpf_core_add_cands() argument 5345 new_cands = libbpf_reallocarray(cands->cands, cands->len + 1, in bpf_core_add_cands() 5346 sizeof(*cands->cands)); in bpf_core_add_cands() 5350 cand = &new_cands[cands->len]; in bpf_core_add_cands() 5354 cands->cands = new_cands; in bpf_core_add_cands() 5355 cands->len++; in bpf_core_add_cands() [all …]
|
| /Linux-v6.1/tools/bpf/bpftool/ |
| D | gen.c | 2006 struct bpf_core_cand_list *cands = NULL; in btfgen_find_cands() local 2028 cands = calloc(1, sizeof(*cands)); in btfgen_find_cands() 2029 if (!cands) in btfgen_find_cands() 2032 err = bpf_core_add_cands(&local_cand, local_essent_len, targ_btf, "vmlinux", 1, cands); in btfgen_find_cands() 2036 return cands; in btfgen_find_cands() 2039 bpf_core_free_cands(cands); in btfgen_find_cands() 2088 struct bpf_core_cand_list *cands = NULL; in btfgen_record_obj() local 2093 !hashmap__find(cand_cache, type_key, (void **)&cands)) { in btfgen_record_obj() 2094 cands = btfgen_find_cands(btf, info->src_btf, relo->type_id); in btfgen_record_obj() 2095 if (!cands) { in btfgen_record_obj() [all …]
|
| /Linux-v6.1/net/batman-adv/ |
| D | distributed-arp-table.c | 561 struct batadv_dat_candidate *cands, in batadv_choose_next_candidate() argument 575 cands[select].type = BATADV_DAT_CANDIDATE_NOT_FOUND; in batadv_choose_next_candidate() 589 if (!batadv_is_orig_node_eligible(cands, select, in batadv_choose_next_candidate() 605 cands[select].type = BATADV_DAT_CANDIDATE_ORIG; in batadv_choose_next_candidate() 606 cands[select].orig_node = max_orig_node; in batadv_choose_next_candidate()
|