lisa.wlgen.rta.NUMAMembindProperty#
- class lisa.wlgen.rta.NUMAMembindProperty(nodes)[source]#
Bases:
AndProperty,SimpleConcretePropertyNUMA node membind property.
Classes
__class__inheritedMetaclass for properties.
Attributes
Name of the JSON key the property will set.
Subclasses can override this attribute so that
PropertyBase.from_key()knows that it can call their_from_key()method for that key.Configuration driving the JSON optimization, as a
dict(str, set(str)).DEFAULT_JSONinheritedJSON value to use as a default.
FILTER_NONEinheritedIf
True, no JSON content will be generated when the property value isNone.REQUIRED_KCONFIG_KEYSinheritedList of KCONFIG keys that need to be =Y on the target kernel for this property to be usable.
Properties
json_keyinheritedName of the JSON key that will be set.
keyinheritedKey of the instance.
loggerinheritedConvenience short-hand for
self.get_logger().valinheritedValue “payload” of the property.
Methods
HASH_COERCE()inheritedUsed to coerce the values of
self.__dict__to hashable values.__and__()inheritedCombine values of the properties using
_SEMIGROUP_OP(), except when one of the value isNone, in which case the other value is used as is and wrapped into an instance usingfrom_key().check_kconfig()inheritedCheck whether
plat_infocontains 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.Loggernamed 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#
- NUMAMembindProperty.__class__#
alias of
PropertyMeta
Attributes#
- NUMAMembindProperty.JSON_KEY = 'nodes_membind'#
Name of the JSON key the property will set.
Note
If it needs to be dynamically chose, see
json_key.
- NUMAMembindProperty.KEY = 'numa_nodes_membind'#
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.
- NUMAMembindProperty.OPTIMIZE_JSON_KEYS = {'nodes_membind': {}}#
Configuration driving the JSON optimization, as a
dict(str, set(str)).This is a dictionary mapping JSON key names to set of “barrier” JSON keys. When successive phases of a given task share the same value for the keys of that dictionary, they will be removed in the later phases since rt-app settings are persistent across phases. When any of the barrier key listed in the set has a change in its value, it will be considered as an optimization barrier and the value will be set again, even if it means repeating the same value as earlier.
- NUMAMembindProperty.DEFAULT_JSON = None#
Inherited attribute, see
lisa.wlgen.rta.SimpleConcreteProperty.DEFAULT_JSONJSON value to use as a default.
- NUMAMembindProperty.FILTER_NONE = True#
Inherited attribute, see
lisa.wlgen.rta.SimpleConcreteProperty.FILTER_NONEIf
True, no JSON content will be generated when the property value isNone.
- NUMAMembindProperty.REQUIRED_KCONFIG_KEYS = []#
Inherited attribute, see
lisa.wlgen.rta.ConcretePropertyBase.REQUIRED_KCONFIG_KEYSList of KCONFIG keys that need to be =Y on the target kernel for this property to be usable.
Properties#
- property NUMAMembindProperty.json_key#
Inherited property, see
lisa.wlgen.rta.SimpleConcreteProperty.json_keyName of the JSON key that will be set.
- property NUMAMembindProperty.key#
Inherited property, see
lisa.wlgen.rta.PropertyBase.keyKey of the instance.
- property NUMAMembindProperty.logger#
Inherited property, see
lisa.utils.Loggable.loggerConvenience short-hand for
self.get_logger().
- property NUMAMembindProperty.val#
Inherited property, see
lisa.wlgen.rta.SimpleProperty.valValue “payload” of the property.
Methods#
- NUMAMembindProperty.HASH_COERCE(x, coerce)#
Inherited method, see
lisa.utils.SimpleHash.HASH_COERCE()Used to coerce the values of
self.__dict__to hashable values.
- NUMAMembindProperty.__and__(other)#
Inherited method, see
lisa.wlgen.rta.AndProperty.__and__()Combine values of the properties using
_SEMIGROUP_OP(), except when one of the value isNone, in which case the other value is used as is and wrapped into an instance usingfrom_key().
- classmethod NUMAMembindProperty.check_kconfig(plat_info, strict=True)#
Inherited method, see
lisa.wlgen.rta.ConcretePropertyBase.check_kconfig()Check whether
plat_infocontains the kernel KCONFIG keys contained inREQUIRED_KCONFIG_KEYS.
- classmethod NUMAMembindProperty.find_cls(key)#
Inherited method, see
lisa.wlgen.rta.PropertyBase.find_cls()Find which subclass can handle
key.
- classmethod NUMAMembindProperty.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 NUMAMembindProperty.get_logger(suffix=None)#
Inherited method, see
lisa.utils.Loggable.get_logger()Provides a
logging.Loggernamed aftercls.
- classmethod NUMAMembindProperty.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 NUMAMembindProperty.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().
- NUMAMembindProperty.to_json(plat_info, **kwargs)#
Inherited method, see
lisa.wlgen.rta.ConcretePropertyBase.to_json()Snippet of JSON content for that property as Python objects.