From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756400AbcB0JnT (ORCPT ); Sat, 27 Feb 2016 04:43:19 -0500 Received: from torg.zytor.com ([198.137.202.12]:39280 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756295AbcB0JnR (ORCPT ); Sat, 27 Feb 2016 04:43:17 -0500 Date: Sat, 27 Feb 2016 01:42:40 -0800 From: tip-bot for Namhyung Kim Message-ID: Cc: hpa@zytor.com, tglx@linutronix.de, peterz@infradead.org, andi@firstfloor.org, linux-kernel@vger.kernel.org, acme@redhat.com, jolsa@kernel.org, dsahern@gmail.com, eranian@google.com, mingo@kernel.org, wangnan0@huawei.com, namhyung@kernel.org Reply-To: eranian@google.com, mingo@kernel.org, wangnan0@huawei.com, namhyung@kernel.org, tglx@linutronix.de, peterz@infradead.org, hpa@zytor.com, andi@firstfloor.org, acme@redhat.com, linux-kernel@vger.kernel.org, jolsa@kernel.org, dsahern@gmail.com In-Reply-To: <1456488800-28124-5-git-send-email-namhyung@kernel.org> References: <1456488800-28124-5-git-send-email-namhyung@kernel.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf report: Show message for percent limit on gtk Git-Commit-ID: 2ddda792373065577eb9207370cb7a28395caffa 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: 2ddda792373065577eb9207370cb7a28395caffa Gitweb: http://git.kernel.org/tip/2ddda792373065577eb9207370cb7a28395caffa Author: Namhyung Kim AuthorDate: Fri, 26 Feb 2016 21:13:20 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 26 Feb 2016 11:20:36 -0300 perf report: Show message for percent limit on gtk Like the stdio, it should show messages about omitted hierarchy entries. Please refer the previous commit for more details. Signed-off-by: Namhyung Kim Cc: Andi Kleen Cc: David Ahern Cc: Jiri Olsa Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Wang Nan Link: http://lkml.kernel.org/r/1456488800-28124-5-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/ui/gtk/hists.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/perf/ui/gtk/hists.c b/tools/perf/ui/gtk/hists.c index 7f343339..a5758fd 100644 --- a/tools/perf/ui/gtk/hists.c +++ b/tools/perf/ui/gtk/hists.c @@ -449,6 +449,17 @@ static void perf_gtk__add_hierarchy_entries(struct hists *hists, perf_gtk__add_hierarchy_entries(hists, &he->hroot_out, store, &iter, hpp, min_pcnt); + + if (!hist_entry__has_hierarchy_children(he, min_pcnt)) { + char buf[32]; + GtkTreeIter child; + + snprintf(buf, sizeof(buf), "no entry >= %.2f%%", + min_pcnt); + + gtk_tree_store_append(store, &child, &iter); + gtk_tree_store_set(store, &child, col_idx, buf, -1); + } } if (symbol_conf.use_callchain && he->leaf) {