File manager - Edit - /usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/process.cpython-310.pyc
Back
o -�_g* � @ s: d dl Z d dlZd dlmZmZmZ G dd� dee�ZdS )� N)�Plugin�IndependentPlugin� PluginOptc @ sl e Zd ZdZdZdZedddd�edd d d�edd dd�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 �numprocsi z*number of process to collect /proc data ofc C sr d}d}d}|d7 }| � g d�� dd� | �d�D �}| �d �r)|d | �d �� }|D ] }| � d |� d�d |� d�d |� d �d |� d�d |� d�g� q+| �d�rV| � d� | jddg d�dd� | jddd� | �d�rw| jdddddd� | �d�r�| jd ddd!� | jg d"�d#d$� | �|� d%|� �|� d%|� �g� | �d&�r�| jd'| �d&�� �d(d)� | �d*d+g� d S ),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/c S s g | ] }t �d |�r|�qS )z[0-9])�re�match)�.0�p� r �</usr/lib/python3/dist-packages/sos/report/plugins/process.py� <listcomp>0 s z!Process.setup.<locals>.<listcomp>z/procr z/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)r r zlsof +M -n -l -c ''� �2 )r �timeoutr! r r z 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�procr r r �setup! s\ � � � �� �� �z Process.setupc C s | � d��{}| jjjs|�d� W d � d S | �d�}i }i }|d dks;|�d|d � �� W d � d S |d �� D ],}|�� �� }|d }|d }| � |�sWqA||vrd| jj� |�||<