Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /usr/libexec/tuned/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/libexec/tuned/defirqaffinity.pyc
�
��\c@s�ddlZddlZdZd�Zd�Zd�Zd�Zeed�ZdZxeD]Z	ed	e	>BZq_We
ej�d
ks�e
eejd��dkr�ej
jdejjejd��ejd	�nejdZej�jd
�ZxveD]nZ	ejd	dkr;ed	ee	�>BZqejd	dksaejd	dkred	ee	�>@ZqqWejd	dkr�ee�nee�Zeedd�Zeje�ej�geje�D]-Zejjejjee��r�e^q�Zyej d�Wne!k
r:nXyej d�Wne!k
r_nXdZ"x+eD]#Z	ee	dZ#ee#�ZdZxeD]Z$ed	e$>BZq�WxceD][Z$ejd	dkr�ed	ee$�>BZq�ejd	dkr�ed	ee$�>@Zq�q�Wee�Zy*ee#d�Zeje�ej�Wqme%k
r�Z&ej
jdee	�ee&�f�d	Z"qmXqmWeje"�dS(i����Ns
/proc/irq/cCs�|j�jd�}g}d}xxtt|�ddd�D]Z}t||d�}x>|dkr�|d@r�|j|�n|dL}|d7}qZWq>W|S(Nt,iii����i(tstriptsplittrangetlentinttappend(tlinetfieldstbitmasklisttentrytitmask((s$/usr/libexec/tuned/defirqaffinity.pyR	
s#

cCs�g}d}xX|rfd}|d@}|d|7}|rF|d7}nd}|dL}|j|�qWd}xt|�D]}||7}qzW|S(NitI����s%xRii (Rtreversed(Rtgroupstcommat
cpumaskstrtmtstringR((s$/usr/libexec/tuned/defirqaffinity.pytget_cpumasks	


cCsdtj�dkrdSy2t|d��}|j�}WdQXt|�SWntk
r_dgSXdS(Nitr(tostgetuidtopentreadlineR	tIOError(tfnametfR((s$/usr/libexec/tuned/defirqaffinity.pytparse_def_affinity(s
cCs�d}td}t|�}x|D]}|d|>B}q#W||@rstjjd|||f�tjd�ngtjt�D]-}tjj	tjj
t|��r�|^q�}y|jd�Wntk
r�nXy|jd�Wntk
r�nXx�|D]}}d}t|d}t|�}x|D]}|d|>B}q4W||@rtjjd|||f�tjd�qqWtjd�dS(Nitdefault_smp_affinityis@verify: failed: irqaffinity (%s) inplacemask=%x shouldbemask=%x
t2t0s
/smp_affinity(
tirqpathRtsyststderrtwritetexitRtlistdirtpathtisdirtjointremovet
ValueError(tshouldbemasktinplacemaskRtcpulistRRt
interruptdirs((s$/usr/libexec/tuned/defirqaffinity.pytverify2s6

C



Riiiis%s: invalid arguments
RtaddR*R0twbRR s
/smp_affinitys*Failed to set smp_affinity for IRQ %s: %s
('RR"R!R	RRR0R.RRRtargvtstrR#R$R'tbasenameR%RRRRRRRtfotcloseR&RR(R)R/R*R+tretRtjRte(((s$/usr/libexec/tuned/defirqaffinity.pyt<module>sp	
		
	%
4'

&


C





&

ZeroDay Forums Mini