3 #include "../builtin.h"
8 #include <linux/list.h>
10 #include <linux/rbtree.h>
13 #include "callchain.h"
21 #include "parse-options.h"
22 #include "parse-events.h"
27 extern struct rb_root hist
;
28 extern struct rb_root collapse_hists
;
29 extern struct rb_root output_hists
;
31 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
;
39 struct hist_entry
*__hist_entry__add(struct addr_location
*al
,
40 struct symbol
*parent
,
41 u64 count
, bool *hit
);
42 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
*);
44 extern void hist_entry__free(struct hist_entry
*);
45 extern void collapse__insert_entry(struct hist_entry
*);
46 extern void collapse__resort(void);
47 extern void output__insert_entry(struct hist_entry
*, u64
);
48 extern void output__resort(u64
);
50 #endif /* __PERF_HIST_H */