Searched refs:cands (Results 1 - 7 of 7) sorted by relevance
/linux-master/tools/lib/bpf/ |
H A D | relo_core.h | 16 struct bpf_core_cand *cands; member in struct:bpf_core_cand_list 85 struct bpf_core_cand_list *cands,
|
H A D | relo_core.c | 1284 struct bpf_core_cand_list *cands, 1337 for (i = 0, j = 0; i < cands->len; i++) { 1338 err = bpf_core_spec_match(local_spec, cands->cands[i].btf, 1339 cands->cands[i].id, cand_spec); 1384 cands->cands[j++] = cands->cands[ 1280 bpf_core_calc_relo_insn(const char *prog_name, const struct bpf_core_relo *relo, int relo_idx, const struct btf *local_btf, struct bpf_core_cand_list *cands, struct bpf_core_spec *specs_scratch, struct bpf_core_relo_res *targ_res) argument [all...] |
H A D | libbpf_internal.h | 634 struct bpf_core_cand_list *cands); 635 void bpf_core_free_cands(struct bpf_core_cand_list *cands);
|
H A D | libbpf.c | 5431 void bpf_core_free_cands(struct bpf_core_cand_list *cands) argument 5433 if (!cands) 5436 free(cands->cands); 5437 free(cands); 5445 struct bpf_core_cand_list *cands) 5477 new_cands = libbpf_reallocarray(cands->cands, cands->len + 1, 5478 sizeof(*cands 5440 bpf_core_add_cands(struct bpf_core_cand *local_cand, size_t local_essent_len, const struct btf *targ_btf, const char *targ_btf_name, int targ_start_id, struct bpf_core_cand_list *cands) argument 5592 struct bpf_core_cand_list *cands; local 5732 struct bpf_core_cand_list *cands = NULL; local [all...] |
/linux-master/kernel/bpf/ |
H A D | btf.c | 7054 } cands[]; member in struct:bpf_cand_cache 7097 if (btf_is_module(cc->cands[0].btf)) { 7103 kern_type_id = cc->cands[0].id; 8406 static void bpf_free_cands(struct bpf_cand_cache *cands) argument 8408 if (!cands->cnt) 8411 kfree(cands); 8414 static void bpf_free_cands_from_cache(struct bpf_cand_cache *cands) argument 8416 kfree(cands->name); 8417 kfree(cands); 8439 bpf_log(log, "%d", cc->cands[ 8458 hash_cands(struct bpf_cand_cache *cands) argument 8463 check_cand_cache(struct bpf_cand_cache *cands, struct bpf_cand_cache **cache, int cache_size) argument 8480 populate_cand_cache(struct bpf_cand_cache *cands, struct bpf_cand_cache **cache, int cache_size) argument 8550 bpf_core_add_cands(struct bpf_cand_cache *cands, const struct btf *targ_btf, int targ_start_id) argument 8601 struct bpf_cand_cache *cands, *cc, local_cand = {}; local 8690 struct bpf_core_cand_list cands = {}; local [all...] |
/linux-master/tools/bpf/bpftool/ |
H A D | gen.c | 2256 struct bpf_core_cand_list *cands = NULL; local 2278 cands = calloc(1, sizeof(*cands)); 2279 if (!cands) 2282 err = bpf_core_add_cands(&local_cand, local_essent_len, targ_btf, "vmlinux", 1, cands); 2286 return cands; 2289 bpf_core_free_cands(cands); 2338 struct bpf_core_cand_list *cands = NULL; local 2342 !hashmap__find(cand_cache, relo->type_id, &cands)) { 2343 cands [all...] |
/linux-master/net/batman-adv/ |
H A D | distributed-arp-table.c | 554 * @cands: candidates array 560 struct batadv_dat_candidate *cands, 574 cands[select].type = BATADV_DAT_CANDIDATE_NOT_FOUND; 588 if (!batadv_is_orig_node_eligible(cands, select, 604 cands[select].type = BATADV_DAT_CANDIDATE_ORIG; 605 cands[select].orig_node = max_orig_node; 559 batadv_choose_next_candidate(struct batadv_priv *bat_priv, struct batadv_dat_candidate *cands, int select, batadv_dat_addr_t ip_key, batadv_dat_addr_t *last_max) argument
|
Completed in 600 milliseconds