]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
perf hists: Fix hist_entry__init_have_children
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 25 Aug 2010 15:47:44 +0000 (12:47 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 25 Aug 2010 17:39:09 +0000 (14:39 -0300)
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>
tools/perf/util/ui/browsers/hists.c

index b13b9787be7011af45132d08bf8987fc57556dd8..39ba230972bb4a31503d0223a3c549ec41d1adf1 100644 (file)
@@ -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;
        }