diff options
Diffstat (limited to 'tools/perf/util/top.h')
| -rw-r--r-- | tools/perf/util/top.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/tools/perf/util/top.h b/tools/perf/util/top.h index 39965096795..a248f3c2c60 100644 --- a/tools/perf/util/top.h +++ b/tools/perf/util/top.h | |||
| @@ -1,15 +1,17 @@ | |||
| 1 | #ifndef __PERF_TOP_H | 1 | #ifndef __PERF_TOP_H |
| 2 | #define __PERF_TOP_H 1 | 2 | #define __PERF_TOP_H 1 |
| 3 | 3 | ||
| 4 | #include "tool.h" | ||
| 4 | #include "types.h" | 5 | #include "types.h" |
| 5 | #include "../perf.h" | ||
| 6 | #include <stddef.h> | 6 | #include <stddef.h> |
| 7 | #include <stdbool.h> | ||
| 7 | 8 | ||
| 8 | struct perf_evlist; | 9 | struct perf_evlist; |
| 9 | struct perf_evsel; | 10 | struct perf_evsel; |
| 10 | struct perf_session; | 11 | struct perf_session; |
| 11 | 12 | ||
| 12 | struct perf_top { | 13 | struct perf_top { |
| 14 | struct perf_tool tool; | ||
| 13 | struct perf_evlist *evlist; | 15 | struct perf_evlist *evlist; |
| 14 | /* | 16 | /* |
| 15 | * Symbols will be added here in perf_event__process_sample and will | 17 | * Symbols will be added here in perf_event__process_sample and will |
| @@ -23,10 +25,26 @@ struct perf_top { | |||
| 23 | int freq; | 25 | int freq; |
| 24 | pid_t target_pid, target_tid; | 26 | pid_t target_pid, target_tid; |
| 25 | bool hide_kernel_symbols, hide_user_symbols, zero; | 27 | bool hide_kernel_symbols, hide_user_symbols, zero; |
| 28 | bool system_wide; | ||
| 29 | bool use_tui, use_stdio; | ||
| 30 | bool sort_has_symbols; | ||
| 31 | bool dont_use_callchains; | ||
| 32 | bool kptr_restrict_warned; | ||
| 33 | bool vmlinux_warned; | ||
| 34 | bool inherit; | ||
| 35 | bool group; | ||
| 36 | bool sample_id_all_avail; | ||
| 37 | bool dump_symtab; | ||
| 26 | const char *cpu_list; | 38 | const char *cpu_list; |
| 27 | struct hist_entry *sym_filter_entry; | 39 | struct hist_entry *sym_filter_entry; |
| 28 | struct perf_evsel *sym_evsel; | 40 | struct perf_evsel *sym_evsel; |
| 29 | struct perf_session *session; | 41 | struct perf_session *session; |
| 42 | struct winsize winsize; | ||
| 43 | unsigned int mmap_pages; | ||
| 44 | int default_interval; | ||
| 45 | int realtime_prio; | ||
| 46 | int sym_pcnt_filter; | ||
| 47 | const char *sym_filter; | ||
| 30 | }; | 48 | }; |
| 31 | 49 | ||
| 32 | size_t perf_top__header_snprintf(struct perf_top *top, char *bf, size_t size); | 50 | size_t perf_top__header_snprintf(struct perf_top *top, char *bf, size_t size); |
