lkcd
[Top] [All Lists]

Re: how to make kernel do system dump ?

To: Andi Kleen <ak@xxxxxxx>
Subject: Re: how to make kernel do system dump ?
From: Tom Morano <tjm@xxxxxxx>
Date: Fri, 03 Nov 2000 15:23:10 -0800
Cc: hiren_mehta@xxxxxxxxxxx, lkcd@xxxxxxxxxxx
References: <FEEBE78C8360D411ACFD00D0B74779718808DB@xxxxxxxxxxxxxxxxxxxxx> <3A03374B.9CC7ED44@xxxxxxx> <20001103235346.A5125@xxxxxxxxxxxxxxxxxxx>
Sender: owner-lkcd@xxxxxxxxxxx
You could of course do that. The code included in the FAQ is an
example of how you COULD force a dump. I know from my own experience,
that a module approach may not always work. I'm currently building
ia64 kernels on one system and then booting them on another (without
module support configured). Thanks for this alternative suggestion 
though.

Tom

Andi Kleen wrote:
> 
> 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>