Re: [PATCH 05/17] perf tools: Add ordered_events_(get|put) interface

2014-06-15 Thread Jiri Olsa
On Fri, Jun 13, 2014 at 09:05:05PM +0900, Namhyung Kim wrote: > 2014-06-13 (금), 00:08 +0200, Jiri Olsa: > > +#define MAX_SAMPLE_BUFFER (64 * 1024 / sizeof(struct ordered_event)) > > +static struct ordered_event *alloc_event(struct ordered_events_queue *q) > > +{ > > + struct list_head *cache = &

Re: [PATCH 05/17] perf tools: Add ordered_events_(get|put) interface

2014-06-13 Thread Namhyung Kim
2014-06-13 (금), 00:08 +0200, Jiri Olsa: > +#define MAX_SAMPLE_BUFFER(64 * 1024 / sizeof(struct ordered_event)) > +static struct ordered_event *alloc_event(struct ordered_events_queue *q) > +{ > + struct list_head *cache = &q->cache; > + struct ordered_event *new; > + > + if (!list_e

[PATCH 05/17] perf tools: Add ordered_events_(get|put) interface

2014-06-12 Thread Jiri Olsa
Adding new ordered events interface to get|put event buffer: ordered_events_get - allocate event buffer from the cache ordered_events_put - return event buffer to the cache Cc: Arnaldo Carvalho de Melo Cc: Corey Ashford Cc: David Ahern Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Jean Pihe