Lines Matching refs:evsel
11 struct perf_evsel *evsel; in test__open_syscall_event_on_all_cpus() local
29 evsel = perf_evsel__newtp("syscalls", "sys_enter_open", 0); in test__open_syscall_event_on_all_cpus()
30 if (evsel == NULL) { in test__open_syscall_event_on_all_cpus()
35 if (perf_evsel__open(evsel, cpus, threads) < 0) { in test__open_syscall_event_on_all_cpus()
74 if (perf_evsel__alloc_counts(evsel, cpus->nr) < 0) { in test__open_syscall_event_on_all_cpus()
87 if (perf_evsel__read_on_cpu(evsel, cpu, 0) < 0) { in test__open_syscall_event_on_all_cpus()
94 if (evsel->counts->cpu[cpu].val != expected) { in test__open_syscall_event_on_all_cpus()
96 expected, cpus->map[cpu], evsel->counts->cpu[cpu].val); in test__open_syscall_event_on_all_cpus()
101 perf_evsel__free_counts(evsel); in test__open_syscall_event_on_all_cpus()
103 perf_evsel__close_fd(evsel, 1, threads->nr); in test__open_syscall_event_on_all_cpus()
105 perf_evsel__delete(evsel); in test__open_syscall_event_on_all_cpus()