Lines Matching refs:evsel
6 #include "util/evsel.h"
12 typedef void (*setup_probe_fn_t)(struct evsel *evsel);
17 struct evsel *evsel;
29 evsel = evlist__first(evlist);
32 fd = sys_perf_event_open(&evsel->core.attr, pid, cpu.cpu, -1, flags);
44 fn(evsel);
46 fd = sys_perf_event_open(&evsel->core.attr, pid, cpu.cpu, -1, flags);
82 static void perf_probe_sample_identifier(struct evsel *evsel)
84 evsel->core.attr.sample_type |= PERF_SAMPLE_IDENTIFIER;
87 static void perf_probe_comm_exec(struct evsel *evsel)
89 evsel->core.attr.comm_exec = 1;
92 static void perf_probe_context_switch(struct evsel *evsel)
94 evsel->core.attr.context_switch = 1;
97 static void perf_probe_text_poke(struct evsel *evsel)
99 evsel->core.attr.text_poke = 1;
102 static void perf_probe_build_id(struct evsel *evsel)
104 evsel->core.attr.build_id = 1;
107 static void perf_probe_cgroup(struct evsel *evsel)
109 evsel->core.attr.cgroup = 1;