Commit | Line | Data |
---|---|---|
3d1d07ec JK |
1 | #ifndef __PERF_HIST_H |
2 | #define __PERF_HIST_H | |
3d1d07ec | 3 | |
4e4f06e4 | 4 | #include <linux/types.h> |
3d1d07ec | 5 | #include "callchain.h" |
3d1d07ec | 6 | |
3d1d07ec | 7 | extern struct callchain_param callchain_param; |
3d1d07ec | 8 | |
4e4f06e4 ACM |
9 | struct perf_session; |
10 | struct hist_entry; | |
11 | struct addr_location; | |
12 | struct symbol; | |
13 | ||
14 | struct hist_entry *__perf_session__add_hist_entry(struct perf_session *self, | |
15 | struct addr_location *al, | |
16 | struct symbol *parent, | |
17 | u64 count, bool *hit); | |
3d1d07ec JK |
18 | extern int64_t hist_entry__cmp(struct hist_entry *, struct hist_entry *); |
19 | extern int64_t hist_entry__collapse(struct hist_entry *, struct hist_entry *); | |
4e4f06e4 ACM |
20 | void hist_entry__free(struct hist_entry *); |
21 | ||
22 | void perf_session__output_resort(struct perf_session *self, u64 total_samples); | |
23 | void perf_session__collapse_resort(struct perf_session *self); | |
4ecf84d0 | 24 | size_t perf_session__fprintf_hists(struct perf_session *self, FILE *fp); |
3d1d07ec JK |
25 | |
26 | #endif /* __PERF_HIST_H */ |