Linux Perf
top.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __PERF_TOP_H
3 #define __PERF_TOP_H 1
4 
5 #include "tool.h"
6 #include "annotate.h"
7 #include <linux/types.h>
8 #include <stddef.h>
9 #include <stdbool.h>
10 #include <sys/ioctl.h>
11 
12 struct perf_evlist;
13 struct perf_evsel;
14 struct perf_session;
15 
16 struct perf_top {
17  struct perf_tool tool;
21  /*
22  * Symbols will be added here in perf_event__process_sample and will
23  * get out after decayed.
24  */
25  u64 samples;
30  int max_stack;
38  struct winsize winsize;
40  const char *sym_filter;
41  float min_percent;
42  unsigned int nr_threads_synthesize;
43 };
44 
45 #define CONSOLE_CLEAR ""
46 
47 size_t perf_top__header_snprintf(struct perf_top *top, char *bf, size_t size);
49 #endif /* __PERF_TOP_H */
bool hide_kernel_symbols
Definition: top.h:31
float min_percent
Definition: top.h:41
int max_stack
Definition: top.h:30
size_t size
Definition: evsel.c:60
u64 samples
Definition: top.h:25
struct perf_tool tool
Definition: top.h:17
int count_filter
Definition: top.h:29
struct perf_evsel * sym_evsel
Definition: top.h:36
bool zero
Definition: top.h:31
struct annotation_options annotation_opts
Definition: top.h:20
struct hist_entry * sym_filter_entry
Definition: top.h:35
u64 guest_us_samples
Definition: top.h:28
int delay_secs
Definition: top.h:29
const char * sym_filter
Definition: top.h:40
int print_entries
Definition: top.h:29
u64 us_samples
Definition: top.h:26
void perf_top__reset_sample_counters(struct perf_top *top)
Definition: top.c:112
unsigned int nr_threads_synthesize
Definition: top.h:42
Definition: sort.h:89
bool dump_symtab
Definition: top.h:34
Definition: tool.h:44
struct perf_session * session
Definition: top.h:37
bool vmlinux_warned
Definition: top.h:33
struct winsize winsize
Definition: top.h:38
Definition: top.h:16
u64 kernel_samples
Definition: top.h:26
bool hide_user_symbols
Definition: top.h:31
bool use_tui
Definition: top.h:32
u64 exact_samples
Definition: top.h:27
size_t perf_top__header_snprintf(struct perf_top *top, char *bf, size_t size)
Definition: top.c:24
bool use_stdio
Definition: top.h:32
int realtime_prio
Definition: top.h:39
u64 guest_kernel_samples
Definition: top.h:28
struct perf_evlist * evlist
Definition: top.h:18