3
ܓid @ s> d dl Z d dlmZ d dlmZmZmZ G dd deeZdS ) N)RedHatPolicy)PluginIndependentPlugin PluginOptc @ sH e Zd ZdZdZdZdZdZdZe dd d
de dd d
dgZ
dd 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.
zLinux kernelkernelsystemhardwarekernel$z/sys/modulez
with-timerFzgather /proc/timer* statistics)defaultZdesctracez+gather /sys/kernel/debug/tracing/trace filec 8 C s t | jtrdZ| _| jdddd | jdddd | jd y*| j| j}| jdd j| d
dd W n& t k
r | j
d
| j Y nX dddg}g }x|D ]}|jtj| qW |r| jdd j| d | jdddgdd | jddd d}| j
ddddd d!d"d#d$d%d&g | jd'd(d)d*d+d,d-d.d/d0d1d2d3d4d5| jj d6d7d8d9d:d;d