static int perf_session_deliver_event(struct perf_session *session,
event_t *event,
struct sample_data *sample,
- struct perf_event_ops *ops);
+ struct perf_event_ops *ops,
+ u64 file_offset);
static void flush_sample_queue(struct perf_session *s,
struct perf_event_ops *ops)
break;
event__parse_sample(iter->event, s, &sample);
- perf_session_deliver_event(s, iter->event, &sample, ops);
+ perf_session_deliver_event(s, iter->event, &sample, ops,
+ iter->file_offset);
os->last_flush = iter->timestamp;
list_del(&iter->list);
static int perf_session_deliver_event(struct perf_session *session,
event_t *event,
struct sample_data *sample,
- struct perf_event_ops *ops)
+ struct perf_event_ops *ops,
+ u64 file_offset __used)
{
switch (event->header.type) {
case PERF_RECORD_SAMPLE:
return ret;
}
- return perf_session_deliver_event(session, event, &sample, ops);
+ return perf_session_deliver_event(session, event, &sample, ops,
+ file_offset);
}
void perf_event_header__bswap(struct perf_event_header *self)