lisa.trace.DmesgCollector#
- class lisa.trace.DmesgCollector(target, *, empty_buffer=False, facility='kern', level='debug', output_path=None, parse_error=None)[source]#
Bases:
CollectorBaseWrapper around
devlib.collector.dmesg.DmesgCollector.It installs the
dmesgtool automatically on the target upon creation, so we know what version is being is used.Attributes
Name of the collector class.
Sequence of tools to install on the target when using the collector.
Properties
loggerinheritedConvenience short-hand for
self.get_logger().Methods
__enter__()inherited__exit__()inherited__getattr__inheritedDelegate attribute lookup to a private attribute.
get_data()inheritedSimilar to
devlib.collector.CollectorBase.get_data()but takes the path directly as a parameter in order to disallow representing an invalid state where no path has been set.get_logger()inheritedProvides a
logging.Loggernamed aftercls.log_locals()inheritedDebugging aid: log the local variables of the calling function.
Attributes#
- DmesgCollector.LOG_LEVELS = ['emerg', 'alert', 'crit', 'err', 'warn', 'notice', 'info', 'debug']#
- DmesgCollector.NAME = 'dmesg'#
Name of the collector class.
- DmesgCollector.TOOLS = ['dmesg']#
Sequence of tools to install on the target when using the collector.
Properties#
- property DmesgCollector.logger#
Inherited property, see
lisa.utils.Loggable.loggerConvenience short-hand for
self.get_logger().
Methods#
- DmesgCollector.__enter__()#
Inherited method, see
lisa.trace.CollectorBase.__enter__()
- DmesgCollector.__exit__(*args, **kwargs)#
Inherited method, see
lisa.trace.CollectorBase.__exit__()
- DmesgCollector.__getattr__(attr)#
Inherited method, see
lisa.trace.CollectorBase.__getattr__Delegate attribute lookup to a private attribute.
- DmesgCollector.get_data(path=None)#
Inherited method, see
lisa.trace.CollectorBase.get_data()Similar to
devlib.collector.CollectorBase.get_data()but takes the path directly as a parameter in order to disallow representing an invalid state where no path has been set.
- classmethod DmesgCollector.get_logger(suffix=None)#
Inherited method, see
lisa.utils.Loggable.get_logger()Provides a
logging.Loggernamed aftercls.
- classmethod DmesgCollector.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.