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;
33 bool auxtrace_snapshot_mode;
34 bool auxtrace_snapshot_on_exit;
35 bool auxtrace_sample_mode;
36 bool record_namespaces;
38 bool record_switch_events;
39 bool record_switch_events_set;
42 bool kernel_callchains;
46 bool ignore_missing_thread;
52 unsigned int mmap_pages;
53 unsigned int auxtrace_mmap_pages;
54 unsigned int user_freq;
60 size_t auxtrace_snapshot_size;
61 const char *auxtrace_snapshot_opts;
62 const char *auxtrace_sample_opts;
63 bool sample_transaction;
64 unsigned initial_delay;
71 unsigned int comp_level;
72 unsigned int nr_threads_synthesize;
75 extern const char * const *record_usage;
76 extern struct option *record_options;
78 int record__parse_freq(const struct option *opt, const char *str, int unset);
80 static inline bool record_opts__no_switch_events(const struct record_opts *opts)
82 return opts->record_switch_events_set && !opts->record_switch_events;
85 #endif // _PERF_RECORD_H