The following patch set is another iteration of the implementation of mixin
classes to control CPU features - idle states and turboboost.
Differences to v2:
* since the host_list properties are equivalent for all of the recipes
that inherit from BaseEnrtRecipe, the definition of these properties
is moved to the BaseEnrtRecipe
Differences to v1:
* mixin classes now inherit from BaseSubConfigMixin instead of
PerfTestTweakMixin
* added disable_turboboost_host_list and disable_idlestates properties
to specify on which hosts the CPU feature should be disabled
* added documentation for both mixins
Jan Tluka (8):
Recipes.ENRT.PerfTestMixins.SctpFirewallPerfTestMixin: move
_get_flow_measurement_from_config() to base class
Recipes.ENRT.ConfigMixins: add DisableIdleStatesMixin
Recipes.ENRT.ConfigMixins: add DisableTurboboostMixin
Recipes.ENRT.PerfTestMixins: add CommonPerfTestTweakMixin
Recipes.ENRT.BaseEnrtRecipe: inherit from CommonPerfTestTweakMixin
Recipes.ENRT.BaseEnrtRecipe: add DisableTurboboost and
DisableIdleStates mixins
docs: add DisableTurboboostMixin documentation
docs: add DisableIdleStatesMixin documentation
.../disable_idlestates_mixin.rst | 6 ++
.../disable_turboboost_mixin.rst | 6 ++
docs/source/config_mixins.rst | 2 +
lnst/Recipes/ENRT/BaseEnrtRecipe.py | 40 ++++++++++-
.../ConfigMixins/DisableIdleStatesMixin.py | 57 +++++++++++++++
.../ConfigMixins/DisableTurboboostMixin.py | 71 +++++++++++++++++++
.../PerfTestMixins/BasePerfTestTweakMixin.py | 6 ++
.../CommonPerfTestTweakMixin.py | 6 ++
.../SctpFirewallPerfTestMixin.py | 6 --
lnst/Recipes/ENRT/PerfTestMixins/__init__.py | 1 +
10 files changed, 193 insertions(+), 8 deletions(-)
create mode 100644 docs/source/config_mixin_classes/disable_idlestates_mixin.rst
create mode 100644 docs/source/config_mixin_classes/disable_turboboost_mixin.rst
create mode 100644 lnst/Recipes/ENRT/ConfigMixins/DisableIdleStatesMixin.py
create mode 100644 lnst/Recipes/ENRT/ConfigMixins/DisableTurboboostMixin.py
create mode 100644 lnst/Recipes/ENRT/PerfTestMixins/CommonPerfTestTweakMixin.py
--
2.21.3