summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/hist.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2009-12-14 11:37:11 -0200
committerIngo Molnar <mingo@elte.hu>2009-12-14 16:57:17 +0100
commitb9bf089212d95746ce66482bcdbc7e77a0651088 (patch)
treef6a5d219d100498a2c16c1fb3a555f518c2c528d /tools/perf/util/hist.h
parent4aa65636411ccb12f006a6ad593930655c445ff6 (diff)
downloadlinux-stable-b9bf089212d95746ce66482bcdbc7e77a0651088.tar.gz
linux-stable-b9bf089212d95746ce66482bcdbc7e77a0651088.tar.bz2
linux-stable-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 <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.h10
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 @@
#include "sort.h"
extern struct rb_root hist;
-extern struct rb_root collapse_hists;
-extern struct rb_root output_hists;
extern int callchain;
extern struct callchain_param callchain_param;
-extern unsigned long total;
-extern unsigned long total_mmap;
-extern unsigned long total_comm;
-extern unsigned long total_fork;
-extern unsigned long total_unknown;
-extern unsigned long total_lost;
struct hist_entry *__hist_entry__add(struct addr_location *al,
struct symbol *parent,
@@ -42,9 +34,7 @@ struct hist_entry *__hist_entry__add(struct addr_location *al,
extern int64_t hist_entry__cmp(struct hist_entry *, struct hist_entry *);
extern int64_t hist_entry__collapse(struct hist_entry *, struct hist_entry *);
extern void hist_entry__free(struct hist_entry *);
-extern void collapse__insert_entry(struct hist_entry *);
extern void collapse__resort(void);
-extern void output__insert_entry(struct hist_entry *, u64);
extern void output__resort(u64);
#endif /* __PERF_HIST_H */