ó ±2öYc@s`ddlZddlZddlZddlmZejjƒZdej fd„ƒYZ dS(iÿÿÿÿN(tcommandstcpulist_onlinecBs eZdZd„Zd„ZRS(sW Checks whether CPUs from list are online, returns list containing only online CPUs cCs t|j|ƒjddƒdS(NRi(tsupert __class__t__init__(tself((sT/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_online.pyR scCs„t|j|ƒj|ƒsdS|jjdj|ƒƒ}|jj|jjdƒƒ}djd„t|ƒj t|ƒƒDƒƒS(Nt,s/sys/devices/system/cpu/onlinecss|]}t|ƒVqdS(N(tstr(t.0tv((sT/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_online.pys s( RRtexecutetNonet_cmdtcpulist_unpacktjoint read_filetsett intersection(Rtargstcpustonline((sT/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_online.pyR s (t__name__t __module__t__doc__RR (((sT/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_online.pyRs ( tost tuned.logsttunedtbasettuned.utils.commandsRtlogstgettlogtFunctionR(((sT/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_online.pyts