Lines Matching refs:evlist

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