Lines Matching refs:bpf_program_hash
89 static struct hashmap *bpf_program_hash; variable
132 if (IS_ERR_OR_NULL(bpf_program_hash)) in program_priv()
134 if (!hashmap__find(bpf_program_hash, prog, &priv)) in program_priv()
317 if (IS_ERR_OR_NULL(bpf_program_hash)) in bpf_program_hash_free()
320 hashmap__for_each_entry(bpf_program_hash, cur, bkt) in bpf_program_hash_free()
323 hashmap__free(bpf_program_hash); in bpf_program_hash_free()
324 bpf_program_hash = NULL; in bpf_program_hash_free()
361 if (IS_ERR(bpf_program_hash)) in program_set_priv()
362 return PTR_ERR(bpf_program_hash); in program_set_priv()
364 if (!bpf_program_hash) { in program_set_priv()
365 bpf_program_hash = hashmap__new(ptr_hash, ptr_equal, NULL); in program_set_priv()
366 if (IS_ERR(bpf_program_hash)) in program_set_priv()
367 return PTR_ERR(bpf_program_hash); in program_set_priv()
373 return hashmap__set(bpf_program_hash, prog, priv, NULL, NULL); in program_set_priv()
375 return hashmap__add(bpf_program_hash, prog, priv); in program_set_priv()
1199 return PTR_ERR(bpf_program_hash); in map_set_priv()