Re: netconsole

From: Randy.Dunlap
Date: Wed Jul 05 2006 - 19:12:14 EST


On Tue, 4 Jul 2006 11:43:51 +0300 Raz Ben-Jehuda(caro) wrote:

> Matt hello
> I am testing netconsole.
> What i did is to create a panic driver.
> It is written bellow.
> Why I am not getting the panic output to netcat ?
>
> thank you
> raz
>
>
> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
> #include <linux/module.h>
> #include <linux/fs.h>
> #include <linux/kernel.h>
> #include <linux/init.h>
>
> static void do_panic_cleanup(void){}
>
> static int do_panic_init(void){
> panic("raz");
> return -1;
> }
> module_init(do_panic_init);
> module_exit(do_panic_cleanup);
>
> MODULE_DESCRIPTION("do panic");
> MODULE_AUTHOR("raz ben yehuda");
> MODULE_LICENSE("GPL");

Works for me. I get this on the netconsole receiving system:

Kernel panic - not syncing: raz


---
~Randy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/