]> git.baikalelectronics.ru Git - kernel.git/commit
perf stat: Refactor aggregation code
authorStephane Eranian <eranian@google.com>
Thu, 14 Feb 2013 12:57:27 +0000 (13:57 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 25 Mar 2013 18:29:53 +0000 (15:29 -0300)
commitbedc51d3929c318bd90f0045a7d87ecaccd752ad
tree414e785b0ba86fc602ad286846cdfd9266568df6
parent910e8fda0b8173c733b1335fc5ead991977909c1
perf stat: Refactor aggregation code

Refactor aggregation code by introducing a single aggr_mode variable and an
enum for aggregation.

Also refactor cpumap code having to do with cpu to socket mappings. All in
preparation for extended modes, such as cpu -> core.

Also fix socket aggregation and ensure that sockets are printed in increasing
order.

Signed-off-by: Stephane Eranian <eranian@google.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1360846649-6411-2-git-send-email-eranian@google.com
[ committer note: Fixup conflicts with ac35623 "--repeat forever" and
  d820a8f "Use perf_evlist__prepare/start_workload()" ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-stat.c
tools/perf/util/cpumap.c