Lines Matching refs:evlist
15 static int attach__enable_on_exec(struct perf_evlist *evlist) in attach__enable_on_exec() argument
17 struct perf_evsel *evsel = perf_evlist__last(evlist); in attach__enable_on_exec()
27 err = perf_evlist__create_maps(evlist, &target); in attach__enable_on_exec()
33 err = perf_evlist__prepare_workload(evlist, &target, argv, false, NULL); in attach__enable_on_exec()
41 err = perf_evlist__open(evlist); in attach__enable_on_exec()
48 return perf_evlist__start_workload(evlist) == 1 ? TEST_OK : TEST_FAIL; in attach__enable_on_exec()
51 static int detach__enable_on_exec(struct perf_evlist *evlist) in detach__enable_on_exec() argument
53 waitpid(evlist->workload.pid, NULL, 0); in detach__enable_on_exec()
57 static int attach__current_disabled(struct perf_evlist *evlist) in attach__current_disabled() argument
59 struct perf_evsel *evsel = perf_evlist__last(evlist); in attach__current_disabled()
83 static int attach__current_enabled(struct perf_evlist *evlist) in attach__current_enabled() argument
85 struct perf_evsel *evsel = perf_evlist__last(evlist); in attach__current_enabled()
103 static int detach__disable(struct perf_evlist *evlist) in detach__disable() argument
105 struct perf_evsel *evsel = perf_evlist__last(evlist); in detach__disable()
110 static int attach__cpu_disabled(struct perf_evlist *evlist) in attach__cpu_disabled() argument
112 struct perf_evsel *evsel = perf_evlist__last(evlist); in attach__cpu_disabled()
139 static int attach__cpu_enabled(struct perf_evlist *evlist) in attach__cpu_enabled() argument
141 struct perf_evsel *evsel = perf_evlist__last(evlist); in attach__cpu_enabled()
165 struct perf_evlist *evlist = NULL; in test_times() local
169 evlist = perf_evlist__new(); in test_times()
170 if (!evlist) { in test_times()
175 err = parse_events(evlist, "cpu-clock:u", NULL); in test_times()
181 evsel = perf_evlist__last(evlist); in test_times()
186 err = attach(evlist); in test_times()
196 TEST_ASSERT_VAL("failed to detach", !detach(evlist)); in test_times()
207 perf_evlist__delete(evlist); in test_times()