cand_ids 2500 tools/lib/bpf/libbpf.c static void bpf_core_free_cands(struct ids_vec *cand_ids) cand_ids 2502 tools/lib/bpf/libbpf.c free(cand_ids->data); cand_ids 2503 tools/lib/bpf/libbpf.c free(cand_ids); cand_ids 2513 tools/lib/bpf/libbpf.c struct ids_vec *cand_ids; cand_ids 2526 tools/lib/bpf/libbpf.c cand_ids = calloc(1, sizeof(*cand_ids)); cand_ids 2527 tools/lib/bpf/libbpf.c if (!cand_ids) cand_ids 2544 tools/lib/bpf/libbpf.c new_ids = reallocarray(cand_ids->data, cand_ids 2545 tools/lib/bpf/libbpf.c cand_ids->len + 1, cand_ids 2546 tools/lib/bpf/libbpf.c sizeof(*cand_ids->data)); cand_ids 2551 tools/lib/bpf/libbpf.c cand_ids->data = new_ids; cand_ids 2552 tools/lib/bpf/libbpf.c cand_ids->data[cand_ids->len++] = i; cand_ids 2555 tools/lib/bpf/libbpf.c return cand_ids; cand_ids 2557 tools/lib/bpf/libbpf.c bpf_core_free_cands(cand_ids); cand_ids 3018 tools/lib/bpf/libbpf.c struct ids_vec *cand_ids; cand_ids 3048 tools/lib/bpf/libbpf.c if (!hashmap__find(cand_cache, type_key, (void **)&cand_ids)) { cand_ids 3049 tools/lib/bpf/libbpf.c cand_ids = bpf_core_find_cands(local_btf, local_id, targ_btf); cand_ids 3050 tools/lib/bpf/libbpf.c if (IS_ERR(cand_ids)) { cand_ids 3053 tools/lib/bpf/libbpf.c PTR_ERR(cand_ids)); cand_ids 3054 tools/lib/bpf/libbpf.c return PTR_ERR(cand_ids); cand_ids 3056 tools/lib/bpf/libbpf.c err = hashmap__set(cand_cache, type_key, cand_ids, NULL, NULL); cand_ids 3058 tools/lib/bpf/libbpf.c bpf_core_free_cands(cand_ids); cand_ids 3063 tools/lib/bpf/libbpf.c for (i = 0, j = 0; i < cand_ids->len; i++) { cand_ids 3064 tools/lib/bpf/libbpf.c cand_id = cand_ids->data[i]; cand_ids 3094 tools/lib/bpf/libbpf.c cand_ids->data[j++] = cand_spec.spec[0].type_id; cand_ids 3097 tools/lib/bpf/libbpf.c cand_ids->len = j; cand_ids 3098 tools/lib/bpf/libbpf.c if (cand_ids->len == 0) {