Lines Matching full:sample

232 				struct perf_sample *sample)  in arm_spe_prep_sample()  argument
237 sample->time = tsc_to_perf_time(record->timestamp, &spe->tc); in arm_spe_prep_sample()
239 sample->ip = record->from_ip; in arm_spe_prep_sample()
240 sample->cpumode = arm_spe_cpumode(spe, sample->ip); in arm_spe_prep_sample()
241 sample->pid = speq->pid; in arm_spe_prep_sample()
242 sample->tid = speq->tid; in arm_spe_prep_sample()
243 sample->period = 1; in arm_spe_prep_sample()
244 sample->cpu = speq->cpu; in arm_spe_prep_sample()
246 event->sample.header.type = PERF_RECORD_SAMPLE; in arm_spe_prep_sample()
247 event->sample.header.misc = sample->cpumode; in arm_spe_prep_sample()
248 event->sample.header.size = sizeof(struct perf_event_header); in arm_spe_prep_sample()
255 struct perf_sample *sample) in arm_spe_deliver_synth_event() argument
259 ret = perf_session__deliver_synth_event(spe->session, event, sample); in arm_spe_deliver_synth_event()
272 struct perf_sample sample = { .ip = 0, }; in arm_spe__synth_mem_sample() local
274 arm_spe_prep_sample(spe, speq, event, &sample); in arm_spe__synth_mem_sample()
276 sample.id = spe_events_id; in arm_spe__synth_mem_sample()
277 sample.stream_id = spe_events_id; in arm_spe__synth_mem_sample()
278 sample.addr = record->virt_addr; in arm_spe__synth_mem_sample()
279 sample.phys_addr = record->phys_addr; in arm_spe__synth_mem_sample()
280 sample.data_src = data_src; in arm_spe__synth_mem_sample()
282 return arm_spe_deliver_synth_event(spe, speq, event, &sample); in arm_spe__synth_mem_sample()
291 struct perf_sample sample = { .ip = 0, }; in arm_spe__synth_branch_sample() local
293 arm_spe_prep_sample(spe, speq, event, &sample); in arm_spe__synth_branch_sample()
295 sample.id = spe_events_id; in arm_spe__synth_branch_sample()
296 sample.stream_id = spe_events_id; in arm_spe__synth_branch_sample()
297 sample.addr = record->to_ip; in arm_spe__synth_branch_sample()
299 return arm_spe_deliver_synth_event(spe, speq, event, &sample); in arm_spe__synth_branch_sample()
446 * based the record to synthesize sample; but here the flow is in arm_spe_run_decoder()
453 * is left to generate sample until run to here, so it's correct in arm_spe_run_decoder()
454 * to synthesize sample for the left record. in arm_spe_run_decoder()
459 * synthesize sample until run to here at the next time; so this in arm_spe_run_decoder()
686 struct perf_sample *sample, in arm_spe_process_event() argument
702 if (sample->time && (sample->time != (u64) -1)) in arm_spe_process_event()
703 timestamp = perf_time_to_tsc(sample->time, &spe->tc); in arm_spe_process_event()
717 sample->time); in arm_spe_process_event()
853 struct perf_sample *sample __maybe_unused, in arm_spe_event_synth()