Home
last modified time | relevance | path

Searched refs:cand_cache (Results 1 - 3 of 3) sorted by relevance

/kernel/linux/linux-6.6/tools/bpf/bpftool/
H A Dgen.c2047 struct hashmap *cand_cache = NULL; in btfgen_record_obj() local
2073 cand_cache = hashmap__new(btfgen_hash_fn, btfgen_equal_fn, NULL); in btfgen_record_obj()
2074 if (IS_ERR(cand_cache)) { in btfgen_record_obj()
2075 err = PTR_ERR(cand_cache); in btfgen_record_obj()
2088 !hashmap__find(cand_cache, relo->type_id, &cands)) { in btfgen_record_obj()
2095 err = hashmap__set(cand_cache, relo->type_id, cands, in btfgen_record_obj()
2117 if (!IS_ERR_OR_NULL(cand_cache)) { in btfgen_record_obj()
2118 hashmap__for_each_entry(cand_cache, entry, i) { in btfgen_record_obj()
2121 hashmap__free(cand_cache); in btfgen_record_obj()
/kernel/linux/linux-5.10/tools/lib/bpf/
H A Dlibbpf.c5730 struct hashmap *cand_cache) in bpf_core_apply_relo()
5785 if (!hashmap__find(cand_cache, type_key, (void **)&cand_ids)) { in bpf_core_apply_relo()
5793 err = hashmap__set(cand_cache, type_key, cand_ids, NULL, NULL); in bpf_core_apply_relo()
5900 struct hashmap *cand_cache = NULL; in bpf_object__relocate_core() local
5918 cand_cache = hashmap__new(bpf_core_hash_fn, bpf_core_equal_fn, NULL); in bpf_object__relocate_core()
5919 if (IS_ERR(cand_cache)) { in bpf_object__relocate_core()
5920 err = PTR_ERR(cand_cache); in bpf_object__relocate_core()
5976 targ_btf, cand_cache); in bpf_object__relocate_core()
5989 if (!IS_ERR_OR_NULL(cand_cache)) { in bpf_object__relocate_core()
5990 hashmap__for_each_entry(cand_cache, entr in bpf_object__relocate_core()
5725 bpf_core_apply_relo(struct bpf_program *prog, const struct bpf_core_relo *relo, int relo_idx, const struct btf *local_btf, const struct btf *targ_btf, struct hashmap *cand_cache) bpf_core_apply_relo() argument
[all...]
/kernel/linux/linux-6.6/tools/lib/bpf/
H A Dlibbpf.c5743 struct hashmap *cand_cache, in bpf_core_resolve_relo()
5763 !hashmap__find(cand_cache, local_id, &cands)) { in bpf_core_resolve_relo()
5771 err = hashmap__set(cand_cache, local_id, cands, NULL, NULL); in bpf_core_resolve_relo()
5790 struct hashmap *cand_cache = NULL; in bpf_object__relocate_core() local
5808 cand_cache = hashmap__new(bpf_core_hash_fn, bpf_core_equal_fn, NULL); in bpf_object__relocate_core()
5809 if (IS_ERR(cand_cache)) { in bpf_object__relocate_core()
5810 err = PTR_ERR(cand_cache); in bpf_object__relocate_core()
5871 err = bpf_core_resolve_relo(prog, rec, i, obj->btf, cand_cache, &targ_res); in bpf_object__relocate_core()
5892 if (!IS_ERR_OR_NULL(cand_cache)) { in bpf_object__relocate_core()
5893 hashmap__for_each_entry(cand_cache, entr in bpf_object__relocate_core()
5739 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) bpf_core_resolve_relo() argument
[all...]

Completed in 25 milliseconds