RE: [PATCH V2 4/5] perf record: synthesize event multithreading support

2017-10-18 Thread Liang, Kan
> On Wed, Oct 18, 2017 at 07:29:32AM -0700, kan.li...@intel.com wrote: > > SNIP > > > + rec->synthesized_file = calloc(nr_thread, sizeof(struct > perf_data_file)); > > + if (rec->synthesized_file == NULL) { > > + pr_debug("Could not do multithread synthesize." > > +

RE: [PATCH V2 4/5] perf record: synthesize event multithreading support

2017-10-18 Thread Liang, Kan
> On Wed, Oct 18, 2017 at 07:29:32AM -0700, kan.li...@intel.com wrote: > > SNIP > > > + rec->synthesized_file = calloc(nr_thread, sizeof(struct > perf_data_file)); > > + if (rec->synthesized_file == NULL) { > > + pr_debug("Could not do multithread synthesize." > > +

Re: [PATCH V2 4/5] perf record: synthesize event multithreading support

2017-10-18 Thread Jiri Olsa
On Wed, Oct 18, 2017 at 07:29:32AM -0700, kan.li...@intel.com wrote: SNIP > + rec->synthesized_file = calloc(nr_thread, sizeof(struct > perf_data_file)); > + if (rec->synthesized_file == NULL) { > + pr_debug("Could not do multithread synthesize." > +

Re: [PATCH V2 4/5] perf record: synthesize event multithreading support

2017-10-18 Thread Jiri Olsa
On Wed, Oct 18, 2017 at 07:29:32AM -0700, kan.li...@intel.com wrote: SNIP > + rec->synthesized_file = calloc(nr_thread, sizeof(struct > perf_data_file)); > + if (rec->synthesized_file == NULL) { > + pr_debug("Could not do multithread synthesize." > +

Re: [PATCH V2 4/5] perf record: synthesize event multithreading support

2017-10-18 Thread Jiri Olsa
On Wed, Oct 18, 2017 at 07:29:32AM -0700, kan.li...@intel.com wrote: SNIP > +static int record__multithread_synthesize(struct record *rec, > + struct machine *machine, > + struct perf_tool *tool, > +

Re: [PATCH V2 4/5] perf record: synthesize event multithreading support

2017-10-18 Thread Jiri Olsa
On Wed, Oct 18, 2017 at 07:29:32AM -0700, kan.li...@intel.com wrote: SNIP > +static int record__multithread_synthesize(struct record *rec, > + struct machine *machine, > + struct perf_tool *tool, > +

Re: [PATCH V2 4/5] perf record: synthesize event multithreading support

2017-10-18 Thread Jiri Olsa
On Wed, Oct 18, 2017 at 07:29:32AM -0700, kan.li...@intel.com wrote: SNIP > +static int record__multithread_synthesize(struct record *rec, > + struct machine *machine, > + struct perf_tool *tool, > +

Re: [PATCH V2 4/5] perf record: synthesize event multithreading support

2017-10-18 Thread Jiri Olsa
On Wed, Oct 18, 2017 at 07:29:32AM -0700, kan.li...@intel.com wrote: SNIP > +static int record__multithread_synthesize(struct record *rec, > + struct machine *machine, > + struct perf_tool *tool, > +