Searched refs:cand_cache (Results 1 - 2 of 2) sorted by relevance
/linux-master/tools/bpf/bpftool/ |
H A D | gen.c | 2301 struct hashmap *cand_cache = NULL; local 2327 cand_cache = hashmap__new(btfgen_hash_fn, btfgen_equal_fn, NULL); 2328 if (IS_ERR(cand_cache)) { 2329 err = PTR_ERR(cand_cache); 2342 !hashmap__find(cand_cache, relo->type_id, &cands)) { 2349 err = hashmap__set(cand_cache, relo->type_id, cands, 2371 if (!IS_ERR_OR_NULL(cand_cache)) { 2372 hashmap__for_each_entry(cand_cache, entry, i) { 2375 hashmap__free(cand_cache);
|
/linux-master/tools/lib/bpf/ |
H A D | libbpf.c | 5728 struct hashmap *cand_cache, 5748 !hashmap__find(cand_cache, local_id, &cands)) { 5756 err = hashmap__set(cand_cache, local_id, cands, NULL, NULL); 5775 struct hashmap *cand_cache = NULL; local 5793 cand_cache = hashmap__new(bpf_core_hash_fn, bpf_core_equal_fn, NULL); 5794 if (IS_ERR(cand_cache)) { 5795 err = PTR_ERR(cand_cache); 5856 err = bpf_core_resolve_relo(prog, rec, i, obj->btf, cand_cache, &targ_res); 5877 if (!IS_ERR_OR_NULL(cand_cache)) { 5878 hashmap__for_each_entry(cand_cache, entr 5724 bpf_core_resolve_relo(struct bpf_program *prog, const struct bpf_core_relo *relo, int relo_idx, const struct btf *local_btf, struct hashmap *cand_cache, struct bpf_core_relo_res *targ_res) argument [all...] |
Completed in 722 milliseconds