Re: [PATCH] perf tools: handle TOPOLOGY headers with no CPU

2019-01-20 Thread Jiri Olsa
On Sat, Jan 19, 2019 at 12:12:39AM -0800, Stephane Eranian wrote: > This patch fixes an issue in cpumap.c when used with the > TOPOLOGY header. In some configurations, some NUMA nodes may > have no CPU (empty cpulist). Yet a cpumap map must be created > otherwise perf abort with an error. This patc

[PATCH] perf tools: handle TOPOLOGY headers with no CPU

2019-01-19 Thread Stephane Eranian
This patch fixes an issue in cpumap.c when used with the TOPOLOGY header. In some configurations, some NUMA nodes may have no CPU (empty cpulist). Yet a cpumap map must be created otherwise perf abort with an error. This patch handles this case by creating a dummy map. Before: $ perf record -o - -