hist.h 899 B

123456789101112131415161718192021222324252627
  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 hist_entry *__perf_session__add_hist_entry(struct perf_session *self,
  11. struct addr_location *al,
  12. struct symbol *parent,
  13. u64 count, bool *hit);
  14. extern int64_t hist_entry__cmp(struct hist_entry *, struct hist_entry *);
  15. extern int64_t hist_entry__collapse(struct hist_entry *, struct hist_entry *);
  16. void hist_entry__free(struct hist_entry *);
  17. void perf_session__output_resort(struct perf_session *self, u64 total_samples);
  18. void perf_session__collapse_resort(struct perf_session *self);
  19. size_t perf_session__fprintf_hists(struct perf_session *self,
  20. struct perf_session *pair,
  21. bool show_displacement, FILE *fp);
  22. #endif /* __PERF_HIST_H */