perf tools: Move init_have_children field to the unnamed union
authorNamhyung Kim <namhyung@kernel.org>
Wed, 22 Apr 2015 07:18:13 +0000 (16:18 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 5 May 2015 21:13:11 +0000 (18:13 -0300)
The init_have_children is used to init callchain info only for TUI.  So
it'd be better to move it to the TUI-specific unnamed union member.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1429687101-4360-3-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/sort.h

index 7f0c0a8d615df0ba6dc9a8e473470c6e579f69ea..4d923e6e00698c0dd4f8b395de760777a167a379 100644 (file)
@@ -96,7 +96,6 @@ struct hist_entry {
        /* We are added by hists__add_dummy_entry. */
        bool                    dummy;
 
-       bool                    init_have_children;
        char                    level;
        u8                      filtered;
        union {
@@ -109,6 +108,7 @@ struct hist_entry {
                struct /* for TUI */ {
                        u16     row_offset;
                        u16     nr_rows;
+                       bool    init_have_children;
                };
        };
        char                    *srcline;