From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935782AbcJVIke (ORCPT ); Sat, 22 Oct 2016 04:40:34 -0400 Received: from terminus.zytor.com ([198.137.202.10]:57088 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753383AbcJVIkc (ORCPT ); Sat, 22 Oct 2016 04:40:32 -0400 Date: Sat, 22 Oct 2016 01:40:18 -0700 From: tip-bot for Jiri Olsa Message-ID: Cc: namhyung@kernel.org, tglx@linutronix.de, dsahern@gmail.com, dzickus@redhat.com, andi@firstfloor.org, a.p.zijlstra@chello.nl, hpa@zytor.com, mingo@kernel.org, linux-kernel@vger.kernel.org, acme@redhat.com, jolsa@kernel.org, jmario@redhat.com Reply-To: namhyung@kernel.org, andi@firstfloor.org, tglx@linutronix.de, dsahern@gmail.com, dzickus@redhat.com, a.p.zijlstra@chello.nl, hpa@zytor.com, acme@redhat.com, jolsa@kernel.org, jmario@redhat.com, mingo@kernel.org, linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf c2c report: Add llc and remote loads related dimension keys Git-Commit-ID: 4d08910c94c5b460c1e0623b47ec2abc0ab0d1a6 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 Commit-ID: 4d08910c94c5b460c1e0623b47ec2abc0ab0d1a6 Gitweb: http://git.kernel.org/tip/4d08910c94c5b460c1e0623b47ec2abc0ab0d1a6 Author: Jiri Olsa AuthorDate: Wed, 4 May 2016 10:27:51 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 19 Oct 2016 13:18:31 -0300 perf c2c report: Add llc and remote loads related dimension keys Add 2 LLC load related dimension key wrappers. They are to be displayed in the main cachelines overall output: ld_lclhit, ld_rmthit They display bare numbers of LLC and remote loads for cacheline. Signed-off-by: Jiri Olsa Cc: Andi Kleen Cc: David Ahern Cc: Don Zickus Cc: Joe Mario Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/n/tip-ahjg0voaufefboemjuj9yefh@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/builtin-c2c.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tools/perf/builtin-c2c.c b/tools/perf/builtin-c2c.c index 2b9d24f..6b60183 100644 --- a/tools/perf/builtin-c2c.c +++ b/tools/perf/builtin-c2c.c @@ -418,6 +418,8 @@ STAT_FN(st_l1miss) STAT_FN(ld_fbhit) STAT_FN(ld_l1hit) STAT_FN(ld_l2hit) +STAT_FN(ld_llchit) +STAT_FN(rmt_hit) #define HEADER_LOW(__h) \ { \ @@ -582,6 +584,22 @@ static struct c2c_dimension dim_ld_l2hit = { .width = 7, }; +static struct c2c_dimension dim_ld_llchit = { + .header = HEADER_SPAN("-- LLC Load Hit --", "Llc", 1), + .name = "ld_lclhit", + .cmp = ld_llchit_cmp, + .entry = ld_llchit_entry, + .width = 8, +}; + +static struct c2c_dimension dim_ld_rmthit = { + .header = HEADER_SPAN_LOW("Rmt"), + .name = "ld_rmthit", + .cmp = rmt_hit_cmp, + .entry = rmt_hit_entry, + .width = 8, +}; + static struct c2c_dimension *dimensions[] = { &dim_dcacheline, &dim_offset, @@ -599,6 +617,8 @@ static struct c2c_dimension *dimensions[] = { &dim_ld_fbhit, &dim_ld_l1hit, &dim_ld_l2hit, + &dim_ld_llchit, + &dim_ld_rmthit, NULL, };