lisa.wlgen.rta.WloadSequence#
- class lisa.wlgen.rta.WloadSequence(wloads)[source]#
Bases:
WloadPropertyBase
,SimpleConcreteProperty
Sequence of workloads, to be executed one after another.
Note
Adding together two
WloadPropertyBase
with+
operator will give aWloadSequence
, so there is usually no need to create one explicitly.Classes
__class__
inheritedMetaclass for properties.
Attributes
Subclasses can override this attribute so that
PropertyBase.from_key()
knows that it can call their_from_key()
method for that key.DEFAULT_JSON
inheritedJSON value to use as a default.
FILTER_NONE
inheritedIf
True
, no JSON content will be generated when the property value isNone
.JSON_KEY
inheritedName of the JSON key the property will set.
OPTIMIZE_JSON_KEYS
inheritedConfiguration driving the JSON optimization, as a
dict(str, set(str))
.REQUIRED_KCONFIG_KEYS
inheritedList of KCONFIG keys that need to be =Y on the target kernel for this property to be usable.
Properties
json_key
inheritedName of the JSON key that will be set.
key
inheritedKey of the instance.
logger
inheritedConvenience short-hand for
self.get_logger()
.val
inheritedValue “payload” of the property.
Methods
HASH_COERCE()
inheritedUsed to coerce the values of
self.__dict__
to hashable values.__add__()
inheritedAdding two workloads together concatenates them.
__and__()
inheritedCombine two instances of the same property together.
__await__()
inherited__mul__()
inheritedReplicate the given workload
n
times.__rmul__()
inheritedcheck_kconfig()
inheritedCheck whether
plat_info
contains the kernel KCONFIG keys contained inREQUIRED_KCONFIG_KEYS
.find_cls()
inheritedFind which subclass can handle
key
.from_key()
inheritedAlternative constructor that is available with the same signature for all properties.
get_logger()
inheritedProvides a
logging.Logger
named aftercls
.log_locals()
inheritedDebugging aid: log the local variables of the calling function.
to_default_json()
inheritedSimilar to
to_json()
but returns the default values for the keys set into_json()
.to_json()
inheritedSnippet of JSON content for that property as Python objects.
Classes#
- WloadSequence.__class__#
alias of
PropertyMeta
Attributes#
- WloadSequence.KEY = None#
Subclasses can override this attribute so that
PropertyBase.from_key()
knows that it can call their_from_key()
method for that key.Note
This class attribute will not be inherited automatically so that each class can be uniquely identified by its key. Subclass that do not override the value explicitly will get
None
.
- WloadSequence.DEFAULT_JSON = None#
Inherited attribute, see
lisa.wlgen.rta.SimpleConcreteProperty.DEFAULT_JSON
JSON value to use as a default.
- WloadSequence.FILTER_NONE = True#
Inherited attribute, see
lisa.wlgen.rta.SimpleConcreteProperty.FILTER_NONE
If
True
, no JSON content will be generated when the property value isNone
.
- WloadSequence.JSON_KEY = 'events'#
Inherited attribute, see
lisa.wlgen.rta.WloadPropertyBase.JSON_KEY
Name of the JSON key the property will set.
- WloadSequence.OPTIMIZE_JSON_KEYS = {}#
Inherited attribute, see
lisa.wlgen.rta.ConcretePropertyBase.OPTIMIZE_JSON_KEYS
Configuration driving the JSON optimization, as a
dict(str, set(str))
.
- WloadSequence.REQUIRED_KCONFIG_KEYS = []#
Inherited attribute, see
lisa.wlgen.rta.ConcretePropertyBase.REQUIRED_KCONFIG_KEYS
List of KCONFIG keys that need to be =Y on the target kernel for this property to be usable.
Properties#
- property WloadSequence.json_key#
Inherited property, see
lisa.wlgen.rta.SimpleConcreteProperty.json_key
Name of the JSON key that will be set.
- property WloadSequence.key#
Inherited property, see
lisa.wlgen.rta.PropertyBase.key
Key of the instance.
- property WloadSequence.logger#
Inherited property, see
lisa.utils.Loggable.logger
Convenience short-hand for
self.get_logger()
.
- property WloadSequence.val#
Inherited property, see
lisa.wlgen.rta.WloadPropertyBase.val
Value “payload” of the property.
Methods#
- WloadSequence.HASH_COERCE(x, coerce)#
Inherited method, see
lisa.utils.SimpleHash.HASH_COERCE()
Used to coerce the values of
self.__dict__
to hashable values.
- WloadSequence.__add__(other)#
Inherited method, see
lisa.wlgen.rta.WloadPropertyBase.__add__()
Adding two workloads together concatenates them.
- WloadSequence.__and__(other)#
Inherited method, see
lisa.wlgen.rta.SimpleProperty.__and__()
Combine two instances of the same property together.
- WloadSequence.__await__()#
Inherited method, see
lisa.wlgen.rta.WloadPropertyBase.__await__()
- WloadSequence.__mul__(n)#
Inherited method, see
lisa.wlgen.rta.WloadPropertyBase.__mul__()
Replicate the given workload
n
times.
- WloadSequence.__rmul__(n)#
Inherited method, see
lisa.wlgen.rta.WloadPropertyBase.__rmul__()
- classmethod WloadSequence.check_kconfig(plat_info, strict=True)#
Inherited method, see
lisa.wlgen.rta.ConcretePropertyBase.check_kconfig()
Check whether
plat_info
contains the kernel KCONFIG keys contained inREQUIRED_KCONFIG_KEYS
.
- classmethod WloadSequence.find_cls(key)#
Inherited method, see
lisa.wlgen.rta.PropertyBase.find_cls()
Find which subclass can handle
key
.
- classmethod WloadSequence.from_key(key, val)#
Inherited method, see
lisa.wlgen.rta.PropertyBase.from_key()
Alternative constructor that is available with the same signature for all properties.
- classmethod WloadSequence.get_logger(suffix=None)#
Inherited method, see
lisa.utils.Loggable.get_logger()
Provides a
logging.Logger
named aftercls
.
- classmethod WloadSequence.log_locals(var_names=None, level='debug')#
Inherited method, see
lisa.utils.Loggable.log_locals()
Debugging aid: log the local variables of the calling function.
- classmethod WloadSequence.to_default_json(plat_info, properties)#
Inherited method, see
lisa.wlgen.rta.ConcretePropertyBase.to_default_json()
Similar to
to_json()
but returns the default values for the keys set into_json()
.
- WloadSequence.to_json(plat_info, **kwargs)#
Inherited method, see
lisa.wlgen.rta.ConcretePropertyBase.to_json()
Snippet of JSON content for that property as Python objects.