1 /* SPDX-License-Identifier: GPL-2.0 */
7 #include <linux/types.h>
8 #include <linux/stddef.h>
9 #include <linux/perf_event.h>
10 #include "util/target.h"
24 bool sample_phys_addr;
25 bool sample_data_page_size;
26 bool sample_code_page_size;
31 bool sample_identifier;
36 bool auxtrace_snapshot_mode;
37 bool auxtrace_snapshot_on_exit;
38 bool auxtrace_sample_mode;
39 bool record_namespaces;
41 bool record_switch_events;
42 bool record_switch_events_set;
45 bool kernel_callchains;
49 bool ignore_missing_thread;
57 unsigned int mmap_pages;
58 unsigned int auxtrace_mmap_pages;
59 unsigned int user_freq;
65 size_t auxtrace_snapshot_size;
66 const char *auxtrace_snapshot_opts;
67 const char *auxtrace_sample_opts;
68 bool sample_transaction;
76 unsigned int comp_level;
77 unsigned int nr_threads_synthesize;
83 const char *threads_user_spec;
86 extern const char * const *record_usage;
87 extern struct option *record_options;
89 int record__parse_freq(const struct option *opt, const char *str, int unset);
91 static inline bool record_opts__no_switch_events(const struct record_opts *opts)
93 return opts->record_switch_events_set && !opts->record_switch_events;
96 #endif // _PERF_RECORD_H