[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160220231918.GD17925@krava.homerouter.cpe>
Date: Sun, 21 Feb 2016 00:19:18 +0100
From: Jiri Olsa <jolsa@...hat.com>
To: Namhyung Kim <namhyung@...nel.org>
Cc: Arnaldo Carvalho de Melo <acme@...nel.org>,
Ingo Molnar <mingo@...nel.org>,
Peter Zijlstra <peterz@...radead.org>,
Jiri Olsa <jolsa@...nel.org>,
LKML <linux-kernel@...r.kernel.org>,
David Ahern <dsahern@...il.com>,
Andi Kleen <andi@...stfloor.org>,
Stephane Eranian <eranian@...gle.com>,
Wang Nan <wangnan0@...wei.com>
Subject: Re: [PATCH v6 10/25] perf hists: Resort hist entries with hierarchy
On Tue, Feb 16, 2016 at 11:08:28PM +0900, Namhyung Kim wrote:
SNIP
> @@ -1349,6 +1427,17 @@ static void output_resort(struct hists *hists, struct ui_progress *prog,
>
> min_callchain_hits = callchain_total * (callchain_param.min_percent / 100);
>
> + hists__reset_stats(hists);
> + hists__reset_col_len(hists);
> +
> + if (symbol_conf.report_hierarchy) {
> + return hists__hierarchy_output_resort(hists, prog,
> + &hists->entries_collapsed,
> + &hists->entries,
> + min_callchain_hits,
> + use_callchain);
> + }
> +
> if (sort__need_collapse)
> root = &hists->entries_collapsed;
> else
> @@ -1357,9 +1446,6 @@ static void output_resort(struct hists *hists, struct ui_progress *prog,
> next = rb_first(root);
> hists->entries = RB_ROOT;
above line could be moved together with those 2 below
and you can then remove *root_out = RB_ROOT; line in
hists__hierarchy_output_resort
jirka
>
> - hists__reset_stats(hists);
> - hists__reset_col_len(hists);
> -
> while (next) {
> n = rb_entry(next, struct hist_entry, rb_node_in);
> next = rb_next(&n->rb_node_in);
> --
> 2.7.1
>
Powered by blists - more mailing lists