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; | |
d403d0ac | 13 | struct rb_root; |
4e4f06e4 | 14 | |
d403d0ac | 15 | struct hist_entry *__perf_session__add_hist_entry(struct rb_root *hists, |
4e4f06e4 ACM |
16 | struct addr_location *al, |
17 | struct symbol *parent, | |
28e2a106 | 18 | u64 count); |
3d1d07ec JK |
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 *); | |
a4e3b956 | 21 | int hist_entry__fprintf(struct hist_entry *self, |
f9224c5c ACM |
22 | struct perf_session *pair_session, |
23 | bool show_displacement, | |
24 | long displacement, FILE *fp, | |
25 | u64 session_total); | |
a4e3b956 ACM |
26 | int hist_entry__snprintf(struct hist_entry *self, |
27 | char *bf, size_t size, | |
28 | struct perf_session *pair_session, | |
29 | bool show_displacement, long displacement, | |
30 | bool color, u64 session_total); | |
4e4f06e4 ACM |
31 | void hist_entry__free(struct hist_entry *); |
32 | ||
5f4d3f88 | 33 | u64 perf_session__output_resort(struct rb_root *hists, u64 total_samples); |
eefc465c EM |
34 | void perf_session__collapse_resort(struct rb_root *hists); |
35 | size_t perf_session__fprintf_hists(struct rb_root *hists, | |
c351c281 | 36 | struct perf_session *pair, |
eefc465c EM |
37 | bool show_displacement, FILE *fp, |
38 | u64 session_total); | |
3d1d07ec | 39 | #endif /* __PERF_HIST_H */ |