projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79dded8
)
perf report: Show message for percent limit on gtk
author
Namhyung Kim
<namhyung@kernel.org>
Fri, 26 Feb 2016 12:13:20 +0000
(21:13 +0900)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Fri, 26 Feb 2016 14:20:36 +0000
(11:20 -0300)
Like the stdio, it should show messages about omitted hierarchy
entries. Please refer the previous commit for more details.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Wang Nan <wangnan0@huawei.com>
Link:
http://lkml.kernel.org/r/1456488800-28124-5-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/gtk/hists.c
patch
|
blob
|
blame
|
history
diff --git
a/tools/perf/ui/gtk/hists.c
b/tools/perf/ui/gtk/hists.c
index 7f343339eae783549d0dca5fd8fa12febe86f725..a5758fdfbe1fe0f5a16e738fda69e3942595d4da 100644
(file)
--- 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) {