[linux-elitists] netconsole module - kernel dmesg-over-network logging
Don Marti
dmarti@zgp.org
Thu Dec 11 17:13:49 PST 2008
begin Karsten M. Self quotation of Thu, Dec 11, 2008 at 02:38:22PM -0800:
> For testing, you want to generate some kernel activity.
....
> I'm open to other suggestions.
A module that just does a printk and then refuses
to be inserted? Insmod it every time you want a
test line.
#include <linux/module.h>
#include <linux/kernel.h>
MODULE_LICENSE("GPL");
int refuse(void)
{
printk(KERN_WARNING "I'm a pointless module. Hello log file!\n");
return -1;
}
module_init(refuse);
/* to build modules outside the kernel tree:
Documentation/kbuild/modules.txt */
--
Don Marti +1 510-814-0932
http://zgp.org/~dmarti/ +1 510-332-1587 mobile
dmarti@zgp.org
See you at OpenSource World: August 10-13, 2009 in San Francisco
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://allium.zgp.org/pipermail/linux-elitists/attachments/20081211/bbd9d740/attachment-0001.pgp
More information about the linux-elitists
mailing list