improving compiled modules of kernel - per-user

Stefan Hamminga stefan at engit.nl
Sun Feb 15 19:57:09 UTC 2009


-----Original Message-----
> Olá Stefan e a todos.

> On Sunday 15 February 2009 15:56:32 Stefan Hamminga wrote:
> > Here is what I've got so far:
> > 
> > for mod in `((lspci -v | grep -i "Kernel driver in use: " | cut -b 24-) && (lspci -v | grep -i "Kernel modules: " | cut -b 18-)) | sort -u` ; do
> >         echo `grep $mod $(find -name Makefile) | grep -v debian | sed 
> > s/.*obj-\$\(// | sed s/\).*// | grep CONFIG` done

> Running this here just outputs a bunch of empty lines

Ahh, I see, sorry, I forgot to include that this needs to be run in the kernel source root (eg. /usr/src/linux-2.6/), hadn't gotten to creating a 'prettier' version. The for loop searches every Makefile in the tree to get the corresponding CONFIG_ option for a loaded module.

Stefan






More information about the Ubuntu-devel-discuss mailing list