+
     Gi  c                   s    ^ RI t ^ RIt^RIHt ]P
                  P                  4       t ! R R]P                  4      t	R# )i    N)basec                   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	# )lscpu_checka  
Checks regexes against the output of lscpu. Accepts arguments in the
following form: REGEX1, STR1, REGEX2, STR2, ...[, STR_FALLBACK]
If REGEX1 matches something in the output it expands to STR1,
if REGEX2 matches it expands to STR2. It stops on the first match,
i.e. if REGEX1 matches, no more regexes are processed. If none
regex matches it expands to STR_FALLBACK. If there is no fallback,
it expands to empty string.
c                s2   < \         \        V `  R ^ ^4       R# )r   N)superr   __init__)self	__class__s   &R/usr/lib/python3.14/site-packages/tuned/profiles/functions/function_lscpu_check.pyr   Zlscpu_check.__init__   s    T#M1a8    c                s  < \         \        V `  V4      '       g   R # V P                  P                  R4      w  r#\	        ^ \        V4      ^4       F_  pV^,           \        V4      8  g   K  \        P                  ! W,          V\        P                  4      '       g   KP  W^,           ,          u # 	  \        V4      ^,          '       d
   VR,          # R# )Nlscpu i)	r   r   executeZ_cmdZrangeZlenreZsearchZ	MULTILINE)r   ZargsZ_r   Zir   s   &&   r   r
   Zlscpu_check.execute   s    	{D	)$	/	/
YYw'(!CIq!a!ec$i	yy%..QK " 	Y]]
r(?
r    )
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     9 r   r   )
r   Z
tuned.logsZtunedr	   r    ZlogsZgetZlogZFunctionr   r   r   r   <module>r      s.    	  jjnn$-- r   