diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2009-12-14 13:37:11 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2009-12-14 15:57:17 +0000 |
| commit | b9bf089212d95746ce66482bcdbc7e77a0651088 (patch) | |
| tree | f6a5d219d100498a2c16c1fb3a555f518c2c528d /tools/perf/builtin-annotate.c | |
| parent | perf session: Move kmaps to perf_session (diff) | |
| download | kernel-b9bf089212d95746ce66482bcdbc7e77a0651088.tar.gz kernel-b9bf089212d95746ce66482bcdbc7e77a0651088.zip | |
perf tools: No need for three rb_trees for sorting hist entries
All hist entries are in only one of them, so use just one and a
temporary rb_root while sorting/collapsing.
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Frédéric Weisbecker <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Paul Mackerras <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
| -rw-r--r-- | tools/perf/builtin-annotate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c index e44c54c79be4..f25e89e9c9b0 100644 --- a/tools/perf/builtin-annotate.c +++ b/tools/perf/builtin-annotate.c @@ -432,7 +432,7 @@ static void find_annotations(void) { struct rb_node *nd; - for (nd = rb_first(&output_hists); nd; nd = rb_next(nd)) { + for (nd = rb_first(&hist); nd; nd = rb_next(nd)) { struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); struct sym_priv *priv; |
