MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.17.155.142
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /backup3/../../sbin/../libexec/../libexec/tuned/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //backup3/../../sbin/../libexec/../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





&

MMCT - 2023