Lines Matching full:env

18 #include "env.h"
40 struct perf_env *env = machine->env; in machine__process_bpf_event_load() local
46 if (env == NULL) in machine__process_bpf_event_load()
49 info_node = perf_env__find_bpf_prog_info(env, id); in machine__process_bpf_event_load()
65 dso__bpf_prog(dso)->env = env; in machine__process_bpf_event_load()
96 static int perf_env__fetch_btf(struct perf_env *env, in perf_env__fetch_btf() argument
114 if (!perf_env__insert_btf(env, node)) { in perf_env__fetch_btf()
178 struct perf_env *env; in perf_event__synthesize_one_bpf_prog() local
184 * for perf-record and perf-report use header.env; in perf_event__synthesize_one_bpf_prog()
187 env = session->data ? &session->header.env : &perf_env; in perf_event__synthesize_one_bpf_prog()
238 perf_env__fetch_btf(env, info->btf_id, btf); in perf_event__synthesize_one_bpf_prog()
284 /* save bpf_prog_info to env */ in perf_event__synthesize_one_bpf_prog()
292 perf_env__insert_bpf_prog_info(env, info_node); in perf_event__synthesize_one_bpf_prog()
296 * process after saving bpf_prog_info to env, so that in perf_event__synthesize_one_bpf_prog()
451 static void perf_env__add_bpf_info(struct perf_env *env, u32 id) in perf_env__add_bpf_info() argument
483 perf_env__insert_bpf_prog_info(env, info_node); in perf_env__add_bpf_info()
496 perf_env__fetch_btf(env, btf_id, btf); in perf_env__add_bpf_info()
505 struct perf_env *env = data; in bpf_event__sb_cb() local
512 perf_env__add_bpf_info(env, event->bpf.id); in bpf_event__sb_cb()
529 int evlist__add_bpf_sb_event(struct evlist *evlist, struct perf_env *env) in evlist__add_bpf_sb_event() argument
546 return evlist__add_sb_event(evlist, &attr, bpf_event__sb_cb, env); in evlist__add_bpf_sb_event()
550 struct perf_env *env, in __bpf_event__print_bpf_prog_info() argument
567 node = __perf_env__find_btf(env, info->btf_id); in __bpf_event__print_bpf_prog_info()