+
     Gi  c                   s    ^ RI t ^ RIt^RIHt ^ RIHt ^ RIHt ]P                  ! 4       t	]! 4       t
Rt ! R R]P                  4      tR# )i    N)base)commands)logsz/sys/devices/system/cpu/c                   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	# )package2cpusz1
Provides cpu device list for a package (socket)
c                s0   < \         \        V `  R ^ 4       R# )r   N)superr   __init__)self	__class__s   &S/usr/lib/python3.14/site-packages/tuned/profiles/functions/function_package2cpus.pyr   Zpackage2cpus.__init__   s    d$^Q7    c           	     sp  < \         \        V `  V4      '       g   R # \        V4      ^ 8:  d   R #  \        P
                  ! \        P                  ! \        4      R4      p. pT F  p\        T,           R,           p\        P                  P                  T4      '       g   \        P                  RT,          4       KZ  \        P                  T4      p \!        T4      pT F(  p \!        T4      p	Yy8X  d   TP%                  T4       K(  K*  	  K  	  \        T4      ^ 8  d   RP'                  T4      # R #   \         d     R # i ; i  \"         d$    \        P                  RT: RT: R24        EK  i ; i  \"         d5    \        P                  ! Yh4      '       d   TP%                  T4        K   K  i ; i)Nz	cpu[0-9]*z/topology/physical_package_idzFile '%s' does not existzInvalid package id 'z' for cpu 'Z'Z,)r   r   executeZlenfnmatchZfilterosZlistdir	SYSFS_DIRZOSErrorZpathZexistslogZwarningcmdZ	read_fileZintZ
ValueErrorZappendZjoin)r   ZargsZall_cpusZdevicesZcpuZfZvalueZ
package_idZpackage_patternZthis_package_idr   s   &&        r   r
   Zpackage2cpus.execute   se   	|T	*4	0	0
Y!^
nnRZZ	2K@8 'c3881
''..

KK*Q./==5UJ
 ?+_
 	%nnS 	&  0 "'lQ.'	8D8; 
 
  KK%EF  //nnS 	0s5   /D3 E$E63EE)E32E368F54F5 )
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     8&9 &9r	   r   )r   r   Z r    Ztuned.utils.commandsr   Ztunedr   Zgetr   r   r   ZFunctionr   r   r	   r   <module>r      s;    	   ) 
hhjj&	.94== .9r	   