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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux