Lines Matching refs:sample
50 struct perf_sample sample; in test__PERF_RECORD() local
168 err = perf_evlist__parse_sample(evlist, event, &sample); in test__PERF_RECORD()
177 pr_info("%" PRIu64" %d ", sample.time, sample.cpu); in test__PERF_RECORD()
181 if (prev_time > sample.time) { in test__PERF_RECORD()
183 name, prev_time, sample.time); in test__PERF_RECORD()
187 prev_time = sample.time; in test__PERF_RECORD()
189 if (sample.cpu != cpu) { in test__PERF_RECORD()
191 name, cpu, sample.cpu); in test__PERF_RECORD()
195 if ((pid_t)sample.pid != evlist->workload.pid) { in test__PERF_RECORD()
197 name, evlist->workload.pid, sample.pid); in test__PERF_RECORD()
201 if ((pid_t)sample.tid != evlist->workload.pid) { in test__PERF_RECORD()
203 name, evlist->workload.pid, sample.tid); in test__PERF_RECORD()