top.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef __PERF_TOP_H
  2. #define __PERF_TOP_H 1
  3. #include "tool.h"
  4. #include <linux/types.h>
  5. #include <stddef.h>
  6. #include <stdbool.h>
  7. #include <termios.h>
  8. struct perf_evlist;
  9. struct perf_evsel;
  10. struct perf_session;
  11. struct perf_top {
  12. struct perf_tool tool;
  13. struct perf_evlist *evlist;
  14. struct record_opts record_opts;
  15. /*
  16. * Symbols will be added here in perf_event__process_sample and will
  17. * get out after decayed.
  18. */
  19. u64 samples;
  20. u64 kernel_samples, us_samples;
  21. u64 exact_samples;
  22. u64 guest_us_samples, guest_kernel_samples;
  23. int print_entries, count_filter, delay_secs;
  24. int max_stack;
  25. bool hide_kernel_symbols, hide_user_symbols, zero;
  26. bool use_tui, use_stdio;
  27. bool vmlinux_warned;
  28. bool dump_symtab;
  29. struct hist_entry *sym_filter_entry;
  30. struct perf_evsel *sym_evsel;
  31. struct perf_session *session;
  32. struct winsize winsize;
  33. int realtime_prio;
  34. int sym_pcnt_filter;
  35. const char *sym_filter;
  36. float min_percent;
  37. };
  38. #define CONSOLE_CLEAR ""
  39. size_t perf_top__header_snprintf(struct perf_top *top, char *bf, size_t size);
  40. void perf_top__reset_sample_counters(struct perf_top *top);
  41. #endif /* __PERF_TOP_H */