Lines Matching refs:evsel
27 struct evsel *evsel; in test__openat_syscall_event_on_all_cpus() local
47 evsel = perf_evsel__newtp("syscalls", "sys_enter_openat"); in test__openat_syscall_event_on_all_cpus()
48 if (IS_ERR(evsel)) { in test__openat_syscall_event_on_all_cpus()
54 if (evsel__open(evsel, cpus, threads) < 0) { in test__openat_syscall_event_on_all_cpus()
93 if (perf_evsel__alloc_counts(evsel, cpus->nr, 1) < 0) { in test__openat_syscall_event_on_all_cpus()
106 if (perf_evsel__read_on_cpu(evsel, cpu, 0) < 0) { in test__openat_syscall_event_on_all_cpus()
113 if (perf_counts(evsel->counts, cpu, 0)->val != expected) { in test__openat_syscall_event_on_all_cpus()
115 expected, cpus->map[cpu], perf_counts(evsel->counts, cpu, 0)->val); in test__openat_syscall_event_on_all_cpus()
120 perf_evsel__free_counts(evsel); in test__openat_syscall_event_on_all_cpus()
122 perf_evsel__close_fd(&evsel->core); in test__openat_syscall_event_on_all_cpus()
124 evsel__delete(evsel); in test__openat_syscall_event_on_all_cpus()