Searched refs:cands (Results 1 – 7 of 7) sorted by relevance
| /linux/tools/lib/bpf/ |
| H A D | relo_core.h | 16 struct bpf_core_cand *cands; member 85 struct bpf_core_cand_list *cands,
|
| H A D | relo_core.c | 1301 struct bpf_core_cand_list *cands, in bpf_core_calc_relo_insn() argument 1354 for (i = 0, j = 0; i < cands->len; i++) { in bpf_core_calc_relo_insn() 1355 err = bpf_core_spec_match(local_spec, cands->cands[i].btf, in bpf_core_calc_relo_insn() 1356 cands->cands[i].id, cand_spec); in bpf_core_calc_relo_insn() 1401 cands->cands[j++] = cands->cands[i]; in bpf_core_calc_relo_insn() 1413 cands->len = j; in bpf_core_calc_relo_insn()
|
| H A D | libbpf_internal.h | 725 struct bpf_core_cand_list *cands); 726 void bpf_core_free_cands(struct bpf_core_cand_list *cands);
|
| H A D | libbpf.c | 5793 void bpf_core_free_cands(struct bpf_core_cand_list *cands) in bpf_core_free_cands() argument 5795 if (!cands) in bpf_core_free_cands() 5798 free(cands->cands); in bpf_core_free_cands() 5799 free(cands); in bpf_core_free_cands() 5807 struct bpf_core_cand_list *cands) in bpf_core_add_cands() argument 5839 new_cands = libbpf_reallocarray(cands->cands, cands->len + 1, in bpf_core_add_cands() 5840 sizeof(*cands->cands)); in bpf_core_add_cands() 5844 cand = &new_cands[cands->len]; in bpf_core_add_cands() 5848 cands->cands = new_cands; in bpf_core_add_cands() 5849 cands->len++; in bpf_core_add_cands() [all …]
|
| /linux/kernel/bpf/ |
| H A D | btf.c | 7794 } cands[]; member 7837 if (btf_is_module(cc->cands[0].btf)) { in btf_get_ptr_to_btf_id() 7843 kern_type_id = cc->cands[0].id; in btf_get_ptr_to_btf_id() 9428 static void bpf_free_cands(struct bpf_cand_cache *cands) in bpf_free_cands() argument 9430 if (!cands->cnt) in bpf_free_cands() 9433 kfree(cands); in bpf_free_cands() 9436 static void bpf_free_cands_from_cache(struct bpf_cand_cache *cands) in bpf_free_cands_from_cache() argument 9438 kfree(cands->name); in bpf_free_cands_from_cache() 9439 kfree(cands); in bpf_free_cands_from_cache() 9461 bpf_log(log, "%d", cc->cands[j].id); in __print_cand_cache() [all …]
|
| /linux/tools/bpf/bpftool/ |
| H A D | gen.c | 2398 struct bpf_core_cand_list *cands = NULL; in btfgen_find_cands() local 2420 cands = calloc(1, sizeof(*cands)); in btfgen_find_cands() 2421 if (!cands) in btfgen_find_cands() 2424 err = bpf_core_add_cands(&local_cand, local_essent_len, targ_btf, "vmlinux", 1, cands); in btfgen_find_cands() 2428 return cands; in btfgen_find_cands() 2431 bpf_core_free_cands(cands); in btfgen_find_cands() 2480 struct bpf_core_cand_list *cands = NULL; in btfgen_record_obj() local 2484 !hashmap__find(cand_cache, relo->type_id, &cands)) { in btfgen_record_obj() 2485 cands = btfgen_find_cands(btf, info->src_btf, relo->type_id); in btfgen_record_obj() 2486 if (!cands) { in btfgen_record_obj() [all …]
|
| /linux/net/batman-adv/ |
| H A D | distributed-arp-table.c | 635 struct batadv_dat_candidate *cands, in batadv_choose_next_candidate() argument 650 cands[select].type = BATADV_DAT_CANDIDATE_NOT_FOUND; in batadv_choose_next_candidate() 664 if (!batadv_is_orig_node_eligible(cands, select, in batadv_choose_next_candidate() 680 cands[select].type = BATADV_DAT_CANDIDATE_ORIG; in batadv_choose_next_candidate() 681 cands[select].orig_node = max_orig_node; in batadv_choose_next_candidate()
|