+
     Gi  c                   s    ^ RI t ^ RIt^RIHt ^ RIHt ]P                  P                  4       t	 ! R R]P                  4      tR# )i    N)base)commandsc                   sB   a a ] tR t^t oRtV 3R ltV 3R ltRtVtV ;t	# )cpulist_onlinezT
Checks whether CPUs from list are online, returns list containing
only online CPUs
c                s0   < \         \        V `  R ^ 4       R# )r   N)superr   __init__)self	__class__s   &U/usr/lib/python3.14/site-packages/tuned/profiles/functions/function_cpulist_online.pyr   Zcpulist_online.__init__   s    &'7;    c                s.  <a \         \        V `  V4      '       g   R # V P                  P	                  RP                  V4      4      pV P                  P	                  V P                  P                  R4      4      oRP                  V3R lV 4       4      # )NZ,z/sys/devices/system/cpu/onlinec              3   sJ   <"   T F  qS9   g   K  \        V4      x  K  	  R # 5i)N)Zstr)Z.0Zvonlines   & r   Z	<genexpr>Z)cpulist_online.execute.<locals>.<genexpr>   s     6$Qv+&#a&&$s   ##)r   r   executeZ_cmdZcpulist_unpackZjoinZ	read_file)r   ZargsZcpusr	   r   s   && @r   r
   Zcpulist_online.execute   sm    	~t	,T	2	2
		!	!#((4.	1$99##DII$7$78X$YZ&	6$6	66r    )
Z__name__Z
__module__Z__qualname__Z__firstlineno__Z__doc__r   r
   Z__static_attributes__Z__classdictcell__Z__classcell__)r   Z__classdict__s   @@r   r   r      s     <7 7r   r   )ZosZ
tuned.logsZtunedZ r    Ztuned.utils.commandsr   ZlogsZgetZlogZFunctionr   r   r   r   <module>r      s1    	   )jjnn7T]] 7r   