lkml.org 
[lkml]   [2015]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 16/25] perf tools: Move init_have_children field to the unnamed union
    Date
    From: Namhyung Kim <namhyung@kernel.org>

    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 | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/tools/perf/util/sort.h b/tools/perf/util/sort.h
    index 7f0c0a8..4d923e6 100644
    --- a/tools/perf/util/sort.h
    +++ b/tools/perf/util/sort.h
    @@ -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;
    --
    2.1.0


    \
     
     \ /
      Last update: 2015-05-06 00:21    [W:4.181 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site