[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Badness in local_bh_enable



On Mon, Mar 07, 2005 at 09:55:36PM -0000, Ian Pratt wrote:
> > Is there a way of telling if a module has not been compiled for Xen?
> 
> You can tell what the kernel version that it was compiled against by
> doing:
>   strings module.ko | grep vermagic=
> 
> If you have a extraversion of "-xen0" in your kernel you should see it
> in the vermagic.
> 
> Alternatively, in your current case you can probably tell by doing:
>  objdump -d module.ko | grep cli
> 
> If you have cli instructions, its not a Xen module (or the source is
> horibly broken).

I guess its fine with the dom0 modules.

nic@stateless:~$ strings 
/lib/modules/2.6.10-xen0/kernel/net/ipv4/netfilter/ipt_REJECT.ko | grep 
vermagic=
vermagic=2.6.10-xen0 preempt PENTIUM4 gcc-3.3
nic@stateless:~$ objdump -d 
/lib/modules/2.6.10-xen0/kernel/net/ipv4/netfilter/ipt_REJECT.ko | grep sti
 b6f:   fb                      sti
nic@stateless:~$ objdump -d 
/lib/modules/2.6.10-xen0/kernel/net/ipv4/netfilter/ipt_REJECT.ko | grep cli

nic@stateless:~$ objdump -d /lib/modules/2.6.10-xen0/kernel/net/rxrpc/rxrpc.ko 
| grep cli
nic@stateless:~$ objdump -d /lib/modules/2.6.10-xen0/kernel/net/rxrpc/rxrpc.ko 
| grep sti
    1f94:       fb                      sti
nic@stateless:~$ strings /lib/modules/2.6.10-xen0/kernel/net/rxrpc/rxrpc.ko | 
grep vermagic=
vermagic=2.6.10-xen0 preempt PENTIUM4 gcc-3.3


These seems to be compiled with ARCH=xen.

nic@stateless:~$ strings 
/lib/modules/2.6.10-xenU/kernel/net/ipv4/netfilter/ipt_REJECT.ko | grep 
vermagic=
vermagic=2.6.10-xenU preempt PENTIUM4 gcc-3.3
nic@stateless:~$ objdump -d 
/lib/modules/2.6.10-xenU/kernel/net/ipv4/netfilter/ipt_REJECT.ko | egrep  -e sti
 b3f:   fb                      sti

nic@stateless:~$ strings /lib/modules/2.6.10-xenU/kernel/net/rxrpc/rxrpc.ko | 
grep vermagic=
vermagic=2.6.10-xenU preempt PENTIUM4 gcc-3.3
nic@stateless:~$ objdump -d /lib/modules/2.6.10-xenU/kernel/net/rxrpc/rxrpc.ko 
| egrep  -e sti
    1f94:       fb                      sti


find /lib/modules/2.6.10-xenU -name \*.ko -exec /tmp/version-check  {}  \;
nic@stateless:~$ cat /tmp/version-check
#!/bin/bash

strings $1 | grep vermagic= | grep -v 'xenU'
objdump -d $1 | perl -n -e 'print $_ if /\scli/'
objdump -d $1 | perl -n -e 'print $_ if /\ssti/'


Nicholas


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.