Lines Matching defs:sample

61  * record sample, the auxtrace queues will be processed. As auxtrace queues
72 * Each sampling-data entry in the auxilary 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.
196 struct perf_sample *sample)
202 if (!sf->use_logfile || sf->queues.nr_queues <= sample->cpu)
205 q = &sf->queues.queue_array[sample->cpu];
215 sf->logdir, sample->cpu)
216 : asprintf(&name, "aux.ctr.%02x", sample->cpu);
229 size_t n = fwrite(sample->raw_data, sample->raw_size - 4, 1,
358 /* Test a sample data block. It must be 4KB or a multiple thereof in size and
359 * 4KB page aligned. Each sample data page has a trailer entry at the
360 * end which contains the sample entry data sizes.
362 * Return true if the sample data block passes the checks and set the
506 struct perf_sample sample = {
518 sample.cpumode = basic->P ? PERF_RECORD_MISC_USER
521 sample.cpumode = basic->P ? PERF_RECORD_MISC_GUEST_USER
525 sample.cpumode = basic->P ? PERF_RECORD_MISC_GUEST_USER
528 sample.cpumode = basic->P ? PERF_RECORD_MISC_USER
531 event.sample.header.type = PERF_RECORD_SAMPLE;
532 event.sample.header.misc = sample.cpumode;
533 event.sample.header.size = sizeof(struct perf_event_header);
536 __func__, pos, sample.ip, basic->P, basic->CL, sample.pid,
537 sample.tid, sample.cpumode, sample.cpu);
539 &sample)) {
903 static int s390_cpumsf_lost(struct s390_cpumsf *sf, struct perf_sample *sample)
905 return s390_cpumsf_synth_error(sf, 1, sample->cpu,
906 sample->pid, sample->tid, 0,
907 sample->time);
913 struct perf_sample *sample,
919 u64 timestamp = sample->time;
933 sample->raw_size) {
938 err = s390_cpumcf_dumpctr(sf, sample);
944 return s390_cpumsf_lost(sf, sample);