403Webshell
Server IP : 156.238.232.47  /  Your IP : 216.73.216.150
Web Server : nginx/1.25.3
System : Linux C202504152095410 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : www ( 1000)
PHP Version : 8.3.25
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/libexec/tuned/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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





&

Youez - 2016 - github.com/yon3zu
LinuXploit