How to capture process id and multi-thread for application from ARM hardware

Note: This was originally posted on 5th September 2011 at http://forums.arm.com

Dear all,
I am make a simulator for ARM (Cortex-a9). I want to capture process id and multi-thread for applications run on Linux kernel by this simulator, but I don't have good idea to capture it. I thought about CP15.c13 (Context PID register) of ARM but it seems not true for PID from kernel. I also think that Arm hardware will manage PID by stack and capture stack pointer will help to capture PID and multi-thread, but it is very difficult for me to understand about it. Please help me to find a solution to capture them.
Thanks and best regard,
Parents
  • Note: This was originally posted on 6th September 2011 at http://forums.arm.com

    You will probably have to interpret the Linux kernel's data structures (task queue etc) in RAM. As Linux is a very portable kernel, I doubt that the ARM port uses ARM specialty registers to store PIDs when most other processor architectures have no such register.
Reply
  • Note: This was originally posted on 6th September 2011 at http://forums.arm.com

    You will probably have to interpret the Linux kernel's data structures (task queue etc) in RAM. As Linux is a very portable kernel, I doubt that the ARM port uses ARM specialty registers to store PIDs when most other processor architectures have no such register.
Children
No data
More questions in this forum