Lines Matching refs:bpf_progs

26 	down_write(&env->bpf_progs.lock);  in perf_env__insert_bpf_prog_info()
27 p = &env->bpf_progs.infos.rb_node; in perf_env__insert_bpf_prog_info()
43 rb_insert_color(&info_node->rb_node, &env->bpf_progs.infos); in perf_env__insert_bpf_prog_info()
44 env->bpf_progs.infos_cnt++; in perf_env__insert_bpf_prog_info()
46 up_write(&env->bpf_progs.lock); in perf_env__insert_bpf_prog_info()
55 down_read(&env->bpf_progs.lock); in perf_env__find_bpf_prog_info()
56 n = env->bpf_progs.infos.rb_node; in perf_env__find_bpf_prog_info()
70 up_read(&env->bpf_progs.lock); in perf_env__find_bpf_prog_info()
81 down_write(&env->bpf_progs.lock); in perf_env__insert_btf()
82 p = &env->bpf_progs.btfs.rb_node; in perf_env__insert_btf()
98 rb_insert_color(&btf_node->rb_node, &env->bpf_progs.btfs); in perf_env__insert_btf()
99 env->bpf_progs.btfs_cnt++; in perf_env__insert_btf()
101 up_write(&env->bpf_progs.lock); in perf_env__insert_btf()
109 down_read(&env->bpf_progs.lock); in perf_env__find_btf()
110 n = env->bpf_progs.btfs.rb_node; in perf_env__find_btf()
124 up_read(&env->bpf_progs.lock); in perf_env__find_btf()
134 down_write(&env->bpf_progs.lock); in perf_env__purge_bpf()
136 root = &env->bpf_progs.infos; in perf_env__purge_bpf()
148 env->bpf_progs.infos_cnt = 0; in perf_env__purge_bpf()
150 root = &env->bpf_progs.btfs; in perf_env__purge_bpf()
162 env->bpf_progs.btfs_cnt = 0; in perf_env__purge_bpf()
164 up_write(&env->bpf_progs.lock); in perf_env__purge_bpf()
202 env->bpf_progs.infos = RB_ROOT; in perf_env__init()
203 env->bpf_progs.btfs = RB_ROOT; in perf_env__init()
204 init_rwsem(&env->bpf_progs.lock); in perf_env__init()