Lines Matching defs:sample
159 * @sample_type: sample type
162 * PERF_SAMPLE_IDENTIFIER) in a sample event i.e. in the array of struct
192 * @sample_type: sample type
195 * (PERF_SAMPLE_ID or PERF_SAMPLE_IDENTIFIER) in a non-sample event i.e. if
196 * sample_id_all is used there is an id sample appended to non-sample events.
1978 pr_debug2_peo("switching off branch sample type no (cycles/flags)\n");
2198 struct perf_sample *sample)
2201 const __u64 *array = event->sample.array;
2209 sample->id = *array;
2221 sample->cpu = u.val32[0];
2226 sample->stream_id = *array;
2231 sample->id = *array;
2236 sample->time = *array;
2249 sample->pid = u.val32[0];
2250 sample->tid = u.val32[1];
2378 array = event->sample.array;
2716 array = event->sample.array;
2768 void *evsel__rawptr(struct evsel *evsel, struct perf_sample *sample, const char *name)
2779 offset = *(int *)(sample->raw_data + field->offset);
2785 return sample->raw_data + offset;
2788 u64 format_field__intval(struct tep_format_field *field, struct perf_sample *sample,
2792 void *ptr = sample->raw_data + field->offset;
2827 u64 evsel__intval(struct evsel *evsel, struct perf_sample *sample, const char *name)
2831 return field ? format_field__intval(field, sample, evsel->needs_swap) : 0;