HEX
Server: Apache
System: Linux insrv.serversdaddy.com 5.14.0-362.24.2.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Mar 30 14:11:54 EDT 2024 x86_64
User: jsaha (1066)
PHP: 8.3.6
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3.9/site-packages/sos/report/plugins/__pycache__/kernel.cpython-39.pyc
a

^��c2�@s2ddlmZmZmZddlZGdd�dee�ZdS)�)�Plugin�IndependentPlugin�	PluginOptNc@sHeZdZdZdZdZdZdZdZe	ddd	d
�e	dddd
�gZ
d
d�ZdS)�Kernela�The Kernel plugin is aimed at collecting general information about
    the locally running kernel. This information should be distribution-neutral
    using commands and filesystem collections that are ubiquitous across
    distributions.

    Debugging information from /sys/kernel/debug is collected by default,
    however care is taken so that these collections avoid areas like
    /sys/kernel/debug/tracing/trace_pipe which would otherwise cause the
    sos collection attempt to appear to 'hang'.

    The 'trace' option will enable the collection of the
    /sys/kernel/debug/tracing/trace file specfically, but will not change the
    behavior stated above otherwise.
    zLinux kernel�kernel)�systemZhardwarer)zkernel$z/sys/module�
with-timerFzgather /proc/timer* statistics)�defaultZdesc�tracez+gather /sys/kernel/debug/tracing/trace filec)Cs�|jdddd�|jdddd�|�d�z*|�|j�}|jdd�|�dd	d
�Wn"tyv|�d|j�Yn0gd�}g}|D]}|�t�|��q�|r�|�d
d�|��|jddgdd�|jddd�d}|�gd��|�	dddddddddd d!d"d#d$d%|j
��d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:|d;|d<d=g'�|�d>��rh|�	d?�|�d@��s~|�dA�dS)BNzuname -a�uname)Zroot_symlink�tagsZlsmodzls -lt /sys/kernel/slabzmodinfo � Zmodinfo_ALL_MODULESZmodinfo_all)Zsuggest_filenamerzcould not list %s)z/lib/modules/*/extraz/lib/modules/*/updatesz/lib/modules/*/weak-updateszfind %s -lsZdmesgzdkms statusT)Z
cmd_as_tagz	sysctl -aZsysctl)rz-/sys/devices/system/clocksource/clocksource0/)z$/sys/kernel/debug/tracing/trace_pipez /sys/kernel/debug/tracing/READMEz$/sys/kernel/debug/tracing/trace_statz!/sys/kernel/debug/tracing/per_cpuz /sys/kernel/debug/tracing/eventsz%/sys/kernel/debug/tracing/free_bufferz&/sys/kernel/debug/tracing/trace_markerz*/sys/kernel/debug/tracing/trace_marker_rawz</sys/kernel/debug/tracing/instances/*/per_cpu/*/snapshot_rawz;/sys/kernel/debug/tracing/instances/*/per_cpu/*/trace_pipe*z0/sys/kernel/debug/tracing/instances/*/trace_pipez
/proc/modulesz/proc/sys/kernel/random/boot_idz/sys/module/*/parametersz/sys/module/*/initstatez/sys/module/*/refcntz/sys/module/*/taintz/sys/module/*/versionz/sys/firmware/acpi/*z/sys/kernel/debug/tracing/*z/sys/kernel/livepatch/*z/proc/kallsymsz/proc/buddyinfoz/proc/slabinfoz/proc/zoneinfoz/lib/modules/%s/modules.depz/etc/conf.modulesz/etc/modules.confz/etc/modprobe.confz/etc/modprobe.dz/lib/modprobe.dz/run/modprobe.dz/usr/local/lib/modprobe.dz/etc/sysctl.confz
/etc/sysctl.dz
/lib/sysctl.dz
/proc/cmdlinez/proc/driverz/proc/sys/kernel/taintedz/proc/softirqsz/proc/lock*z
/proc/miscz/var/log/dmesgz/sys/fs/pstorez'/sys/kernel/debug/dynamic_debug/controlz(/sys/kernel/debug/extfrag/unusable_indexz'/sys/kernel/debug/extfrag/extfrag_indexZavailable_clocksourceZcurrent_clocksourcez/proc/pressure/rz/proc/timer*r
z/sys/kernel/debug/tracing/trace)
Zadd_cmd_output�listdir�
sys_module�join�OSErrorZ	_log_warn�extend�globZadd_forbidden_pathZ
add_copy_specZpolicyZkernel_versionZ
get_option)�self�modulesZextra_mod_patternsZextra_mod_paths�patternZclocksource_path�r�=/usr/lib/python3.9/site-packages/sos/report/plugins/kernel.py�setup,s�
�
���*
zKernel.setupN)�__name__�
__module__�__qualname__�__doc__Z
short_descZplugin_nameZprofilesZverify_packagesrrZoption_listrrrrrr
s���r)Zsos.report.pluginsrrrrrrrrr�<module>	s