Lines Matching refs:bpf_progs

30 	down_write(&env->bpf_progs.lock);  in perf_env__insert_bpf_prog_info()
31 p = &env->bpf_progs.infos.rb_node; in perf_env__insert_bpf_prog_info()
47 rb_insert_color(&info_node->rb_node, &env->bpf_progs.infos); in perf_env__insert_bpf_prog_info()
48 env->bpf_progs.infos_cnt++; in perf_env__insert_bpf_prog_info()
50 up_write(&env->bpf_progs.lock); in perf_env__insert_bpf_prog_info()
59 down_read(&env->bpf_progs.lock); in perf_env__find_bpf_prog_info()
60 n = env->bpf_progs.infos.rb_node; in perf_env__find_bpf_prog_info()
74 up_read(&env->bpf_progs.lock); in perf_env__find_bpf_prog_info()
86 down_write(&env->bpf_progs.lock); in perf_env__insert_btf()
87 p = &env->bpf_progs.btfs.rb_node; in perf_env__insert_btf()
104 rb_insert_color(&btf_node->rb_node, &env->bpf_progs.btfs); in perf_env__insert_btf()
105 env->bpf_progs.btfs_cnt++; in perf_env__insert_btf()
107 up_write(&env->bpf_progs.lock); in perf_env__insert_btf()
116 down_read(&env->bpf_progs.lock); in perf_env__find_btf()
117 n = env->bpf_progs.btfs.rb_node; in perf_env__find_btf()
131 up_read(&env->bpf_progs.lock); in perf_env__find_btf()
141 down_write(&env->bpf_progs.lock); in perf_env__purge_bpf()
143 root = &env->bpf_progs.infos; in perf_env__purge_bpf()
156 env->bpf_progs.infos_cnt = 0; in perf_env__purge_bpf()
158 root = &env->bpf_progs.btfs; in perf_env__purge_bpf()
170 env->bpf_progs.btfs_cnt = 0; in perf_env__purge_bpf()
172 up_write(&env->bpf_progs.lock); in perf_env__purge_bpf()
234 env->bpf_progs.infos = RB_ROOT; in perf_env__init()
235 env->bpf_progs.btfs = RB_ROOT; in perf_env__init()
236 init_rwsem(&env->bpf_progs.lock); in perf_env__init()