1  /* SPDX-License-Identifier: GPL-2.0 */
2  #ifndef __PERF_SYMBOL_CONF
3  #define __PERF_SYMBOL_CONF 1
4  
5  #include <stdbool.h>
6  
7  struct strlist;
8  struct intlist;
9  
10  struct symbol_conf {
11  	bool		nanosecs;
12  	unsigned short	priv_size;
13  	bool		try_vmlinux_path,
14  			init_annotation,
15  			force,
16  			ignore_vmlinux,
17  			ignore_vmlinux_buildid,
18  			show_kernel_path,
19  			use_modules,
20  			allow_aliases,
21  			show_nr_samples,
22  			show_total_period,
23  			use_callchain,
24  			cumulate_callchain,
25  			show_branchflag_count,
26  			exclude_other,
27  			show_cpu_utilization,
28  			initialized,
29  			kptr_restrict,
30  			event_group,
31  			demangle,
32  			demangle_kernel,
33  			filter_relative,
34  			show_hist_headers,
35  			has_filter,
36  			show_ref_callgraph,
37  			hide_unresolved,
38  			raw_trace,
39  			report_hierarchy,
40  			report_block,
41  			report_individual_block,
42  			inline_name,
43  			disable_add2line_warn,
44  			buildid_mmap2,
45  			guest_code,
46  			lazy_load_kernel_maps,
47  			keep_exited_threads,
48  			annotate_data_member,
49  			annotate_data_sample,
50  			skip_empty;
51  	const char	*vmlinux_name,
52  			*kallsyms_name,
53  			*source_prefix,
54  			*field_sep,
55  			*graph_function;
56  	const char	*default_guest_vmlinux_name,
57  			*default_guest_kallsyms,
58  			*default_guest_modules;
59  	const char	*guestmount;
60  	const char	*dso_list_str,
61  			*comm_list_str,
62  			*pid_list_str,
63  			*tid_list_str,
64  			*sym_list_str,
65  			*col_width_list_str,
66  			*bt_stop_list_str;
67  	const char		*addr2line_path;
68  	unsigned long	time_quantum;
69         struct strlist	*dso_list,
70  			*comm_list,
71  			*sym_list,
72  			*dso_from_list,
73  			*dso_to_list,
74  			*sym_from_list,
75  			*sym_to_list,
76  			*bt_stop_list;
77  	struct intlist	*pid_list,
78  			*tid_list,
79  			*addr_list;
80  	const char	*symfs;
81  	int		res_sample;
82  	int		pad_output_len_dso;
83  	int		group_sort_idx;
84  	int		addr_range;
85  };
86  
87  extern struct symbol_conf symbol_conf;
88  
89  #endif // __PERF_SYMBOL_CONF
90