1 /* SPDX-License-Identifier: GPL-2.0 */
7 #include <linux/types.h>
10 #include <sys/ioctl.h>
17 struct perf_tool tool
;
18 struct perf_evlist
*evlist
;
19 struct record_opts record_opts
;
20 struct annotation_options annotation_opts
;
22 * Symbols will be added here in perf_event__process_sample and will
23 * get out after decayed.
25 u64 samples
, lost
, lost_total
, drop
, drop_total
;
26 u64 kernel_samples
, us_samples
;
28 u64 guest_us_samples
, guest_kernel_samples
;
29 int print_entries
, count_filter
, delay_secs
;
31 bool hide_kernel_symbols
, hide_user_symbols
, zero
;
32 bool use_tui
, use_stdio
;
35 struct hist_entry
*sym_filter_entry
;
36 struct perf_evsel
*sym_evsel
;
37 struct perf_session
*session
;
38 struct winsize winsize
;
40 const char *sym_filter
;
42 unsigned int nr_threads_synthesize
;
45 struct ordered_events
*in
;
46 struct ordered_events data
[2];
48 pthread_mutex_t mutex
;
53 #define CONSOLE_CLEAR "\e[H\e[2J"
55 size_t perf_top__header_snprintf(struct perf_top
*top
, char *bf
, size_t size
);
56 void perf_top__reset_sample_counters(struct perf_top
*top
);
57 #endif /* __PERF_TOP_H */