Searched refs:cand_cache (Results 1 – 2 of 2) sorted by relevance
/linux-6.1.9/tools/bpf/bpftool/ |
D | gen.c | 2051 struct hashmap *cand_cache = NULL; in btfgen_record_obj() local 2077 cand_cache = hashmap__new(btfgen_hash_fn, btfgen_equal_fn, NULL); in btfgen_record_obj() 2078 if (IS_ERR(cand_cache)) { in btfgen_record_obj() 2079 err = PTR_ERR(cand_cache); in btfgen_record_obj() 2093 !hashmap__find(cand_cache, type_key, (void **)&cands)) { in btfgen_record_obj() 2100 err = hashmap__set(cand_cache, type_key, cands, NULL, NULL); in btfgen_record_obj() 2121 if (!IS_ERR_OR_NULL(cand_cache)) { in btfgen_record_obj() 2122 hashmap__for_each_entry(cand_cache, entry, i) { in btfgen_record_obj() 2125 hashmap__free(cand_cache); in btfgen_record_obj()
|
/linux-6.1.9/tools/lib/bpf/ |
D | libbpf.c | 5609 struct hashmap *cand_cache, in bpf_core_resolve_relo() argument 5630 !hashmap__find(cand_cache, type_key, (void **)&cands)) { in bpf_core_resolve_relo() 5638 err = hashmap__set(cand_cache, type_key, cands, NULL, NULL); in bpf_core_resolve_relo() 5657 struct hashmap *cand_cache = NULL; in bpf_object__relocate_core() local 5675 cand_cache = hashmap__new(bpf_core_hash_fn, bpf_core_equal_fn, NULL); in bpf_object__relocate_core() 5676 if (IS_ERR(cand_cache)) { in bpf_object__relocate_core() 5677 err = PTR_ERR(cand_cache); in bpf_object__relocate_core() 5738 err = bpf_core_resolve_relo(prog, rec, i, obj->btf, cand_cache, &targ_res); in bpf_object__relocate_core() 5759 if (!IS_ERR_OR_NULL(cand_cache)) { in bpf_object__relocate_core() 5760 hashmap__for_each_entry(cand_cache, entry, i) { in bpf_object__relocate_core() [all …]
|