[PATCHv2 0/9] perf stat: Separate shadow counters code

From: Jiri Olsa
Date: Wed Jun 03 2015 - 10:26:19 EST


hi,
sending cleanup/move of shadow counters. I need it
for my other changes of stat scripting, but I think
it can stand alone as a cleanup.

v2 changes:
- move evsel id into 'struct perf_stat'
and change the id functions namespace

Also in:
git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
perf/shadow

I tested on Haswel with limited set of transaction events,
but all seemed ok.

thanks,
jirka
---
Jiri Olsa (9):
perf stat: Add id into perf_stat struct
perf stat: Replace transaction event possition check with id check
perf stat: Remove setup_events function
perf stat: Remove transaction_run from shadow update/print code
perf stat: Introduce reset_shadow_stats function
perf stat: Introduce print_shadow_stats function
perf stat: Add output file argument to print_shadow_stats function
perf stat: Add aggr_mode argument to print_shadow_stats function
perf stat: Move shadow stat counters into separate object

tools/perf/builtin-stat.c | 506 ++------------------------------------------------------------------------
tools/perf/util/Build | 1 +
tools/perf/util/stat-shadow.c | 434 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
tools/perf/util/stat.c | 35 +++++-
tools/perf/util/stat.h | 40 ++++++
5 files changed, 522 insertions(+), 494 deletions(-)
create mode 100644 tools/perf/util/stat-shadow.c
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/