Home
last modified time | relevance | path

Searched refs:cands (Results 1 – 3 of 3) sorted by relevance

/tools/lib/bpf/
Drelo_core.h87 struct bpf_core_cand *cands; member
95 struct bpf_core_cand_list *cands);
Drelo_core.c1150 struct bpf_core_cand_list *cands) in bpf_core_apply_relo_insn() argument
1204 for (i = 0, j = 0; i < cands->len; i++) { in bpf_core_apply_relo_insn()
1205 err = bpf_core_spec_match(&local_spec, cands->cands[i].btf, in bpf_core_apply_relo_insn()
1206 cands->cands[i].id, &cand_spec); in bpf_core_apply_relo_insn()
1250 cands->cands[j++] = cands->cands[i]; in bpf_core_apply_relo_insn()
1262 cands->len = j; in bpf_core_apply_relo_insn()
Dlibbpf.c4812 static void bpf_core_free_cands(struct bpf_core_cand_list *cands) in bpf_core_free_cands() argument
4814 free(cands->cands); in bpf_core_free_cands()
4815 free(cands); in bpf_core_free_cands()
4823 struct bpf_core_cand_list *cands) in bpf_core_add_cands() argument
4852 new_cands = libbpf_reallocarray(cands->cands, cands->len + 1, in bpf_core_add_cands()
4853 sizeof(*cands->cands)); in bpf_core_add_cands()
4857 cand = &new_cands[cands->len]; in bpf_core_add_cands()
4863 cands->cands = new_cands; in bpf_core_add_cands()
4864 cands->len++; in bpf_core_add_cands()
4965 struct bpf_core_cand_list *cands; in bpf_core_find_cands() local
[all …]