aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/hist.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/hist.h')
-rw-r--r--tools/perf/util/hist.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h
index 16f360cce5bf..9df1c340ec92 100644
--- a/tools/perf/util/hist.h
+++ b/tools/perf/util/hist.h
@@ -12,15 +12,28 @@ struct addr_location;
12struct symbol; 12struct symbol;
13struct rb_root; 13struct rb_root;
14 14
15void __perf_session__add_count(struct hist_entry *he,
16 struct addr_location *al,
17 u64 count);
15struct hist_entry *__perf_session__add_hist_entry(struct rb_root *hists, 18struct hist_entry *__perf_session__add_hist_entry(struct rb_root *hists,
16 struct addr_location *al, 19 struct addr_location *al,
17 struct symbol *parent, 20 struct symbol *parent,
18 u64 count, bool *hit); 21 u64 count, bool *hit);
19extern int64_t hist_entry__cmp(struct hist_entry *, struct hist_entry *); 22extern int64_t hist_entry__cmp(struct hist_entry *, struct hist_entry *);
20extern int64_t hist_entry__collapse(struct hist_entry *, struct hist_entry *); 23extern int64_t hist_entry__collapse(struct hist_entry *, struct hist_entry *);
24int hist_entry__fprintf(struct hist_entry *self,
25 struct perf_session *pair_session,
26 bool show_displacement,
27 long displacement, FILE *fp,
28 u64 session_total);
29int hist_entry__snprintf(struct hist_entry *self,
30 char *bf, size_t size,
31 struct perf_session *pair_session,
32 bool show_displacement, long displacement,
33 bool color, u64 session_total);
21void hist_entry__free(struct hist_entry *); 34void hist_entry__free(struct hist_entry *);
22 35
23void perf_session__output_resort(struct rb_root *hists, u64 total_samples); 36u64 perf_session__output_resort(struct rb_root *hists, u64 total_samples);
24void perf_session__collapse_resort(struct rb_root *hists); 37void perf_session__collapse_resort(struct rb_root *hists);
25size_t perf_session__fprintf_hists(struct rb_root *hists, 38size_t perf_session__fprintf_hists(struct rb_root *hists,
26 struct perf_session *pair, 39 struct perf_session *pair,