aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/evsel_config.h
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2019-11-15 14:42:22 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-11-22 10:48:13 -0300
commita1ac7de6902c1ea6def7a743f1d2e6ba429684b3 (patch)
tree72dc84300aecc0f847d35eda9a80fc42d09a16bd /tools/perf/util/evsel_config.h
parentperf auxtrace: Add support for queuing AUX area samples (diff)
downloadlinux-dev-a1ac7de6902c1ea6def7a743f1d2e6ba429684b3.tar.xz
linux-dev-a1ac7de6902c1ea6def7a743f1d2e6ba429684b3.zip
perf pmu: When using default config, record which bits of config were changed by the user
Default config for a PMU is defined before selected events are parsed. That allows the user-entered config to override the default config. However that does not allow for changing the default config based on other options. For example, if the user chooses AUX area sampling mode, in the case of Intel PT, the psb_period needs to be small for sampling, so there is a need to set the default psb_period to 0 (2 KiB) in that case. However that should not override a value set by the user. To allow for that, when using default config, record which bits of config were changed by the user. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: http://lore.kernel.org/lkml/20191115124225.5247-13-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/evsel_config.h')
-rw-r--r--tools/perf/util/evsel_config.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/evsel_config.h b/tools/perf/util/evsel_config.h
index 6e654ede8fbe..1f8d2fe0b66e 100644
--- a/tools/perf/util/evsel_config.h
+++ b/tools/perf/util/evsel_config.h
@@ -26,6 +26,7 @@ enum evsel_term_type {
PERF_EVSEL__CONFIG_TERM_PERCORE,
PERF_EVSEL__CONFIG_TERM_AUX_OUTPUT,
PERF_EVSEL__CONFIG_TERM_AUX_SAMPLE_SIZE,
+ PERF_EVSEL__CONFIG_TERM_CFG_CHG,
};
struct perf_evsel_config_term {
@@ -46,6 +47,7 @@ struct perf_evsel_config_term {
bool percore;
bool aux_output;
u32 aux_sample_size;
+ u64 cfg_chg;
} val;
bool weak;
};