diff options
Diffstat (limited to 'tools/perf/util/hist.h')
-rw-r--r-- | tools/perf/util/hist.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h new file mode 100644 index 000000000000..16f360cce5bf --- /dev/null +++ b/tools/perf/util/hist.h | |||
@@ -0,0 +1,29 @@ | |||
1 | #ifndef __PERF_HIST_H | ||
2 | #define __PERF_HIST_H | ||
3 | |||
4 | #include <linux/types.h> | ||
5 | #include "callchain.h" | ||
6 | |||
7 | extern struct callchain_param callchain_param; | ||
8 | |||
9 | struct perf_session; | ||
10 | struct hist_entry; | ||
11 | struct addr_location; | ||
12 | struct symbol; | ||
13 | struct rb_root; | ||
14 | |||
15 | struct hist_entry *__perf_session__add_hist_entry(struct rb_root *hists, | ||
16 | struct addr_location *al, | ||
17 | struct symbol *parent, | ||
18 | u64 count, bool *hit); | ||
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 *); | ||
21 | void hist_entry__free(struct hist_entry *); | ||
22 | |||
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, | ||
26 | struct perf_session *pair, | ||
27 | bool show_displacement, FILE *fp, | ||
28 | u64 session_total); | ||
29 | #endif /* __PERF_HIST_H */ | ||