Lines Matching defs:sample
61 * record sample, the auxtrace queues will be processed. As auxtrace queues
72 * Each sampling-data entry in the auxiliary trace data generates a perf sample.
73 * This sample is filled
75 * etc. This sample is processed with perf_session__deliver_synth_event() to
102 * | Extract time stamp from sample data.
105 * | If timestamp is positive the sample is entered into an ordered_event
127 * a sample with IP and call back chain data into GUI data pool.
166 #include "util/sample.h"
197 struct perf_sample *sample)
203 if (!sf->use_logfile || sf->queues.nr_queues <= sample->cpu)
206 q = &sf->queues.queue_array[sample->cpu];
216 sf->logdir, sample->cpu)
217 : asprintf(&name, "aux.ctr.%02x", sample->cpu);
230 size_t n = fwrite(sample->raw_data, sample->raw_size - 4, 1,
359 /* Test a sample data block. It must be 4KB or a multiple thereof in size and
360 * 4KB page aligned. Each sample data page has a trailer entry at the
361 * end which contains the sample entry data sizes.
363 * Return true if the sample data block passes the checks and set the
507 struct perf_sample sample = {
519 sample.cpumode = basic->P ? PERF_RECORD_MISC_USER
522 sample.cpumode = basic->P ? PERF_RECORD_MISC_GUEST_USER
526 sample.cpumode = basic->P ? PERF_RECORD_MISC_GUEST_USER
529 sample.cpumode = basic->P ? PERF_RECORD_MISC_USER
532 event.sample.header.type = PERF_RECORD_SAMPLE;
533 event.sample.header.misc = sample.cpumode;
534 event.sample.header.size = sizeof(struct perf_event_header);
537 __func__, pos, sample.ip, basic->P, basic->CL, sample.pid,
538 sample.tid, sample.cpumode, sample.cpu);
540 &sample)) {
904 static int s390_cpumsf_lost(struct s390_cpumsf *sf, struct perf_sample *sample)
906 return s390_cpumsf_synth_error(sf, 1, sample->cpu,
907 sample->pid, sample->tid, 0,
908 sample->time);
914 struct perf_sample *sample,
920 u64 timestamp = sample->time;
934 sample->raw_size) {
939 err = s390_cpumcf_dumpctr(sf, sample);
945 return s390_cpumsf_lost(sf, sample);