3
À<×e†
ã @ sr d dl mZ ddlZddlZddlZd dlT ddlZddl j
Z
ddlT ddlm
Z
ejjƒ ZG dd„ dejƒZdS )é )Úbaseé N)Ú*)Úcommandsc sf e Zd ZdZ‡ fdd„Zdd„ Zdd„ Zdd „ Zd
d„ Ze j
fdd
„Zdd„ Zdd„ Z
dd„ Z‡ ZS )ÚSysfsPlugina|
`sysfs`::
Sets various `sysfs` settings specified by the plug-in options.
+
The syntax is `_name_=_value_`, where
`_name_` is the `sysfs` path to use and `_value_` is
the value to write. The `sysfs` path supports the shell-style
wildcard characters (see `man 7 glob` for additional detail).
+
Use this plugin in case you need to change some settings that are
not covered by other plug-ins. Prefer specific plug-ins if they
cover the required settings.
+
.Ignore corrected errors and associated scans that cause latency spikes
====
----
[sysfs]
/sys/devices/system/machinecheck/machinecheck*/ignore_ce=1
----
====
c s$ t t| ƒj||Ž d| _tƒ | _d S )NT)Úsuperr Ú__init__Z_has_dynamic_optionsr Ú_cmd)ÚselfÚargsÚkwargs)Ú __class__© ú"/usr/lib/python3.6/plugin_sysfs.pyr ' s zSysfsPlugin.__init__c C s4 d|_ d|_tdd„ t|jjƒ ƒD ƒƒ|_i |_d S )NFTc S s$ g | ]}t jj|d ƒ|d f‘qS )r r )ÚosÚpathÚnormpath)Ú.0Ú key_valuer r r ú