hist.h 925 B

1234567891011121314151617181920212223242526272829
  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. void hist_entry__free(struct hist_entry *);
  18. void perf_session__output_resort(struct rb_root *hists, u64 total_samples);
  19. void perf_session__collapse_resort(struct rb_root *hists);
  20. size_t perf_session__fprintf_hists(struct rb_root *hists,
  21. struct perf_session *pair,
  22. bool show_displacement, FILE *fp,
  23. u64 session_total);
  24. #endif /* __PERF_HIST_H */