From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932877AbbFCO0Q (ORCPT ); Wed, 3 Jun 2015 10:26:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34531 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932739AbbFCO0H (ORCPT ); Wed, 3 Jun 2015 10:26:07 -0400 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , Peter Zijlstra , Paul Mackerras , David Ahern , Namhyung Kim , Ingo Molnar , Andi Kleen , Stephane Eranian Subject: [PATCHv2 0/9] perf stat: Separate shadow counters code Date: Wed, 3 Jun 2015 16:25:50 +0200 Message-Id: <1433341559-31848-1-git-send-email-jolsa@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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