Home
last modified time | relevance | path

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

/tools/bpf/bpftool/
Dgen.c2350 struct hashmap *cand_cache = NULL; in btfgen_record_obj() local
2376 cand_cache = hashmap__new(btfgen_hash_fn, btfgen_equal_fn, NULL); in btfgen_record_obj()
2377 if (IS_ERR(cand_cache)) { in btfgen_record_obj()
2378 err = PTR_ERR(cand_cache); in btfgen_record_obj()
2391 !hashmap__find(cand_cache, relo->type_id, &cands)) { in btfgen_record_obj()
2398 err = hashmap__set(cand_cache, relo->type_id, cands, in btfgen_record_obj()
2420 if (!IS_ERR_OR_NULL(cand_cache)) { in btfgen_record_obj()
2421 hashmap__for_each_entry(cand_cache, entry, i) { in btfgen_record_obj()
2424 hashmap__free(cand_cache); in btfgen_record_obj()
/tools/lib/bpf/
Dlibbpf.c5860 struct hashmap *cand_cache, in bpf_core_resolve_relo() argument
5880 !hashmap__find(cand_cache, local_id, &cands)) { in bpf_core_resolve_relo()
5888 err = hashmap__set(cand_cache, local_id, cands, NULL, NULL); in bpf_core_resolve_relo()
5907 struct hashmap *cand_cache = NULL; in bpf_object__relocate_core() local
5925 cand_cache = hashmap__new(bpf_core_hash_fn, bpf_core_equal_fn, NULL); in bpf_object__relocate_core()
5926 if (IS_ERR(cand_cache)) { in bpf_object__relocate_core()
5927 err = PTR_ERR(cand_cache); in bpf_object__relocate_core()
5988 err = bpf_core_resolve_relo(prog, rec, i, obj->btf, cand_cache, &targ_res); in bpf_object__relocate_core()
6009 if (!IS_ERR_OR_NULL(cand_cache)) { in bpf_object__relocate_core()
6010 hashmap__for_each_entry(cand_cache, entry, i) { in bpf_object__relocate_core()
[all …]