HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.60.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 5 05:00:59 EST 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //lib/python3.9/site-packages/sos/report/plugins/__pycache__/kernel.cpython-39.opt-1.pyc
a

\��hd�@s>ddlZddlmZddlmZmZmZGdd�dee�ZdS)�N)�RedHatPolicy)�Plugin�IndependentPlugin�	PluginOptc@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)�kernel$z/sys/module�
with-timerFzgather /proc/timer* statistics)�defaultZdesc�tracez+gather /sys/kernel/debug/tracing/trace filec2Cs�t|jt�rd|_|jdddd�|jdddd�|�d�z*|�|j�}|jdd�|�d	d
d�Wn$t	y�|�
d|j���Yn0gd
�}g}|D]}|�t�|��q�|r�|�dd�|��d��|jgd�dd�|jddd�d}|�
gd��|�ddddddddd d!d"d#d$d%d&|j���d'�d(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdB|dC|dDdEdF|j����g.�|�dG��r�|�dH�|�dI��s�|�
dJ�dS)KN)r	zkernel-redhat$zuname -a�uname)Zroot_symlink�tagsZlsmodz/sys/kernel/slabzmodinfo � Zmodinfo_ALL_MODULESZmodinfo_all)Zsuggest_filenamerzcould not list )z/lib/modules/*/extraz/lib/modules/*/updatesz/lib/modules/*/weak-updateszfind z -ls)Zdmesgzdmesg -Tzdkms statusT)Z
cmd_as_tagz	sysctl -aZsysctl)rz-/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/z/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/var/lib/systemd/pstorez/sys/kernel/hardlockup_countz/sys/kernel/softlockup_countz/sys/kernel/warn_countz/sys/kernel/oops_countz'/sys/kernel/debug/dynamic_debug/controlz(/sys/kernel/debug/extfrag/unusable_indexz'/sys/kernel/debug/extfrag/extfrag_indexz/sys/kernel/debug/hv-balloonZavailable_clocksourceZcurrent_clocksourcez/proc/pressure/z
/boot/config-r
z/proc/timer*rz/sys/kernel/debug/tracing/trace)�
isinstanceZpolicyr�verify_packagesZadd_cmd_outputZadd_dir_listing�listdir�
sys_module�join�OSErrorZ	_log_warn�extend�globZadd_forbidden_pathZ
add_copy_specZkernel_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�
�

��1
zKernel.setupN)�__name__�
__module__�__qualname__�__doc__Z
short_descZplugin_nameZprofilesrrrZoption_listrrrrrrs���r)rZsos.policies.distros.redhatrZsos.report.pluginsrrrrrrrr�<module>	s