All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: Jim <jimssubs@telus.net>
Cc: linux-mips@linux-mips.org
Subject: Re: how do i get register state from process before interrupt?
Date: Tue, 2 May 2006 20:38:38 +0100	[thread overview]
Message-ID: <20060502193838.GA3474@linux-mips.org> (raw)
In-Reply-To: <4456960D.70403@telus.net>

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

  reply	other threads:[~2006-05-02 19:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-01 23:13 how do i get register state from process before interrupt? Jim
2006-05-02 19:38 ` Ralf Baechle [this message]
2006-05-02 21:22   ` changing IP address on mipsel-linux Ratin
2006-05-02 21:22     ` Ratin
2006-05-03  7:11     ` Freddy Spierenburg
2006-05-03 16:11       ` Ratin
2006-05-03 16:11         ` Ratin
2006-05-03 16:14         ` Geert Uytterhoeven

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=20060502193838.GA3474@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=jimssubs@telus.net \
    --cc=linux-mips@linux-mips.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.