Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756073AbdGKWOG (ORCPT ); Tue, 11 Jul 2017 18:14:06 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:34368 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753498AbdGKWOE (ORCPT ); Tue, 11 Jul 2017 18:14:04 -0400 From: Taeung Song To: Arnaldo Carvalho de Melo Cc: linux-kernel@vger.kernel.org, Jiri Olsa , Milian Wolff , Namhyung Kim Subject: [PATCH 0/4] perf annotate: Fix --show-total-period and support --show-nr-samples Date: Wed, 12 Jul 2017 07:13:58 +0900 Message-Id: <1499811238-9214-1-git-send-email-treeze.taeung@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1256 Lines: 40 Hello, Currently the --show-total-period option of perf-annotate is different from perf-report's. It has two problem like below: 1) Wrong column i.e. 'Percent' (even though using --show-total-period) 2) Show number of samples, not period So fix this option on both the annotate stdio and TUI browser. And support --show-nr-samples into perf-anntate so that it correpond with perf-report's. The code is available on 'perf/ann-fix-period' branch at git://github.com/taeung/linux-perf.git Thanks, Taeung Taeung Song (4): perf annotate: Fix wrong --show-total-period option showing number of samples perf anntoate browser: Fix the toggle total period view to show period, not number of samples perf annotate: Support --show-nr-samples option perf annotate browser: Support the toggle number of samples tools/perf/builtin-annotate.c | 6 +-- tools/perf/builtin-report.c | 13 +++-- tools/perf/builtin-top.c | 6 ++- tools/perf/ui/browsers/annotate.c | 37 ++++++++++--- tools/perf/ui/gtk/annotate.c | 4 +- tools/perf/util/annotate.c | 110 ++++++++++++++++++++++++++++---------- tools/perf/util/annotate.h | 14 +++-- 7 files changed, 139 insertions(+), 51 deletions(-) -- 2.7.4