hist.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef __PERF_HIST_H
  2. #define __PERF_HIST_H
  3. #include "../builtin.h"
  4. #include "util.h"
  5. #include "color.h"
  6. #include <linux/list.h>
  7. #include "cache.h"
  8. #include <linux/rbtree.h>
  9. #include "symbol.h"
  10. #include "string.h"
  11. #include "callchain.h"
  12. #include "strlist.h"
  13. #include "values.h"
  14. #include "../perf.h"
  15. #include "debug.h"
  16. #include "header.h"
  17. #include "parse-options.h"
  18. #include "parse-events.h"
  19. #include "thread.h"
  20. #include "sort.h"
  21. extern struct rb_root hist;
  22. extern struct rb_root collapse_hists;
  23. extern struct rb_root output_hists;
  24. extern int callchain;
  25. extern struct callchain_param callchain_param;
  26. extern unsigned long total;
  27. extern unsigned long total_mmap;
  28. extern unsigned long total_comm;
  29. extern unsigned long total_fork;
  30. extern unsigned long total_unknown;
  31. extern unsigned long total_lost;
  32. struct hist_entry *__hist_entry__add(struct thread *thread, struct map *map,
  33. struct symbol *sym, struct symbol *parent,
  34. u64 ip, u64 count, char level, bool *hit);
  35. extern int64_t hist_entry__cmp(struct hist_entry *, struct hist_entry *);
  36. extern int64_t hist_entry__collapse(struct hist_entry *, struct hist_entry *);
  37. extern void hist_entry__free(struct hist_entry *);
  38. extern void collapse__insert_entry(struct hist_entry *);
  39. extern void collapse__resort(void);
  40. extern void output__insert_entry(struct hist_entry *, u64);
  41. extern void output__resort(u64);
  42. #endif /* __PERF_HIST_H */