Stephane Eranian 1497e804d1 perf tools: Handle TOPOLOGY headers with no CPU
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 - -e cycles noploop 2 | perf script -i -
  0x6e8 [0x6c]: failed to process type: 80

  After:

  $ perf record -o - -e cycles noploop 2 | perf script -i -
  noploop for 2 seconds

Signed-off-by: Stephane Eranian <eranian@google.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1547885559-1657-1-git-send-email-eranian@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2019-01-21 11:28:56 -03:00
..
2018-12-17 14:57:07 -03:00
2018-04-19 12:29:41 -03:00
2018-10-18 11:16:38 -03:00
2018-12-17 14:56:47 -03:00
2015-08-21 11:34:10 -03:00
2016-10-24 11:07:39 -03:00
2018-12-17 14:57:07 -03:00
2018-12-17 14:57:07 -03:00
2018-03-16 13:52:37 -03:00
2018-03-16 13:52:37 -03:00
2018-03-05 11:52:41 -03:00
2017-07-18 23:14:08 -03:00
2018-12-17 14:56:47 -03:00
2018-12-17 14:57:07 -03:00
2018-12-17 14:57:07 -03:00
2018-12-17 14:57:07 -03:00
2018-12-17 14:57:07 -03:00
2018-12-17 14:57:07 -03:00
2018-12-17 14:57:07 -03:00