3 Psz Manager.create..)keyz2skipping plugin '%s', not supported on your systemzfailed to initialize plugin %szcreating '%s' (%s))*listitemsZenabledlogdebugrr"r$ setdefaultr intappendsort collections OrderedDictpoptypercreater tunedr exceptionsZNotSupportedPluginExceptioninfo ExceptionerrorZ exceptionnameZcreate_instanceZdevicesZdevices_udev_regexZ script_preZ script_postpluginZ init_devicesZassign_free_devicesZinitialize_instancer Zstart_processing_eventsr extend) rZinstances_configZinstance_info_listZ instance_nameZ instance_infoZplugins_by_nameZ plugin_nameZnoner;erZ new_instanceinstancerrrr4?s\             zManager.createcOsXy |||Stk rR}z,tj}tjd|t|ftj||Sd}~XnXdS)Nz"BUG: Unhandled exception in %s: %s)r8 traceback format_excr*r9str)rZcallerZexc_retfargskwargsr=Ztracerrr _try_callus  zManager._try_callcCsx2|jD](}tjd|j|jdd|jj|qWx.|jD]$}tjd|j|jdd|jqr;rrrrFs    zManager.destroy_allcCs4x.|jjD]"}tjd||jdd|jq WdS)Nzupdating monitor %supdate_monitors)rZmonitorsr*r+rEupdate)rZmonitorrrrrGszManager.update_monitorscCs$x|jD]}|jdd|jqWdS)N start_tuning)r rEZ apply_tuning)rr>rrrrIs zManager.start_tuningcCs6d}x,|jD]"}|jdd|j|}|dkr d}q W|S)NT verify_tuningF)r rErJ)rZignore_missingretr>resrrrrJs  zManager.verify_tuningcCs$x|jD]}|jdd|jqWdS)N update_tuning)r rErM)rr>rrrrMs zManager.update_tuningcCs4|jjx$t|jD]}|jdd|j|qWdS)N stop_tuning)r Zstop_processing_eventsreversedr rEZunapply_tuning)rZrollbackr>rrrrNs zManager.stop_tuning)N)__name__ __module__ __qualname____doc__rpropertyrrrrr"r4rErFrGrIrJrMrZ ROLLBACK_SOFTrN __classcell__rr)rrrs     6    )r0r rr?Ztuned.exceptionsr5Z tuned.logsZtuned.plugins.exceptionsZ tuned.constsrZtuned.utils.global_configrZtuned.utils.commandsrZlogsrr*__all__objectrrrrrs