Home
last modified time | relevance | path

Searched refs:cand_cache (Results 1 – 2 of 2) sorted by relevance

/linux/tools/bpf/bpftool/
H A Dgen.c2443 struct hashmap *cand_cache = NULL; in btfgen_record_obj() local
2469 cand_cache = hashmap__new(btfgen_hash_fn, btfgen_equal_fn, NULL); in btfgen_record_obj()
2470 if (IS_ERR(cand_cache)) { in btfgen_record_obj()
2471 err = PTR_ERR(cand_cache); in btfgen_record_obj()
2484 !hashmap__find(cand_cache, relo->type_id, &cands)) { in btfgen_record_obj()
2491 err = hashmap__set(cand_cache, relo->type_id, cands, in btfgen_record_obj()
2513 if (!IS_ERR_OR_NULL(cand_cache)) { in btfgen_record_obj()
2514 hashmap__for_each_entry(cand_cache, entry, i) { in btfgen_record_obj()
2517 hashmap__free(cand_cache); in btfgen_record_obj()
/linux/tools/lib/bpf/
H A Dlibbpf.c6091 struct hashmap *cand_cache, in bpf_core_resolve_relo() argument
6111 !hashmap__find(cand_cache, local_id, &cands)) { in bpf_core_resolve_relo()
6119 err = hashmap__set(cand_cache, local_id, cands, NULL, NULL); in bpf_core_resolve_relo()
6138 struct hashmap *cand_cache = NULL; in bpf_object__relocate_core() local
6156 cand_cache = hashmap__new(bpf_core_hash_fn, bpf_core_equal_fn, NULL); in bpf_object__relocate_core()
6157 if (IS_ERR(cand_cache)) { in bpf_object__relocate_core()
6158 err = PTR_ERR(cand_cache); in bpf_object__relocate_core()
6219 err = bpf_core_resolve_relo(prog, rec, i, obj->btf, cand_cache, &targ_res); in bpf_object__relocate_core()
6240 if (!IS_ERR_OR_NULL(cand_cache)) { in bpf_object__relocate_core()
6241 hashmap__for_each_entry(cand_cache, entry, i) { in bpf_object__relocate_core()
[all …]