perf tools: Change cpu_map__fprintf output
authorJiri Olsa <jolsa@kernel.org>
Tue, 28 Jun 2016 11:29:04 +0000 (13:29 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 30 Jun 2016 21:27:45 +0000 (18:27 -0300)
commita24020e6b7cf6eb8b75d8bca6b89870b1cee6ba7
tree16e36c1b28e054b765b8f104ca9debbcf10de99e
parent7fa9b8fba0b55edd1ff5b8ea696ec75fc5f6194c
perf tools: Change cpu_map__fprintf output

Display cpu map in standard list form.  (perf report -D output on perf stat data).

before:
  0x590 [0x18]: PERF_RECORD_CPU_MAP nr: 4 cpus: 0, 1, 2, 3

after:
  0x590 [0x18]: PERF_RECORD_CPU_MAP: 0-3

Adding automated testcase.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1467113345-12669-4-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/builtin-test.c
tools/perf/tests/cpumap.c
tools/perf/tests/tests.h
tools/perf/util/cpumap.c
tools/perf/util/cpumap.h
tools/perf/util/event.c