Re: [PATCH 08/38] perf record: Add --index option for building index table

2015-03-05 Thread Namhyung Kim
On Thu, Mar 05, 2015 at 08:56:44AM +0100, Jiri Olsa wrote: > On Tue, Mar 03, 2015 at 12:07:20PM +0900, Namhyung Kim wrote: > > SNIP > > > +static int record__merge_index_files(struct record *rec, int nr_index) > > +{ > > + int i; > > + int ret = -1; > > + u64 offset; > > + char path[PATH_

Re: [PATCH 08/38] perf record: Add --index option for building index table

2015-03-04 Thread Jiri Olsa
On Tue, Mar 03, 2015 at 12:07:20PM +0900, Namhyung Kim wrote: SNIP > +static int record__merge_index_files(struct record *rec, int nr_index) > +{ > + int i; > + int ret = -1; > + u64 offset; > + char path[PATH_MAX]; > + struct perf_file_section *idx; > + struct perf_data_f

[PATCH 08/38] perf record: Add --index option for building index table

2015-03-02 Thread Namhyung Kim
The new --index option will create indexed data file which can be processed by multiple threads parallelly. It saves meta event and sample data in separate files and merges them with an index table. If there's an index table in the data file, the HEADER_DATA_INDEX feature bit is set and session->