MINI MINI MANI MO
ó
©=[c @ sd d d l Z d d l Z d d l m Z d d l m Z e j j ƒ Z d e j
f d „ ƒ YZ d S( iÿÿÿÿNi ( t base( t commandst cpulist_onlinec B s e Z d Z d „ Z d „ Z RS( sW
Checks whether CPUs from list are online, returns list containing
only online CPUs
c C s t t | ƒ j d d ƒ d S( NR i ( t superR t __init__( t self( ( sT /usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_online.pyR
s c C s t t | ƒ j | ƒ s d S| j j d j | ƒ ƒ } | j j | j j d ƒ ƒ } d j d „ t | ƒ j t | ƒ ƒ Dƒ ƒ S( Nt ,s /sys/devices/system/cpu/onlinec s s | ] } t | ƒ Vq d S( N( t str( t .0t v( ( sT /usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_online.pys <genexpr> s (
R R t executet Nonet _cmdt cpulist_unpackt joint read_filet sett intersection( R t argst cpust online( ( sT /usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_online.pyR
s
( t __name__t
__module__t __doc__R R
( ( ( sT /usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_online.pyR s ( t ost
tuned.logst tunedt R t tuned.utils.commandsR t logst gett logt FunctionR ( ( ( sT /usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_online.pyt <module> s
OHA YOOOO