Re: [PATCH] perf, tools: Fix perf stat --per-core on multi socket systems

2014-09-26 Thread Stephane Eranian
On Wed, Sep 24, 2014 at 10:50 PM, Andi Kleen wrote: > From: Andi Kleen > > On systems with more than one socket perf stat --per-core > would either segfault or stop before outputting all cores. > The problem was that the output code referenced the > id including the socket number in the higher bi

[PATCH] perf, tools: Fix perf stat --per-core on multi socket systems

2014-09-24 Thread Andi Kleen
From: Andi Kleen On systems with more than one socket perf stat --per-core would either segfault or stop before outputting all cores. The problem was that the output code referenced the id including the socket number in the higher bits, which is far beyond any per cpu array. Mask out the socket