Lines Matching defs:evsel
10 #include "evsel.h"
16 typedef void (*setup_probe_fn_t)(struct evsel *evsel);
21 struct evsel *evsel;
33 evsel = evlist__first(evlist);
36 fd = sys_perf_event_open(&evsel->core.attr, pid, cpu.cpu, -1, flags);
48 fn(evsel);
50 fd = sys_perf_event_open(&evsel->core.attr, pid, cpu.cpu, -1, flags);
97 static void perf_probe_sample_identifier(struct evsel *evsel)
99 evsel->core.attr.sample_type |= PERF_SAMPLE_IDENTIFIER;
102 static void perf_probe_comm_exec(struct evsel *evsel)
104 evsel->core.attr.comm_exec = 1;
107 static void perf_probe_context_switch(struct evsel *evsel)
109 evsel->core.attr.context_switch = 1;
112 static void perf_probe_text_poke(struct evsel *evsel)
114 evsel->core.attr.text_poke = 1;
117 static void perf_probe_build_id(struct evsel *evsel)
119 evsel->core.attr.build_id = 1;
122 static void perf_probe_cgroup(struct evsel *evsel)
124 evsel->core.attr.cgroup = 1;