uec@s]ddlmZmZmZmZddlZddlZdeeeefdYZdS(i(tPlugint RedHatPlugint DebianPlugint UbuntuPluginNtKernelcBsSeZdZdZd Zd ZdZdddefd d defgZd Z RS(sLinux kernel tkerneltsystemthardwareskernel$s /sys/modules with-timersgather /proc/timer* statisticstslowttraces+gather /sys/kernel/debug/tracing/trace filec"Cs|jddd|jddd|jdy6tj|j}|jddj|dd Wn%tk r|jd |jnXd d d g}g}x$|D]}|jtj|qW|r|jddj|n|jdddgd}|j dddddddddddg |j ddd d!d"d#d$d%d&d'd(d)d*d+d,|j j d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;|d<|d=g |j d>r|j d?n|j d@s|j dAndS(BNsuname -at root_symlinktunametlsmodsls -lt /sys/kernel/slabsmodinfo t tsuggest_filenametmodinfo_ALL_MODULESscould not list %ss/lib/modules/*/extras/lib/modules/*/updatess/lib/modules/*/weak-updatess find %s -lstdmesgs sysctl -as dkms statuss-/sys/devices/system/clocksource/clocksource0/s$/sys/kernel/debug/tracing/trace_pipes /sys/kernel/debug/tracing/READMEs$/sys/kernel/debug/tracing/trace_stats!/sys/kernel/debug/tracing/per_cpus /sys/kernel/debug/tracing/eventss%/sys/kernel/debug/tracing/free_buffers&/sys/kernel/debug/tracing/trace_markers*/sys/kernel/debug/tracing/trace_marker_raws</sys/kernel/debug/tracing/instances/*/per_cpu/*/snapshot_raws;/sys/kernel/debug/tracing/instances/*/per_cpu/*/trace_pipe*s0/sys/kernel/debug/tracing/instances/*/trace_pipes /proc/moduless/proc/sys/kernel/random/boot_ids/sys/module/*/parameterss/sys/module/*/initstates/sys/module/*/refcnts/sys/module/*/taints/sys/module/*/versions/sys/firmware/acpi/*s/sys/kernel/debug/tracing/*s/sys/kernel/livepatch/*s/proc/kallsymss/proc/buddyinfos/proc/slabinfos/proc/zoneinfos/lib/modules/%s/modules.deps/etc/conf.moduless/etc/modules.confs/etc/modprobe.confs/etc/modprobe.ds/etc/sysctl.confs /etc/sysctl.ds /lib/sysctl.ds /proc/cmdlines /proc/drivers/proc/sys/kernel/tainteds/proc/softirqss /proc/lock*s /proc/miscs/var/log/dmesgs/sys/fs/pstoretavailable_clocksourcetcurrent_clocksources with-timers /proc/timer*R s/sys/kernel/debug/tracing/trace(tadd_cmd_outputtostlistdirt sys_moduletjointOSErrort _log_warntextendtglobtadd_forbidden_patht add_copy_spectpolicytkernel_versiont get_option(tselftmodulestextra_mod_patternstextra_mod_pathstpatterntclocksource_path((s6/usr/lib/python2.7/site-packages/sos/plugins/kernel.pytsetups       (ssystemRR(skernel$( t__name__t __module__t__doc__t plugin_nametprofilestverify_packagesRtFalset option_listR'(((s6/usr/lib/python2.7/site-packages/sos/plugins/kernel.pyRs(t sos.pluginsRRRRRRR(((s6/usr/lib/python2.7/site-packages/sos/plugins/kernel.pyt s"