Lines Matching refs:env
78 struct perf_env *env = machine->env; in machine__process_bpf_event_load() local
84 if (env == NULL) in machine__process_bpf_event_load()
87 info_node = perf_env__find_bpf_prog_info(env, id); in machine__process_bpf_event_load()
101 map->dso->bpf_prog.env = env; in machine__process_bpf_event_load()
131 static int perf_env__fetch_btf(struct perf_env *env, in perf_env__fetch_btf() argument
149 if (!perf_env__insert_btf(env, node)) { in perf_env__fetch_btf()
213 struct perf_env *env; in perf_event__synthesize_one_bpf_prog() local
222 env = session->data ? &session->header.env : &perf_env; in perf_event__synthesize_one_bpf_prog()
273 perf_env__fetch_btf(env, info->btf_id, btf); in perf_event__synthesize_one_bpf_prog()
327 perf_env__insert_bpf_prog_info(env, info_node); in perf_event__synthesize_one_bpf_prog()
483 static void perf_env__add_bpf_info(struct perf_env *env, u32 id) in perf_env__add_bpf_info() argument
515 perf_env__insert_bpf_prog_info(env, info_node); in perf_env__add_bpf_info()
528 perf_env__fetch_btf(env, btf_id, btf); in perf_env__add_bpf_info()
537 struct perf_env *env = data; in bpf_event__sb_cb() local
544 perf_env__add_bpf_info(env, event->bpf.id); in bpf_event__sb_cb()
561 int evlist__add_bpf_sb_event(struct evlist *evlist, struct perf_env *env) in evlist__add_bpf_sb_event() argument
578 return evlist__add_sb_event(evlist, &attr, bpf_event__sb_cb, env); in evlist__add_bpf_sb_event()
582 struct perf_env *env, in bpf_event__print_bpf_prog_info() argument
599 node = perf_env__find_btf(env, info->btf_id); in bpf_event__print_bpf_prog_info()