Re: [PATCHv2] perf tools: Add struct ordered_events_buffer layer

2018-08-27 Thread Stephane Eranian
Jiri, On Mon, Aug 27, 2018 at 2:28 AM Jiri Olsa wrote: > > On Wed, Aug 15, 2018 at 10:48:25AM +0200, Jiri Olsa wrote: > > On Tue, Aug 14, 2018 at 12:14:19AM -0700, Stephane Eranian wrote: > > > > SNIP > > > > > > @@ -104,11 +110,12 @@ static struct ordered_event *alloc_event(struct > > > > orde

Re: [PATCHv2] perf tools: Add struct ordered_events_buffer layer

2018-08-27 Thread Namhyung Kim
On Mon, Aug 27, 2018 at 11:28:18AM +0200, Jiri Olsa wrote: > When ordering events, we use preallocated buffers to store separated > events. Those buffers currently don't have their own struct, but since > they are basically array of 'struct ordered_event' objects, we use the > first event to hold

[PATCHv2] perf tools: Add struct ordered_events_buffer layer

2018-08-27 Thread Jiri Olsa
On Wed, Aug 15, 2018 at 10:48:25AM +0200, Jiri Olsa wrote: > On Tue, Aug 14, 2018 at 12:14:19AM -0700, Stephane Eranian wrote: > > SNIP > > > > @@ -104,11 +110,12 @@ static struct ordered_event *alloc_event(struct > > > ordered_events *oe, > > > new = list_entry(cache->next, stru