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

/linux-master/tools/bpf/bpftool/
H A Dgen.c2302 struct hashmap *cand_cache = NULL; local
2328 cand_cache = hashmap__new(btfgen_hash_fn, btfgen_equal_fn, NULL);
2329 if (IS_ERR(cand_cache)) {
2330 err = PTR_ERR(cand_cache);
2343 !hashmap__find(cand_cache, relo->type_id, &cands)) {
2350 err = hashmap__set(cand_cache, relo->type_id, cands,
2372 if (!IS_ERR_OR_NULL(cand_cache)) {
2373 hashmap__for_each_entry(cand_cache, entry, i) {
2376 hashmap__free(cand_cache);
/linux-master/tools/lib/bpf/
H A Dlibbpf.c5775 struct hashmap *cand_cache,
5795 !hashmap__find(cand_cache, local_id, &cands)) {
5803 err = hashmap__set(cand_cache, local_id, cands, NULL, NULL);
5822 struct hashmap *cand_cache = NULL; local
5840 cand_cache = hashmap__new(bpf_core_hash_fn, bpf_core_equal_fn, NULL);
5841 if (IS_ERR(cand_cache)) {
5842 err = PTR_ERR(cand_cache);
5903 err = bpf_core_resolve_relo(prog, rec, i, obj->btf, cand_cache, &targ_res);
5924 if (!IS_ERR_OR_NULL(cand_cache)) {
5925 hashmap__for_each_entry(cand_cache, entr
5771 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 134 milliseconds