Lines Matching refs:sample
58 struct perf_sample sample; in test__PERF_RECORD() local
185 err = perf_evlist__parse_sample(evlist, event, &sample); in test__PERF_RECORD()
194 pr_info("%" PRIu64" %d ", sample.time, sample.cpu); in test__PERF_RECORD()
198 if (prev_time > sample.time) { in test__PERF_RECORD()
200 name, prev_time, sample.time); in test__PERF_RECORD()
204 prev_time = sample.time; in test__PERF_RECORD()
206 if (sample.cpu != cpu) { in test__PERF_RECORD()
208 name, cpu, sample.cpu); in test__PERF_RECORD()
212 if ((pid_t)sample.pid != evlist->workload.pid) { in test__PERF_RECORD()
214 name, evlist->workload.pid, sample.pid); in test__PERF_RECORD()
218 if ((pid_t)sample.tid != evlist->workload.pid) { in test__PERF_RECORD()
220 name, evlist->workload.pid, sample.tid); in test__PERF_RECORD()