perf stat: Introduce perf_counts__(new|delete|reset) functions
authorJiri Olsa <jolsa@kernel.org>
Sun, 14 Jun 2015 08:19:27 +0000 (10:19 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 16 Jun 2015 13:34:41 +0000 (10:34 -0300)
commit9df38e82e2a103cf42177c164a4de9d58052ac3a
treed261b24b6eedf63d9cb8c343870d77b09b90f276
parenta9a3a4d92d8f2fb68f4b99d98505bebc70518599
perf stat: Introduce perf_counts__(new|delete|reset) functions

Move 'struct perf_counts' allocation|free|reset code into separate
functions.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1434269985-521-13-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-stat.c
tools/perf/util/stat.c
tools/perf/util/stat.h