�
i��d� � �D � d dl mZmZmZ d dlmZ d dlZ G d� dee� Zy)� )�Plugin�IndependentPlugin� PluginOpt)�RedHatPolicyNc �V � e Zd ZdZdZdZdZdZdZ e 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.
zLinux kernel�kernel)�system�hardwarer )�kernel$z/sys/module�
with-timerFzgather /proc/timer* statistics)�default�desc�tracez+gather /sys/kernel/debug/tracing/trace filec �L � t | j t � rd| _ | j ddd�� | j ddd�� | j d� | j | j � }| j ddj |� z d d
�� g d
�}g }|D ]& |