Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/process.cpython-310.pyc
o

i��d{�@s:ddlZddlZddlmZmZmZGdd�dee�ZdS)�N)�Plugin�IndependentPlugin�	PluginOptc
@sleZdZdZdZdZedddd�edd	d
d�edd	dd�ed
dedd�eddedd�gZdd�Z	dd�Z
dS)�Processzprocess information�process)�system�lsofTzcollect info on all open files)�default�desc�lsof-threadsFz,collect threads' open file info if supported�smapszcollect /proc/*/smaps files�samples�z"number of iotop samples to collect)r	�val_typer
�numprocsiz*number of process to collect /proc data ofc	CsXd}d}d}|d7}|�ddg�dd�|�d	�D�}|�d
�r)|d|�d
��}|D]}|�d|d|d
|d|d|g�q+|�d�rL|�d�|jddgd�dd�|jddd�|�d�rm|jdddddd�|�d�rz|jd ddd!�|jd"d#gd$d%�|�d&||fd&||fg�|�d'�r�|jd(|�d'�d)d*�|�d+d,g�dS)-Nzps axoz3pid,ppid,user,group,lwp,nlwp,start_time,comm,cgroupz2flags,state,uid,pid,ppid,pgid,sid,cls,pri,addr,sz,zwchan:20,lstart,tty,time,cmdz/proc/sched_debugz
/proc/statcSsg|]
}t�d|�r|�qS)z[0-9])�re�match)�.0�p�r�</usr/lib/python3/dist-packages/sos/report/plugins/process.py�
<listcomp>-sz!Process.setup.<locals>.<listcomp>z/procrz/proc/%s/statusz/proc/%s/cpusetz/proc/%s/oom_*z/proc/%s/stackz/proc/%s/limitsrz/proc/[0-9]*/smapsz
ps auxwwwm�ps)�ps_aux�ps_auxww�	ps_auxwww�
ps_auxwwwm�	ps_auxcww�)�root_symlink�tags�priorityz
pstree -lp�pstree)rrzlsof +M -n -l -c ''��2)r�timeoutr!r rz
lsof +M -n -l)r%r!z	ps alxwwwzps -elfLT)�
cmd_as_tagz%s %sr
ziotop -b -o -d 0.5 -t -n %s�d)r!z#pidstat -p ALL -rudvwsRU --human -hzpidstat -tl)�
add_copy_spec�listdir�
get_option�add_cmd_output)�self�ps_axo�
ps_group_opts�
ps_sched_opts�procs�procrrr�setup!sh�
�

�
�
��

�
��
�z
Process.setupcCs|�d��{}|jjjs|�d�	Wd�dS|�d�}i}i}|ddks;|�d|d���	Wd�dS|d��D],}|����}|d}|d}|�	|�sWqA||vrd|jj�
|�||<|||d	�||<qA|�tj|dd
��Wd�dS1s�wYdS)Nzpids_to_packages.jsonz/Package manager not configured for path querieszps --no-headers aex�statusrzUnable to get process list: �output�)�path�package)�indent)
�collection_file�policy�package_manager�query_path_command�write�exec_cmd�
splitlines�strip�split�path_exists�pkg_by_path�json�dumps)r,�pfile�_ps�pidpkg�pathsr1�pidr6rrr�collect]s.

�
�

"�zProcess.collectN)�__name__�
__module__�__qualname__�
short_desc�plugin_name�profilesr�int�option_listr2rKrrrrrs$����<r)rDr�sos.report.pluginsrrrrrrrr�<module>s

Spamworldpro Mini