John Kacur | 3d1d07e | 2009-09-28 15:32:55 +0200 | [diff] [blame] | 1 | #ifndef __PERF_HIST_H |
| 2 | #define __PERF_HIST_H |
John Kacur | 3d1d07e | 2009-09-28 15:32:55 +0200 | [diff] [blame] | 3 | |
Arnaldo Carvalho de Melo | 4e4f06e | 2009-12-14 13:10:39 -0200 | [diff] [blame] | 4 | #include <linux/types.h> |
John Kacur | 3d1d07e | 2009-09-28 15:32:55 +0200 | [diff] [blame] | 5 | #include "callchain.h" |
John Kacur | 3d1d07e | 2009-09-28 15:32:55 +0200 | [diff] [blame] | 6 | |
John Kacur | 3d1d07e | 2009-09-28 15:32:55 +0200 | [diff] [blame] | 7 | extern struct callchain_param callchain_param; |
John Kacur | 3d1d07e | 2009-09-28 15:32:55 +0200 | [diff] [blame] | 8 | |
Arnaldo Carvalho de Melo | 4e4f06e | 2009-12-14 13:10:39 -0200 | [diff] [blame] | 9 | struct perf_session; |
| 10 | struct hist_entry; |
| 11 | struct addr_location; |
| 12 | struct symbol; |
Eric B Munson | d403d0a | 2010-03-05 12:51:06 -0300 | [diff] [blame] | 13 | struct rb_root; |
Arnaldo Carvalho de Melo | 4e4f06e | 2009-12-14 13:10:39 -0200 | [diff] [blame] | 14 | |
Eric B Munson | d403d0a | 2010-03-05 12:51:06 -0300 | [diff] [blame] | 15 | struct hist_entry *__perf_session__add_hist_entry(struct rb_root *hists, |
Arnaldo Carvalho de Melo | 4e4f06e | 2009-12-14 13:10:39 -0200 | [diff] [blame] | 16 | struct addr_location *al, |
| 17 | struct symbol *parent, |
| 18 | u64 count, bool *hit); |
John Kacur | 3d1d07e | 2009-09-28 15:32:55 +0200 | [diff] [blame] | 19 | extern int64_t hist_entry__cmp(struct hist_entry *, struct hist_entry *); |
| 20 | extern int64_t hist_entry__collapse(struct hist_entry *, struct hist_entry *); |
Arnaldo Carvalho de Melo | 4e4f06e | 2009-12-14 13:10:39 -0200 | [diff] [blame] | 21 | void hist_entry__free(struct hist_entry *); |
| 22 | |
Eric B Munson | eefc465 | 2010-03-05 12:51:08 -0300 | [diff] [blame] | 23 | void perf_session__output_resort(struct rb_root *hists, u64 total_samples); |
| 24 | void perf_session__collapse_resort(struct rb_root *hists); |
| 25 | size_t perf_session__fprintf_hists(struct rb_root *hists, |
Arnaldo Carvalho de Melo | c351c28 | 2009-12-16 13:49:27 -0200 | [diff] [blame] | 26 | struct perf_session *pair, |
Eric B Munson | eefc465 | 2010-03-05 12:51:08 -0300 | [diff] [blame] | 27 | bool show_displacement, FILE *fp, |
| 28 | u64 session_total); |
John Kacur | 3d1d07e | 2009-09-28 15:32:55 +0200 | [diff] [blame] | 29 | #endif /* __PERF_HIST_H */ |