I want to get the EIP register value from the current process from with in
the kernel during a system call.
I have tried using the pt_regs, sys_pt_regs, and thier helper funtions.
They all seem to cause Kernel Panics because of memory issues. I have
tried copying the pt_regs memory into the kernel, but am getting all
zeros. Maybe I am not even looking at the right piece of memory.
I can provide code I have tried, but this could be an easy one for someone
to answer. I have already looked over the documentation on ptracing, but
the pt_regs seem to be a place where a lot of changes have occured in uml.
From: Jeff Dike <jdike@ad...> - 2003-07-01 16:15:21
> I want to get the EIP register value from the current process from
> with in the kernel during a system call.
The registers are contained in
((struct task_struct *)get_current()).thread.regs
Look in the tt or skas arm depending on how you are running UML. In tt mode,
the process state is in thread.regs.tt.sc, which is a struct sigcontext.