Lines Matching refs:bpf_progs
28 down_write(&env->bpf_progs.lock); in perf_env__insert_bpf_prog_info()
30 up_write(&env->bpf_progs.lock); in perf_env__insert_bpf_prog_info()
40 p = &env->bpf_progs.infos.rb_node; in __perf_env__insert_bpf_prog_info()
56 rb_insert_color(&info_node->rb_node, &env->bpf_progs.infos); in __perf_env__insert_bpf_prog_info()
57 env->bpf_progs.infos_cnt++; in __perf_env__insert_bpf_prog_info()
66 down_read(&env->bpf_progs.lock); in perf_env__find_bpf_prog_info()
67 n = env->bpf_progs.infos.rb_node; in perf_env__find_bpf_prog_info()
81 up_read(&env->bpf_progs.lock); in perf_env__find_bpf_prog_info()
89 down_write(&env->bpf_progs.lock); in perf_env__insert_btf()
91 up_write(&env->bpf_progs.lock); in perf_env__insert_btf()
102 p = &env->bpf_progs.btfs.rb_node; in __perf_env__insert_btf()
118 rb_insert_color(&btf_node->rb_node, &env->bpf_progs.btfs); in __perf_env__insert_btf()
119 env->bpf_progs.btfs_cnt++; in __perf_env__insert_btf()
127 down_read(&env->bpf_progs.lock); in perf_env__find_btf()
129 up_read(&env->bpf_progs.lock); in perf_env__find_btf()
138 n = env->bpf_progs.btfs.rb_node; in __perf_env__find_btf()
158 down_write(&env->bpf_progs.lock); in perf_env__purge_bpf()
160 root = &env->bpf_progs.infos; in perf_env__purge_bpf()
173 env->bpf_progs.infos_cnt = 0; in perf_env__purge_bpf()
175 root = &env->bpf_progs.btfs; in perf_env__purge_bpf()
187 env->bpf_progs.btfs_cnt = 0; in perf_env__purge_bpf()
189 up_write(&env->bpf_progs.lock); in perf_env__purge_bpf()
251 env->bpf_progs.infos = RB_ROOT; in perf_env__init()
252 env->bpf_progs.btfs = RB_ROOT; in perf_env__init()
253 init_rwsem(&env->bpf_progs.lock); in perf_env__init()