Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966724AbbLRJSv (ORCPT ); Fri, 18 Dec 2015 04:18:51 -0500 Received: from terminus.zytor.com ([198.137.202.10]:52604 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932445AbbLRJOB (ORCPT ); Fri, 18 Dec 2015 04:14:01 -0500 Date: Fri, 18 Dec 2015 01:13:46 -0800 From: tip-bot for Jiri Olsa Message-ID: Cc: namhyung@kernel.org, linux-kernel@vger.kernel.org, a.p.zijlstra@chello.nl, acme@redhat.com, jolsa@kernel.org, hpa@zytor.com, dsahern@gmail.com, mingo@kernel.org, tglx@linutronix.de, kan.liang@intel.com Reply-To: hpa@zytor.com, jolsa@kernel.org, tglx@linutronix.de, mingo@kernel.org, dsahern@gmail.com, kan.liang@intel.com, linux-kernel@vger.kernel.org, namhyung@kernel.org, acme@redhat.com, a.p.zijlstra@chello.nl In-Reply-To: <1446734469-11352-17-git-send-email-jolsa@kernel.org> References: <1446734469-11352-17-git-send-email-jolsa@kernel.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf stat report: Process event update events Git-Commit-ID: fa6ea7817db3839b58d46649b7834320257e7702 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2401 Lines: 76 Commit-ID: fa6ea7817db3839b58d46649b7834320257e7702 Gitweb: http://git.kernel.org/tip/fa6ea7817db3839b58d46649b7834320257e7702 Author: Jiri Olsa AuthorDate: Thu, 5 Nov 2015 15:41:00 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 17 Dec 2015 16:29:29 -0300 perf stat report: Process event update events Adding processing of event update events, so perf stat report can store additional info for events - unit,scale,name. Committer note: Before: # perf stat record -e power/energy-cores/ -a ^C Performance counter stats for 'system wide': 77.41 Joules power/energy-cores/ 1.597176695 seconds time elapsed # perf stat report Performance counter stats for '/home/acme/bin/perf stat record -e power/energy-cores/ -a': 332,488,114,176 power/energy-cores/ 1.597176695 seconds time elapsed # After, using the same perf.data file generated in the "Before" case above: # perf stat report Performance counter stats for '/home/acme/bin/perf stat record -e power/energy-cores/ -a': 77.41 Joules power/energy-cores/ 1.597176695 seconds time elapsed # Reported-by: Kan Liang Signed-off-by: Jiri Olsa Tested-by: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1446734469-11352-17-git-send-email-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/builtin-stat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index d27d1b9..3ccf5a9 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c @@ -1736,6 +1736,7 @@ static const char * const report_usage[] = { static struct perf_stat perf_stat = { .tool = { .attr = perf_event__process_attr, + .event_update = perf_event__process_event_update, .thread_map = process_thread_map_event, .cpu_map = process_cpu_map_event, .stat_config = process_stat_config_event, -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/