aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/record.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/record.h')
-rw-r--r--tools/perf/util/record.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/perf/util/record.h b/tools/perf/util/record.h
index 00275afc524d..7360105e3be8 100644
--- a/tools/perf/util/record.h
+++ b/tools/perf/util/record.h
@@ -32,8 +32,10 @@ struct record_opts {
bool full_auxtrace;
bool auxtrace_snapshot_mode;
bool auxtrace_snapshot_on_exit;
+ bool auxtrace_sample_mode;
bool record_namespaces;
bool record_switch_events;
+ bool record_switch_events_set;
bool all_kernel;
bool all_user;
bool kernel_callchains;
@@ -55,6 +57,7 @@ struct record_opts {
u64 user_interval;
size_t auxtrace_snapshot_size;
const char *auxtrace_snapshot_opts;
+ const char *auxtrace_sample_opts;
bool sample_transaction;
unsigned initial_delay;
bool use_clockid;
@@ -71,4 +74,9 @@ extern struct option *record_options;
int record__parse_freq(const struct option *opt, const char *str, int unset);
+static inline bool record_opts__no_switch_events(const struct record_opts *opts)
+{
+ return opts->record_switch_events_set && !opts->record_switch_events;
+}
+
#endif // _PERF_RECORD_H