Lines Matching defs:evlist
10 #include "evlist.h"
17 static int attach__enable_on_exec(struct evlist *evlist)
19 struct evsel *evsel = evlist__last(evlist);
29 err = evlist__create_maps(evlist, &target);
35 err = evlist__prepare_workload(evlist, &target, argv, false, NULL);
43 err = evlist__open(evlist);
50 return evlist__start_workload(evlist) == 1 ? TEST_OK : TEST_FAIL;
53 static int detach__enable_on_exec(struct evlist *evlist)
55 waitpid(evlist->workload.pid, NULL, 0);
59 static int attach__current_disabled(struct evlist *evlist)
61 struct evsel *evsel = evlist__last(evlist);
85 static int attach__current_enabled(struct evlist *evlist)
87 struct evsel *evsel = evlist__last(evlist);
105 static int detach__disable(struct evlist *evlist)
107 struct evsel *evsel = evlist__last(evlist);
112 static int attach__cpu_disabled(struct evlist *evlist)
114 struct evsel *evsel = evlist__last(evlist);
141 static int attach__cpu_enabled(struct evlist *evlist)
143 struct evsel *evsel = evlist__last(evlist);
163 static int test_times(int (attach)(struct evlist *),
164 int (detach)(struct evlist *))
167 struct evlist *evlist = NULL;
171 evlist = evlist__new();
172 if (!evlist) {
177 err = parse_event(evlist, "cpu-clock:u");
183 evsel = evlist__last(evlist);
188 err = attach(evlist);
198 TEST_ASSERT_VAL("failed to detach", !detach(evlist));
209 evlist__delete(evlist);