From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936586AbcJVItC (ORCPT ); Sat, 22 Oct 2016 04:49:02 -0400 Received: from terminus.zytor.com ([198.137.202.10]:57530 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932826AbcJVIs7 (ORCPT ); Sat, 22 Oct 2016 04:48:59 -0400 Date: Sat, 22 Oct 2016 01:48:45 -0700 From: tip-bot for Jiri Olsa Message-ID: Cc: dsahern@gmail.com, andi@firstfloor.org, tglx@linutronix.de, mingo@kernel.org, acme@redhat.com, hpa@zytor.com, dzickus@redhat.com, linux-kernel@vger.kernel.org, jmario@redhat.com, a.p.zijlstra@chello.nl, namhyung@kernel.org, jolsa@kernel.org Reply-To: namhyung@kernel.org, a.p.zijlstra@chello.nl, jmario@redhat.com, jolsa@kernel.org, andi@firstfloor.org, dsahern@gmail.com, linux-kernel@vger.kernel.org, acme@redhat.com, mingo@kernel.org, dzickus@redhat.com, hpa@zytor.com, tglx@linutronix.de To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf c2c report: Set final resort fields Git-Commit-ID: 22dd59d1457408b69a95e2b5487a500f39d3c409 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: 22dd59d1457408b69a95e2b5487a500f39d3c409 Gitweb: http://git.kernel.org/tip/22dd59d1457408b69a95e2b5487a500f39d3c409 Author: Jiri Olsa AuthorDate: Tue, 10 May 2016 14:08:29 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 19 Oct 2016 13:18:31 -0300 perf c2c report: Set final resort fields Set resort/display fields for both cachelines and single cacheline displays. Cachelines are sorted on: rmt_hitm will be made configurable in following patches. Following fields are display for cachelines: dcacheline tot_recs percent_hitm tot_hitm,lcl_hitm,rmt_hitm stores,stores_l1hit,stores_l1miss dram_lcl,dram_rmt ld_llcmiss tot_loads ld_fbhit,ld_l1hit,ld_l2hit ld_lclhit,ld_rmthit The single cacheline is sort by: offset,rmt_hitm,lcl_hitm will be made configurable in following patches. Following fields are display for each cacheline: percent_rmt_hitm percent_lcl_hitm percent_stores_l1hit percent_stores_l1miss offset pid tid mean_rmt mean_lcl mean_load cpucnt symbol dso node 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-0rclftliywdq9qr2sjbugb6b@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/builtin-c2c.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/tools/perf/builtin-c2c.c b/tools/perf/builtin-c2c.c index 44a8567..c271261 100644 --- a/tools/perf/builtin-c2c.c +++ b/tools/perf/builtin-c2c.c @@ -1637,6 +1637,23 @@ static int resort_cl_cb(struct hist_entry *he) c2c_hists = c2c_he->hists; if (c2c_hists) { + c2c_hists__reinit(c2c_hists, + "percent_rmt_hitm," + "percent_lcl_hitm," + "percent_stores_l1hit," + "percent_stores_l1miss," + "offset," + "pid," + "tid," + "mean_rmt," + "mean_lcl," + "mean_load," + "cpucnt," + "symbol," + "dso," + "node", + "offset,rmt_hitm,lcl_hitm"); + hists__collapse_resort(&c2c_hists->hists, NULL); hists__output_resort_cb(&c2c_hists->hists, NULL, filter_cb); } @@ -1768,6 +1785,20 @@ static int perf_c2c__report(int argc, const char **argv) goto out_session; } + c2c_hists__reinit(&c2c.hists, + "dcacheline," + "tot_recs," + "percent_hitm," + "tot_hitm,lcl_hitm,rmt_hitm," + "stores,stores_l1hit,stores_l1miss," + "dram_lcl,dram_rmt," + "ld_llcmiss," + "tot_loads," + "ld_fbhit,ld_l1hit,ld_l2hit," + "ld_lclhit,ld_rmthit", + "rmt_hitm" + ); + ui_progress__init(&prog, c2c.hists.hists.nr_entries, "Sorting..."); hists__collapse_resort(&c2c.hists.hists, NULL);