[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to get current cs:eip value for some process while it is in kernel mode?
Hi..
On Wed, Jun 4, 2008 at 8:34 PM, Michal <rabbit50@xxxxxxxxx> wrote:
> "Frédéric Weisbecker" <f.weisbecker@xxxxxxxxx> writes:
>
>> You mean how to get your own kernel's task eip?
> No, I mean other process, not current one. I realize that eip changes,
> but my process gets stuck somewhere in the kernel for a longer while
> and I would like to know where:)?
see how show_trace does it at http://lxr.linux.no/linux/arch/um/sys-i386/sysrq.c
But notice that AFAIK eip is only recorded when context switching
between processes happen or right when entering kernel/user space. But
at least, IMHO stack trace can give a good clue where it hung.
regards,
Mulyadi.
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ