Results 1 to 2 of 2
Hi,
I want to dump the kernel register values in the SRAM during , when the kernel panic occurs .
I want to read the values of this structure (ie) ...
- 05-11-2009 #1Just Joined!
- Join Date
- May 2009
- Posts
- 1
acessin the kernel register inside panic function
Hi,
I want to dump the kernel register values in the SRAM during , when the kernel panic occurs .
I want to read the values of this structure (ie) pt_regs_data and dump its value in the SRAM inside the panic fuction of the kernel .
I tried to use the in the linux/kernel/panic.c file .
thread_info = current_thread_info();
pt_regs_data = (struct pt_regs*)((unsigned long)thread_info+THREAD_SIZE);
memcpy((char *)SRAM,(char*)pt_regs_data,sizeof(struct pt_regs));
if I am not wrong this shall give the register values of the panic thread not the register values of the thread that caused the panic .
Thanks
balaji N R
- 05-13-2009 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Doesn't this information get saved in the kernel crash dump file?
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote