perf timechart: Get number of CPUs from perf header
authorStanislav Fomichev <stfomichev@yandex-team.ru>
Mon, 2 Dec 2013 14:37:35 +0000 (18:37 +0400)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 16 Dec 2013 19:34:27 +0000 (16:34 -0300)
commit58b9a18ecd251cbd6e666ad792023ab77c7d100e
tree80305634815f67be8b8ddd620fdbc32bcc68af26
parentde996228dedc74d9e72b749bbc8225f5e2bf19d8
perf timechart: Get number of CPUs from perf header

Print all CPUs, even if there were no events (use perf header to get
number of CPUs).

This is required to support topology in the next patch.

Signed-off-by: Stanislav Fomichev <stfomichev@yandex-team.ru>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Ramkumar Ramachandra <artagnon@gmail.com>
Link: http://lkml.kernel.org/r/1385995056-20158-4-git-send-email-stfomichev@yandex-team.ru
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-timechart.c