diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-08-25 12:47:44 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-08-25 14:39:09 -0300 |
commit | 18b308d7994e0e2a360b979f159fa7d2b91a26b1 (patch) | |
tree | cac4b893f15587c2acdd107b567bb9479eb634bb /tools/perf/util/ui | |
parent | 7de5d895b2020260190db0021de646f3f22f755e (diff) | |
download | op-kernel-dev-18b308d7994e0e2a360b979f159fa7d2b91a26b1.zip op-kernel-dev-18b308d7994e0e2a360b979f159fa7d2b91a26b1.tar.gz |
perf hists: Fix hist_entry__init_have_children
It wasn't setting the ms.has_children for the hist_entry itself, just
for the callchain
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/ui')
-rw-r--r-- | tools/perf/util/ui/browsers/hists.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/ui/browsers/hists.c b/tools/perf/util/ui/browsers/hists.c index b13b978..39ba230 100644 --- a/tools/perf/util/ui/browsers/hists.c +++ b/tools/perf/util/ui/browsers/hists.c @@ -168,6 +168,7 @@ static void callchain__init_have_children(struct rb_root *self) static void hist_entry__init_have_children(struct hist_entry *self) { if (!self->init_have_children) { + self->ms.has_children = !RB_EMPTY_ROOT(&self->sorted_chain); callchain__init_have_children(&self->sorted_chain); self->init_have_children = true; } |