hist.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef __PERF_HIST_H
  2. #define __PERF_HIST_H
  3. #include <linux/types.h>
  4. #include "callchain.h"
  5. extern struct callchain_param callchain_param;
  6. struct perf_session;
  7. struct hist_entry;
  8. struct addr_location;
  9. struct symbol;
  10. struct rb_root;
  11. struct hist_entry *__perf_session__add_hist_entry(struct rb_root *hists,
  12. struct addr_location *al,
  13. struct symbol *parent,
  14. u64 count, bool *hit);
  15. extern int64_t hist_entry__cmp(struct hist_entry *, struct hist_entry *);
  16. extern int64_t hist_entry__collapse(struct hist_entry *, struct hist_entry *);
  17. size_t hist_entry__fprintf(struct hist_entry *self,
  18. struct perf_session *pair_session,
  19. bool show_displacement,
  20. long displacement, FILE *fp,
  21. u64 session_total);
  22. void hist_entry__free(struct hist_entry *);
  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 */