[Crash-utility] [PATCH v2] Show module taint flags

Aaron Tomlin atomlin at redhat.com
Fri Apr 5 12:12:13 UTC 2013


> 
> On RHEL5 Xen kernel, it shows multiple garbage graphic characters, and I
> cannot even transpose it, because it must have a CR, LF, or something else
> embedded in the garbarge.
> 
> If you want to re-post, fix the module list truncation issue, try to do
> something to handle kernel versions that do not have the same #define's
> as what you're hardwiring, and perhaps make it into a "mod -t" option
> that displays just the module name and its TAINT flag.
> 
> Dave
> 

Hi Dave,

Firstly, sorry for the delay.
Here's another attempt.

An example:

crash> linux_banner
linux_banner = $3 = "Linux version 2.6.32-220.28.1.el6.x86_64 (mockbuild at x86-022.build.eng.bos.redhat.com) (gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) ) #1 SMP Wed Oct 3 12:26:28 EDT 2012\n"

crash> mod -T
NAME                 TAINT       
vxspec               (P)(U)      
dmpaa                (P)(U)      
emcpgpx              (P)(U)      
dmpap                (P)(U)      
dmpjbod              (P)(U)      
emcp                 (P)(U)      
emcpmpx              (P)(U)      
emcpdm               (P)(U)      
emcpxcrypt           (P)(U)      
emcpvlumd            (P)(U)      
vxfs                 (P)(U)      
fdd                  (P)(U)      
vxportal             (P)(U)      
vxdmp                (P)(U)      
vxio                 (P)(U)      
llt                  (P)(U)      
gab                  (P)(U)      
vxfen                (P)(U)      
vxglm                (P)(U)      
vxgms                (P)(U)      
vxodm                (P)(U) 

crash> mod -t vxfs
NAME                 TAINT       
vxfs                 (P)(U) 


--8<--

$ diffstat show-mod-taint-flags-v2.patch 
 defs.h   |   11 ++++
 kernel.c |  150 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 160 insertions(+), 1 deletion(-)
 
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: show-mod-taint-flags-v2.patch
Type: text/x-patch
Size: 4555 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20130405/d7c57284/attachment.bin>


More information about the Crash-utility mailing list