linux-mips
[Top] [All Lists]

Re: how do i get register state from process before interrupt?

To: Jim <jimssubs@telus.net>
Subject: Re: how do i get register state from process before interrupt?
From: Ralf Baechle <ralf@linux-mips.org>
Date: Tue, 2 May 2006 20:38:38 +0100
Cc: linux-mips@linux-mips.org
In-reply-to: <4456960D.70403@telus.net>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <4456960D.70403@telus.net>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4.2.1i
On Mon, May 01, 2006 at 04:13:17PM -0700, Jim wrote:

> I have a number of processes and drivers on a SB1250 card
> and I suspect one of the drivers is misbehaving such that
> user processes are not getting a chance to run.  I implemented
> a rudimentary watchdog in the timer interrupt which is kicked
> by one such user process if things when things are fine.
> How would I capture the register state of the process
> that was running before the interrupt is run?  I'm on
> linux 2.4.18.

You can find a struct pt_regs at

  (unsigned long)task_stack_page(p) + THREAD_SIZE - 32

  Ralf

<Prev in Thread] Current Thread [Next in Thread>