/usr/lib/python3.6/site-packages/tuned/plugins
NameSizeModeActions
instance/-0755rm
__pycache__/-0755rm
base.py224170644editdlrm
decorators.py9830644editdlrm
exceptions.py990644editdlrm
hotplug.py39280644editdlrm
plugin_acpi.py24460644editdlrm
plugin_audio.py32090644editdlrm
plugin_bootloader.py259140644editdlrm
plugin_cpu.py282180644editdlrm
plugin_disk.py170490644editdlrm
plugin_eeepc_she.py29470644editdlrm
plugin_irqbalance.py35540644editdlrm
plugin_modules.py49250644editdlrm
plugin_mounts.py55800644editdlrm
plugin_net.py232520644editdlrm
plugin_rtentsk.py11090644editdlrm
plugin_scheduler.py562550644editdlrm
plugin_script.py38520644editdlrm
plugin_scsi_host.py31530644editdlrm
plugin_selinux.py23200644editdlrm
plugin_service.py107210644editdlrm
plugin_sysctl.py69060644editdlrm
plugin_sysfs.py26940644editdlrm
plugin_systemd.py54280644editdlrm
plugin_uncore.py47230644editdlrm
plugin_usb.py20150644editdlrm
plugin_video.py38070644editdlrm
plugin_vm.py35610644editdlrm
repository.py15300644editdlrm
__init__.py490644editdlrm
Edit: /usr/lib/python3.6/site-packages/tuned/plugins/decorators.py (983B)
__all__ = ["command_set", "command_get", "command_custom"] # @command_set("scheduler", per_device=True) # def set_scheduler(self, value, device): # set_new_scheduler # # @command_get("scheduler") # def get_scheduler(self, device): # return current_scheduler # # @command_set("foo") # def set_foo(self, value): # set_new_foo # # @command_get("foo") # def get_foo(self): # return current_foo # def command_set(name, per_device=False, priority=0): def wrapper(method): method._command = { "set": True, "name": name, "per_device": per_device, "priority": priority, } return method return wrapper def command_get(name): def wrapper(method): method._command = { "get": True, "name": name, } return method return wrapper def command_custom(name, per_device=False, priority=0): def wrapper(method): method._command = { "custom": True, "name": name, "per_device": per_device, "priority": priority, } return method return wrapper