diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-12-14 08:37:11 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-14 10:57:17 -0500 |
commit | b9bf089212d95746ce66482bcdbc7e77a0651088 (patch) | |
tree | f6a5d219d100498a2c16c1fb3a555f518c2c528d /tools/perf/util/hist.h | |
parent | 4aa65636411ccb12f006a6ad593930655c445ff6 (diff) |
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 <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1260797831-11220-1-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/hist.h')
-rw-r--r-- | tools/perf/util/hist.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h index 3020db0c9292..a6cb1485e3b9 100644 --- a/tools/perf/util/hist.h +++ b/tools/perf/util/hist.h | |||
@@ -25,16 +25,8 @@ | |||
25 | #include "sort.h" | 25 | #include "sort.h" |
26 | 26 | ||
27 | extern struct rb_root hist; | 27 | extern struct rb_root hist; |
28 | extern struct rb_root collapse_hists; | ||
29 | extern struct rb_root output_hists; | ||
30 | extern int callchain; | 28 | extern int callchain; |
31 | extern struct callchain_param callchain_param; | 29 | extern struct callchain_param callchain_param; |
32 | extern unsigned long total; | ||
33 | extern unsigned long total_mmap; | ||
34 | extern unsigned long total_comm; | ||
35 | extern unsigned long total_fork; | ||
36 | extern unsigned long total_unknown; | ||
37 | extern unsigned long total_lost; | ||
38 | 30 | ||
39 | struct hist_entry *__hist_entry__add(struct addr_location *al, | 31 | struct hist_entry *__hist_entry__add(struct addr_location *al, |
40 | struct symbol *parent, | 32 | struct symbol *parent, |
@@ -42,9 +34,7 @@ struct hist_entry *__hist_entry__add(struct addr_location *al, | |||
42 | extern int64_t hist_entry__cmp(struct hist_entry *, struct hist_entry *); | 34 | extern int64_t hist_entry__cmp(struct hist_entry *, struct hist_entry *); |
43 | extern int64_t hist_entry__collapse(struct hist_entry *, struct hist_entry *); | 35 | extern int64_t hist_entry__collapse(struct hist_entry *, struct hist_entry *); |
44 | extern void hist_entry__free(struct hist_entry *); | 36 | extern void hist_entry__free(struct hist_entry *); |
45 | extern void collapse__insert_entry(struct hist_entry *); | ||
46 | extern void collapse__resort(void); | 37 | extern void collapse__resort(void); |
47 | extern void output__insert_entry(struct hist_entry *, u64); | ||
48 | extern void output__resort(u64); | 38 | extern void output__resort(u64); |
49 | 39 | ||
50 | #endif /* __PERF_HIST_H */ | 40 | #endif /* __PERF_HIST_H */ |