idDddlmZmZmZddlmZddlZGddeeZy))PluginIndependentPlugin PluginOpt) RedHatPolicyNcVeZdZdZdZdZdZdZdZe ddd e d dd gZ d Z y)KernelaThe 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 kernelkernel)systemhardwarer )kernel$z /sys/module with-timerFzgather /proc/timer* statistics)defaultdesctracez+gather /sys/kernel/debug/tracing/trace filecLt|jtrd|_|j ddd|j ddd|j d |j |j }|j ddj|zd d gd }g}|D]&}|jtj|(|r#|j ddj|z|j ddgd|j ddd}|jgd|jgddddddddd d!d"d#d$d%d&|jjzd'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<|d=z|d>zd?|jd@r|jdA|jdBs|jdCyy#t$r"|jd |j zYwxYw)DN)r zkernel-redhat$zuname -auname) root_symlinktagslsmodzls -lt /sys/kernel/slabzmodinfo  modinfo_ALL_MODULES modinfo_all)suggest_filenamerzcould not list %s)z/lib/modules/*/extraz/lib/modules/*/updatesz/lib/modules/*/weak-updatesz find %s -lsdmesgz dkms statusT) cmd_as_tagz sysctl -asysctl)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 >1F%2  4  ) 7G  " "499W#5 6 7     0I I J       Kh7J  !  ) ) -)  ')  & ) # ) " )  $)  #)  *)  &)  )  )  )  )  *DKK,F,F,H H) !) " #) $ !%) & ') ( )) * +) , (-) . /) 0 1) 2 3) 4 5) 6 7) 8 '9) : ;) < =) > ?) @ A) B C) D &E) F 6G) H 7I) J 6K) L 6 6M) N 4 4O) P Q) ) V ??< (   ~ .w'  # #$E F(o B NN.@ A BsAG88'H#"H#N) __name__ __module__ __qualname____doc__ short_desc plugin_nameprofilesr!r$r option_listr5r4rrsQ  JK/H"OJ ,7 9'5D FKhGr?r)sos.report.pluginsrrrsos.policies.distros.redhatrr)rr>r?r4rBs'DC4 GGV&GGr?