Lines Matching refs:timestamp
21 u64 timestamp = new->timestamp; in queue_event() local
27 pr_oe_time2(timestamp, "queue_event nr_events %u\n", oe->nr_events); in queue_event()
31 oe->max_timestamp = timestamp; in queue_event()
40 if (last->timestamp <= timestamp) { in queue_event()
41 while (last->timestamp <= timestamp) { in queue_event()
45 oe->max_timestamp = timestamp; in queue_event()
52 while (last->timestamp > timestamp) { in queue_event()
172 ordered_events__new_event(struct ordered_events *oe, u64 timestamp, in ordered_events__new_event() argument
179 new->timestamp = timestamp; in ordered_events__new_event()
195 u64 timestamp, u64 file_offset, const char *file_path) in ordered_events__queue() argument
199 if (!timestamp || timestamp == ~0ULL) in ordered_events__queue()
202 if (timestamp < oe->last_flush) { in ordered_events__queue()
203 pr_oe_time(timestamp, "out of order event\n"); in ordered_events__queue()
210 oevent = ordered_events__new_event(oe, timestamp, event); in ordered_events__queue()
213 oevent = ordered_events__new_event(oe, timestamp, event); in ordered_events__queue()
229 u64 last_ts = oe->last ? oe->last->timestamp : 0ULL; in do_flush()
243 if (iter->timestamp > limit) in do_flush()
250 oe->last_flush = iter->timestamp; in do_flush()
268 u64 timestamp) in __ordered_events__flush() argument
304 oe->next_flush = first->timestamp; in __ordered_events__flush()
305 oe->next_flush += (last->timestamp - first->timestamp) / 2; in __ordered_events__flush()
310 oe->next_flush = timestamp; in __ordered_events__flush()
345 int ordered_events__flush_time(struct ordered_events *oe, u64 timestamp) in ordered_events__flush_time() argument
347 return __ordered_events__flush(oe, OE_FLUSH__TIME, timestamp); in ordered_events__flush_time()
358 return event->timestamp; in ordered_events__first_time()