| To: | lkcd@xxxxxxxxxxx |
|---|---|
| Subject: | Re: How to make a kernel do a system dump |
| From: | Dave Anderson <anderson@xxxxxxxxxxx> |
| Date: | Mon, 06 Nov 2000 10:09:41 -0500 |
| Organization: | Mission Critical Linux |
| Sender: | owner-lkcd@xxxxxxxxxxx |
For anything short of a hang situation, you can always force
a panic from user space by:
(1) determining the address of a task's task_struct.pid
(2) open /dev/mem for writing,
(3) write a zero into its pid location, and then have the
targeted task exit.
This initiates an "Attempted to kill the idle task!" panic from
do_exit().
I've made it a command option in our MCLX crash utility --
which modifies its own pid and then exits; LKCD lcrash
could easily be tweaked to do the same.
Dave Anderson
Mission Critical Linux
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: how to make kernel do system dump ?, richardj_moore |
|---|---|
| Next by Date: | Re: how to make kernel do system dump ?, Matt D. Robinson |
| Previous by Thread: | how to make kernel do system dump ?, hiren_mehta |
| Next by Thread: | Re: Context switching disabled while dumping?, Matt D. Robinson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |