| To: | Tom Morano <tjm@xxxxxxx> |
|---|---|
| Subject: | Re: how to make kernel do system dump ? |
| From: | Andi Kleen <ak@xxxxxxx> |
| Date: | Fri, 3 Nov 2000 23:53:46 +0100 |
| Cc: | hiren_mehta@xxxxxxxxxxx, lkcd@xxxxxxxxxxx |
| In-reply-to: | <3A03374B.9CC7ED44@sgi.com>; from tjm@sgi.com on Fri, Nov 03, 2000 at 02:08:11PM -0800 |
| References: | <FEEBE78C8360D411ACFD00D0B74779718808DB@xsj02.sjs.agilent.com> <3A03374B.9CC7ED44@sgi.com> |
| Sender: | owner-lkcd@xxxxxxxxxxx |
| User-agent: | Mutt/1.2.5i |
On Fri, Nov 03, 2000 at 02:08:11PM -0800, Tom Morano wrote:
> It contains an example of how you to modify the sys_setpriority()
> function so that, it causes either a panic or a SEGV trap. There is
> also a sample program that calls setpriority() to initiate the dump.
That sounds rather complicated. Why don't you just load a small kernel
module for it ?
#include <linux/module.h>
int init_module(void)
{
panic("Dump");
}
gcc -O2 -DMODULE -c module.c
insmod module.o
-Andi
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: how to make kernel do system dump ?, hiren_mehta |
|---|---|
| Next by Date: | Re: how to make kernel do system dump ?, Hari Kannan |
| Previous by Thread: | Re: how to make kernel do system dump ?, Tom Morano |
| Next by Thread: | Re: how to make kernel do system dump ?, Hari Kannan |
| Indexes: | [Date] [Thread] [Top] [All Lists] |