+
    i*  c                   sB    ^ RI t ^ RIt^ RIHtHtHt  ! R R]]4      tR# )i    N)PluginIndependentPlugin	PluginOptc                   s   a  ] tR t^t o RtRtRt]! RRRR7      ]! RRR	R7      ]! R
RRR7      ]! R^]RR7      ]! RR]RR7      .t	R t
R tRtV tR# )Processzprocess informationZprocesslsofTzcollect info on all open files)defaultdesclsof-threadsFz,collect threads' open file info if supportedsmapszcollect /proc/*/smaps filessamplesz"number of iotop samples to collect)r   Zval_typer   numprocsi   z*number of process to collect /proc data ofc           
     s   R pRpRpVR,          pV P                  . R$O4       V P                  R4       Uu. uF$  p\        P                  ! RV4      '       g   K"  VNK&  	  ppV P	                  R4      '       d   VRV P	                  R4       pV F-  pV P                  RV R	2RV R
2RV R2RV R2RV R2.4       K/  	  V P	                  R4      '       d   V P                  R4       V P                  RR. R%O^R7       V P                  RRR7       V P	                  R4      '       d   V P                  RR^^2RR7       V P	                  R4      '       d   V P                  R^^2R7       V P                  . R&ORR7       V P                  V RV 2V RV 2.4       V P	                  R4      '       d&   V P                  R V P	                  R4       2^dR!7       V P                  R"R#.4       R# u upi )'zps axoz3pid,ppid,user,group,lwp,nlwp,start_time,comm,cgroupz3flags,state,uid,pid,ppid,pgid,sid,cls,pri,psr,addr,zsz,wchan:20,lstart,tty,time,cmdz/procz[0-9]r
   Nz/proc/z/statusz/cpusetz/oom_*z/stackz/limitsr   z/proc/[0-9]*/smapsz
ps auxwwwmZps)root_symlinktagspriorityz
pstree -lpZpstree)r   r   zlsof +M -n -l -c '')r   timeoutr   r   r   zlsof +M -n -l)r   r   T)Z
cmd_as_tagZ r	   ziotop -b -o -d 0.5 -t -n )r   z#pidstat -p ALL -rudvwsRU --human -hzpidstat -tl)z/proc/sched_debugz
/proc/statz/sys/kernel/debug/sched/debugz /sys/kernel/debug/sched/featuresz/sys/kernel/sched_ext/)Zps_auxZps_auxwwZ	ps_auxwwwZ
ps_auxwwwmZ	ps_auxcww)z	ps alxwwwz
ps auxfwwwzps -elfL)Zadd_copy_specZlistdirreZmatchZ
get_optionZadd_cmd_output)selfZps_axoZps_group_optsZps_sched_optsZpZprocsprocs   &      ?/usr/lib/python3.14/site-packages/sos/report/plugins/process.pysetupZProcess.setup!   s5   MM:: 
 	 !LL1J1qRXXgq5I1J??:&&64??:67EDg&g&f%f%g&    ??7##34Lt"=%& 	 	(
 	Lx@??6"" 5F(*Rf   F ??>**bI 
 	 	 	 	ha'ha'
 	
 ??9%% ;#'??9#=">!@),   . 	1
 	[ Ks   G-G-c           	     s   V P                  R 4      ;_uu_ 4       pV P                  P                  P                  '       g   VP	                  R4        RRR4       R# V P                  R4      p/ p/ pVR,          ^ 8X  g'   VP	                  RVR,           24        RRR4       R# VR,          P                  4        F  pVP                  4       P                  4       pV^ ,          pV^,          pV P                  V4      '       g   KL  Wt9  d(   V P                  P                  P                  V4      WG&   RVRWG,          /W6&   K  	  VP	                  \        P                  ! V^R	7      4       RRR4       R#   + '       g   i     R# ; i)
zpids_to_packages.jsonz/Package manager not configured for path queriesNzps --no-headers aexZstatuszUnable to get process list: ZoutputpathZpackage)Zindent)Zcollection_fileZpolicyZpackage_managerZquery_path_commandZwriteZexec_cmdZ
splitlinesZstripZsplitZpath_existsZpkg_by_pathjsonZdumps)r   ZpfileZ_psZpidpkgZpathsr   Zpidr   s   &       r   collectZProcess.collectb   s=   !!"9::e;;..AAAMN ;: -- 56CFEx=A%:3x=/JK ;: H002zz|))+1gAw''--$"&++"="="I"I$"OEK%tYD 3 KK

6!45) ;:::s   9E9?E9&C	E99F
	 N)Zsystem)Z__name__Z
__module__Z__qualname__Z__firstlineno__Z
short_descZplugin_nameZprofilesr   ZintZoption_listr   r   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r      sz     &JKH 	&$-MN.%F	H'5/LM)R#;	=*dSC	E	K?B6 6    r   )r   r   Zsos.report.pluginsr    r   r   r   r   r   r   <module>r      s$     	 C Ch6f' h6r   