From: "Randy.Dunlap" <rdunlap@xenotime.net>
To: "Raz Ben-Jehuda(caro)" <raziebe@gmail.com>
Cc: linux-kernel@vger.kernel.org, mpm@selenic.com
Subject: Re: netconsole
Date: Wed, 5 Jul 2006 16:14:21 -0700 [thread overview]
Message-ID: <20060705161421.8eb00003.rdunlap@xenotime.net> (raw)
In-Reply-To: <5d96567b0607040143y3aa06c8cn1b6e591d1a3bdc31@mail.gmail.com>
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
prev parent reply other threads:[~2006-07-05 23:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-04 8:43 netconsole Raz Ben-Jehuda(caro)
2006-07-05 23:14 ` Randy.Dunlap [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060705161421.8eb00003.rdunlap@xenotime.net \
--to=rdunlap@xenotime.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mpm@selenic.com \
--cc=raziebe@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®