[PATCH 6/8] perf data: Switch to multiple cpu stream files

2015-01-15 Thread Jiri Olsa
From: Sebastian Andrzej Siewior Currently we store the data into single data strea/file. The cpu if data is stored within the event sample. The lttng puts the CPU number that belongs to the event into the packet context instead into the event. This patch makes sure that the trace produce by

[PATCH 6/8] perf data: Switch to multiple cpu stream files

2015-01-15 Thread Jiri Olsa
From: Sebastian Andrzej Siewior bige...@linutronix.de Currently we store the data into single data strea/file. The cpu if data is stored within the event sample. The lttng puts the CPU number that belongs to the event into the packet context instead into the event. This patch makes sure that the

[PATCH 6/8] perf data: Switch to multiple cpu stream files

2014-12-11 Thread Jiri Olsa
From: Sebastian Andrzej Siewior Currently we store the data into single data strea/file. The cpu if data is stored within the event sample. The lttng puts the CPU number that belongs to the event into the packet context instead into the event. This patch makes sure that the trace produce by

[PATCH 6/8] perf data: Switch to multiple cpu stream files

2014-12-11 Thread Jiri Olsa
From: Sebastian Andrzej Siewior bige...@linutronix.de Currently we store the data into single data strea/file. The cpu if data is stored within the event sample. The lttng puts the CPU number that belongs to the event into the packet context instead into the event. This patch makes sure that the

Re: [PATCH 6/8] perf data: Switch to multiple cpu stream files

2014-12-09 Thread Jiri Olsa
On Mon, Dec 08, 2014 at 05:17:44PM +0900, Namhyung Kim wrote: > On Thu, Dec 4, 2014 at 1:24 AM, Jiri Olsa wrote: > > +static int setup_streams(struct ctf_writer *cw, struct perf_session > > *session) > > +{ > > + struct ctf_stream **stream; > > + struct perf_header *ph = >header; > >

Re: [PATCH 6/8] perf data: Switch to multiple cpu stream files

2014-12-09 Thread Jiri Olsa
On Mon, Dec 08, 2014 at 05:17:44PM +0900, Namhyung Kim wrote: On Thu, Dec 4, 2014 at 1:24 AM, Jiri Olsa jo...@kernel.org wrote: +static int setup_streams(struct ctf_writer *cw, struct perf_session *session) +{ + struct ctf_stream **stream; + struct perf_header *ph =

Re: [PATCH 6/8] perf data: Switch to multiple cpu stream files

2014-12-08 Thread Namhyung Kim
On Thu, Dec 4, 2014 at 1:24 AM, Jiri Olsa wrote: > +static int setup_streams(struct ctf_writer *cw, struct perf_session *session) > +{ > + struct ctf_stream **stream; > + struct perf_header *ph = >header; > + int ncpus; > + > + /* > +* Try to get the number of cpus

Re: [PATCH 6/8] perf data: Switch to multiple cpu stream files

2014-12-08 Thread Namhyung Kim
On Thu, Dec 4, 2014 at 1:24 AM, Jiri Olsa jo...@kernel.org wrote: +static int setup_streams(struct ctf_writer *cw, struct perf_session *session) +{ + struct ctf_stream **stream; + struct perf_header *ph = session-header; + int ncpus; + + /* +* Try to get the

[PATCH 6/8] perf data: Switch to multiple cpu stream files

2014-12-03 Thread Jiri Olsa
From: Sebastian Andrzej Siewior Currently we store the data into single data strea/file. The cpu if data is stored within the event sample. The lttng puts the CPU number that belongs to the event into the packet context instead into the event. This patch makes sure that the trace produce by

[PATCH 6/8] perf data: Switch to multiple cpu stream files

2014-12-03 Thread Jiri Olsa
From: Sebastian Andrzej Siewior bige...@linutronix.de Currently we store the data into single data strea/file. The cpu if data is stored within the event sample. The lttng puts the CPU number that belongs to the event into the packet context instead into the event. This patch makes sure that the