Lines Matching defs:sample
122 * @sample_type: sample type
125 * PERF_SAMPLE_IDENTIFIER) in a sample event i.e. in the array of struct
155 * @sample_type: sample type
158 * (PERF_SAMPLE_ID or PERF_SAMPLE_IDENTIFIER) in a non-sample event i.e. if
159 * sample_id_all is used there is an id sample appended to non-sample events.
1947 pr_debug2_peo("switching off branch sample type no (cycles/flags)\n");
2002 struct perf_sample *sample)
2005 const __u64 *array = event->sample.array;
2013 sample->id = *array;
2025 sample->cpu = u.val32[0];
2030 sample->stream_id = *array;
2035 sample->id = *array;
2040 sample->time = *array;
2053 sample->pid = u.val32[0];
2054 sample->tid = u.val32[1];
2121 array = event->sample.array;
2416 array = event->sample.array;
2441 void *evsel__rawptr(struct evsel *evsel, struct perf_sample *sample, const char *name)
2452 offset = *(int *)(sample->raw_data + field->offset);
2456 return sample->raw_data + offset;
2459 u64 format_field__intval(struct tep_format_field *field, struct perf_sample *sample,
2463 void *ptr = sample->raw_data + field->offset;
2498 u64 evsel__intval(struct evsel *evsel, struct perf_sample *sample, const char *name)
2505 return field ? format_field__intval(field, sample, evsel->needs_swap) : 0;