https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
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

-�_g*�@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
Csrd}d}d}|d7}|�gd��dd�|�d�D�}|�d	�r)|d|�d	��}|D] }|�d
|�d�d
|�d�d
|�d
�d
|�d�d
|�d�g�q+|�d�rV|�d�|jddgd�dd�|jddd�|�d�rw|jdddddd�|�d�r�|jd ddd!�|jgd"�d#d$�|�|�d%|��|�d%|��g�|�d&�r�|jd'|�d&���d(d)�|�d*d+g�dS),Nzps axoz3pid,ppid,user,group,lwp,nlwp,start_time,comm,cgroupz3flags,state,uid,pid,ppid,pgid,sid,cls,pri,psr,addr,zsz,wchan:20,lstart,tty,time,cmd)z/proc/sched_debugz
/proc/statz/sys/kernel/debug/sched/debugz /sys/kernel/debug/sched/featuresz/sys/kernel/sched_ext/cSsg|]
}t�d|�r|�qS)z[0-9])�re�match)�.0�p�r�</usr/lib/python3/dist-packages/sos/report/plugins/process.py�
<listcomp>0sz!Process.setup.<locals>.<listcomp>z/procrz/proc/z/statusz/cpusetz/oom_*z/stackz/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 alxwwwz
ps auxfwwwzps -elfLT)�
cmd_as_tag� r
ziotop -b -o -d 0.5 -t -n �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!s\





�

�
�

��
��
�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�pathsr2�pidr7rrr�collectbs.

�
�

"�zProcess.collectN)�__name__�
__module__�__qualname__�
short_desc�plugin_name�profilesr�int�option_listr3rLrrrrrs$����Ar)rEr�sos.report.pluginsrrrrrrrr�<module>s

https://t.me/RX1948 - 2025