1 #ifndef __ORDERED_EVENTS_H
2 #define __ORDERED_EVENTS_H
4 #include <linux/types.h>
12 union perf_event *event;
13 struct list_head list;
23 struct ordered_events {
29 struct list_head events;
30 struct list_head cache;
31 struct list_head to_free;
32 struct ordered_event *buffer;
33 struct ordered_event *last;
35 unsigned int nr_events;
36 enum oe_flush last_flush_type;
39 struct ordered_event *ordered_events__new(struct ordered_events *oe, u64 timestamp);
40 void ordered_events__delete(struct ordered_events *oe, struct ordered_event *event);
41 int ordered_events__flush(struct perf_session *s, struct perf_tool *tool,
43 void ordered_events__init(struct ordered_events *oe);
44 void ordered_events__free(struct ordered_events *oe);
47 void ordered_events__set_alloc_size(struct ordered_events *oe, u64 size)
49 oe->max_alloc_size = size;
51 #endif /* __ORDERED_EVENTS_H */