From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755349AbcETGoI (ORCPT ); Fri, 20 May 2016 02:44:08 -0400 Received: from terminus.zytor.com ([198.137.202.10]:50676 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754962AbcETGoE (ORCPT ); Fri, 20 May 2016 02:44:04 -0400 Date: Thu, 19 May 2016 23:43:32 -0700 From: tip-bot for Namhyung Kim Message-ID: Cc: andi@firstfloor.org, tglx@linutronix.de, a.p.zijlstra@chello.nl, mingo@kernel.org, acme@redhat.com, namhyung@kernel.org, hpa@zytor.com, linux-kernel@vger.kernel.org, jolsa@kernel.org Reply-To: acme@redhat.com, namhyung@kernel.org, mingo@kernel.org, linux-kernel@vger.kernel.org, jolsa@kernel.org, hpa@zytor.com, tglx@linutronix.de, andi@firstfloor.org, a.p.zijlstra@chello.nl In-Reply-To: <1463119263-5569-1-git-send-email-namhyung@kernel.org> References: <1463119263-5569-1-git-send-email-namhyung@kernel.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/urgent] perf stat: Fix indentation of stalled backend cycle Git-Commit-ID: b0404be8d6186f9f3c23e2b5ff247e667be90652 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: b0404be8d6186f9f3c23e2b5ff247e667be90652 Gitweb: http://git.kernel.org/tip/b0404be8d6186f9f3c23e2b5ff247e667be90652 Author: Namhyung Kim AuthorDate: Fri, 13 May 2016 15:01:01 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 16 May 2016 23:11:45 -0300 perf stat: Fix indentation of stalled backend cycle The commit 140aeadc1fb5 ("perf stat: Abstract stat metrics printing") changed how shadow metrics are printed, but it missed to update the width of the stalled backend cycles event to 7.2% like others. This resulted in misaligned output like below: Performance counter stats for 'pwd': 0.638313 task-clock (msec) # 0.567 CPUs utilized 0 context-switches # 0.000 K/sec 0 cpu-migrations # 0.000 K/sec 54 page-faults # 0.085 M/sec 885,600 cycles # 1.387 GHz 558,438 stalled-cycles-frontend # 63.06% frontend cycles idle 431,355 stalled-cycles-backend # 48.71% backend cycles idle 674,956 instructions # 0.76 insn per cycle # 0.83 stalled cycles per insn 130,380 branches # 204.257 M/sec branch-misses 0.001125426 seconds time elapsed Signed-off-by: Namhyung Kim Cc: Andi Kleen Cc: Jiri Olsa Cc: Peter Zijlstra Fixes: 140aeadc1fb5 ("perf stat: Abstract stat metrics printing") Link: http://lkml.kernel.org/r/1463119263-5569-1-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/stat-shadow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/stat-shadow.c b/tools/perf/util/stat-shadow.c index fdb7196..61200fc 100644 --- a/tools/perf/util/stat-shadow.c +++ b/tools/perf/util/stat-shadow.c @@ -188,7 +188,7 @@ static void print_stalled_cycles_backend(int cpu, color = get_ratio_color(GRC_STALLED_CYCLES_BE, ratio); - out->print_metric(out->ctx, color, "%6.2f%%", "backend cycles idle", ratio); + out->print_metric(out->ctx, color, "%7.2f%%", "backend cycles idle", ratio); } static void print_branch_misses(int cpu,