HEX
Server: nginx/1.24.0
System: Linux webserver 6.8.0-87-generic #88-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 09:28:41 UTC 2025 x86_64
User: wpuser (1002)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/kernel.cpython-312.pyc
�

([Qhd��D�ddlZddlmZddlmZmZmZGd�dee�Zy)�N)�RedHatPolicy)�Plugin�IndependentPlugin�	PluginOptc�V�eZdZdZdZdZdZdZdZe	ddd	�
�e	ddd�
�gZ
d
�Zy)�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)�system�hardwarer	)�kernel$z/sys/module�
with-timerFzgather /proc/timer* statistics)�default�desc�tracez+gather /sys/kernel/debug/tracing/trace filec��t|jt�rd|_|j	ddd��|j	ddd��|jd�	|j
|j�}|j	ddj|�zd	d
��gd
�}g}|D]&}|jtj|���(|r$|j	ddj|��d��|j	gd�d��|j	dd��d}|jgd��|jgd�d�d�d�d�d�d�d�d �d!�d"�d#�d$�d%�d&|jj��d'��d(�d)�d*�d+�d,�d-�d.�d/�d0�d1�d2�d3�d4�d5�d6�d7�d8�d9�d:�d;�d<�d=�d>�d?�d@�dA�dB�|dCz�|dDz�dE�dF|jj�����|j!dG�r|jdH�|j!dI�s|jdJ�yy#t$r"|jd|j���Y���wxYw)KN)rzkernel-redhat$zuname -a�uname)�root_symlink�tags�lsmodz/sys/kernel/slabzmodinfo � �modinfo_ALL_MODULES�modinfo_all)�suggest_filenamerzcould not list )z/lib/modules/*/extraz/lib/modules/*/updatesz/lib/modules/*/weak-updateszfind z -ls)�dmesgzdmesg -Tzdkms statusT)�
cmd_as_tagz	sysctl -a�sysctl)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-balloon�available_clocksource�current_clocksourcez/proc/pressure/z
/boot/config-r
z/proc/timer*rz/sys/kernel/debug/tracing/trace)�
isinstance�policyr�verify_packages�add_cmd_output�add_dir_listing�listdir�
sys_module�join�OSError�	_log_warn�extend�glob�add_forbidden_path�
add_copy_spec�kernel_version�
get_option)�self�modules�extra_mod_patterns�extra_mod_paths�pattern�clocksource_paths      �;/usr/lib/python3/dist-packages/sos/report/plugins/kernel.py�setupzKernel.setup-s����d�k�k�<�0�#@�D� �	
���J�W�7��K����G�'���H����/�0�	@��l�l�4�?�?�3�G����
�S�X�X�g�->� >�1F�%2�
 �
4�
��
��)�	7�G��"�"�4�9�9�W�#5�6�	7�����%�����(A�'B�$� G�H����
��		�	�
	
���K�h��7�J�����!
�	�	
���/
��/
�-�/
�
'�/
�
&�	/
�

#�/
�
"�
/
�
$�/
�
#�/
�
*�/
�
&�/
�
�/
�
�/
�
�/
�
�/
��D�K�K�6�6�8�9��F�/
� 
 �!/
�"
 �#/
�$
!�%/
�&
�'/
�(
�)/
�*
�+/
�,
(�-/
�.
�//
�0
�1/
�2
�3/
�4
�5/
�6
�7/
�8
'�9/
�:
�;/
�<
�=/
�>
�?/
�@
�A/
�B
�C/
�D
&�E/
�F
+�G/
�H
+�I/
�J
%�K/
�L
%�M/
�N
6�O/
�P
7�Q/
�R
6�S/
�T
+�U/
�V
�6�6�W/
�X
�4�4�Y/
�Z
�[/
�\�D�K�K�6�6�8�9�:�]/
�/	�b�?�?�<�(�
���~�.����w�'��#�#�$E�F�(��{�	@��N�N�_�T�_�_�,=�>�?�	@�s�AH!�!'I�IN)�__name__�
__module__�__qualname__�__doc__�
short_desc�plugin_name�profilesr!r%r�option_listr6��r5rrsQ��
� �J��K�/�H�"�O��J�	�,��7�	9��'�5�D�	F��K�nGr@r)r*�sos.policies.distros.redhatr�sos.report.pluginsrrrrr?r@r5�<module>rCs&���4�C�C�MG�V�&�MGr@