a ”ˆ«hã@s ddlmZGdd„deƒZdS)éNc@sðeZdZdZdd„Zedd„ƒZedd„ƒZedd „ƒZej d d „ƒZed d „ƒZ ed d„ƒZ edd„ƒZ edd„ƒZ edd„ƒZedd„ƒZedd„ƒZedd„ƒZedd„ƒZedd„ƒZdd „Zd!d"„Zd#d$„Zejfd%d&„Zd'd(„Zd)S)*ÚInstancez c CsV||_||_||_||_||_||_||_d|_||_d|_ d|_ t ƒ|_ t ƒ|_ dS)NTF)Ú_pluginÚ_nameÚ_devices_expressionÚ_devices_udev_regexÚ _script_preÚ _script_postÚ_optionsÚ_activeÚ _priorityÚ_has_static_tuningÚ_has_dynamic_tuningÚsetÚ_assigned_devicesÚ_processed_devices) ÚselfÚpluginÚnameÚpriorityÚdevices_expressionÚdevices_udev_regexÚ script_preÚ script_postÚoptions©rúC/usr/lib/python3.9/site-packages/tuned/plugins/instance/instance.pyÚ__init__szInstance.__init__cCs|jS©N)r©rrrrrszInstance.plugincCs|jSr)rrrrrrsz Instance.namecCs|jS)z>The instance performs some tuning (otherwise it is suspended).©r rrrrÚactive!szInstance.activecCs ||_dSrr)rÚvaluerrrr &scCs|jSr)r rrrrr*szInstance.prioritycCs|jSr)rrrrrr.szInstance.devices_expressioncCs|jSr)rrrrrÚassigned_devices2szInstance.assigned_devicescCs|jSr)rrrrrÚprocessed_devices6szInstance.processed_devicescCs|jSr)rrrrrr:szInstance.devices_udev_regexcCs|jSr)rrrrrr>szInstance.script_precCs|jSr)rrrrrrBszInstance.script_postcCs|jSr)r rrrrrFszInstance.optionscCs|jSr)r rrrrÚhas_static_tuningJszInstance.has_static_tuningcCs|jSr)r rrrrÚhas_dynamic_tuningNszInstance.has_dynamic_tuningcCs|j |¡dSr)rZinstance_apply_tuningrrrrÚ apply_tuningTszInstance.apply_tuningcCs|j ||¡Sr)rZinstance_verify_tuning)rZignore_missingrrrÚ verify_tuningWszInstance.verify_tuningcCs|j |¡dSr)rZinstance_update_tuningrrrrÚ update_tuningZszInstance.update_tuningcCs|j ||¡dSr)rZinstance_unapply_tuning)rZrollbackrrrÚunapply_tuning]szInstance.unapply_tuningcCs| ¡|j |¡dSr)r)rZdestroy_instancerrrrÚdestroy`szInstance.destroyN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rÚpropertyrrr Úsetterrrr"r#rrrrr$r%r&r'r(ÚconstsZ ROLLBACK_SOFTr)r*rrrrrsF              r)Z tuned.constsr1ÚobjectrrrrrÚs