Re: [PATCH 1/1] perf,tools: fix core dump caused by per-socket/core system-wide stat

2015-10-20 Thread Arnaldo Carvalho de Melo
Em Mon, Oct 19, 2015 at 10:22:51PM +, Liang, Kan escreveu: > Hi Arnaldo > > Here is one more fix for perf/core need to be pulled. Thanks for the reminder, tried to reproduce on a two socket system, couldn't, but the fix is obvious enough, thanks, applied. - Arnaldo > Thanks, > Kan > > >

Re: [PATCH 1/1] perf,tools: fix core dump caused by per-socket/core system-wide stat

2015-10-20 Thread Arnaldo Carvalho de Melo
Em Mon, Oct 19, 2015 at 10:22:51PM +, Liang, Kan escreveu: > Hi Arnaldo > > Here is one more fix for perf/core need to be pulled. Thanks for the reminder, tried to reproduce on a two socket system, couldn't, but the fix is obvious enough, thanks, applied. - Arnaldo > Thanks, > Kan > > >

RE: [PATCH 1/1] perf,tools: fix core dump caused by per-socket/core system-wide stat

2015-10-19 Thread Liang, Kan
Hi Arnaldo Here is one more fix for perf/core need to be pulled. Thanks, Kan > > On Fri, Oct 09, 2015 at 06:59:23AM -0400, kan.li...@intel.com wrote: > > From: Kan Liang > > > > Perf will core dump if --per-socket/core -a are applied for perf stat. > > > > The root cause is that

RE: [PATCH 1/1] perf,tools: fix core dump caused by per-socket/core system-wide stat

2015-10-19 Thread Liang, Kan
Hi Arnaldo Here is one more fix for perf/core need to be pulled. Thanks, Kan > > On Fri, Oct 09, 2015 at 06:59:23AM -0400, kan.li...@intel.com wrote: > > From: Kan Liang > > > > Perf will core dump if --per-socket/core -a are applied for perf stat. > > > > The root cause

Re: [PATCH 1/1] perf,tools: fix core dump caused by per-socket/core system-wide stat

2015-10-09 Thread Jiri Olsa
On Fri, Oct 09, 2015 at 06:59:23AM -0400, kan.li...@intel.com wrote: > From: Kan Liang > > Perf will core dump if --per-socket/core -a are applied for perf stat. > > The root cause is that cpu_map__build_map set refcnt of evlist's cpu_map > to 1. > It should set refcnt for the newly created

Re: [PATCH 1/1] perf,tools: fix core dump caused by per-socket/core system-wide stat

2015-10-09 Thread Jiri Olsa
On Fri, Oct 09, 2015 at 06:59:23AM -0400, kan.li...@intel.com wrote: > From: Kan Liang > > Perf will core dump if --per-socket/core -a are applied for perf stat. > > The root cause is that cpu_map__build_map set refcnt of evlist's cpu_map > to 1. > It should set refcnt for