Arm Community
Site
Search
User
Site
Search
User
Groups
Arm Research
DesignStart
Education Hub
Graphics and Gaming
High Performance Computing
Innovation
Multimedia
Open Source Software and Platforms
Physical
Processors
Security
System
Software Tools
TrustZone for Armv8-M
中文社区
Blog
Announcements
Artificial Intelligence
Automotive
Healthcare
HPC
Infrastructure
Innovation
Internet of Things
Machine Learning
Mobile
Smart Homes
Wearables
Forums
All developer forums
IP Product forums
Tool & Software forums
Pelion IoT Platform
Support
Open a support case
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Developer Community
Tools and Software
Software Tools
Jump...
Cancel
Software Tools
Arm Development Studio forum
How to capture process id and multi-thread for application from ARM hardware
Tools, Software and IDEs blog
Forums
Videos & Files
Help
Jump...
Cancel
New
Replies
4 replies
Subscribers
127 subscribers
Views
1949 views
Users
0 members are here
Related
How to capture process id and multi-thread for application from ARM hardware
Offline
thiet pv
over 7 years ago
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,
Offline
thiet pv
over 7 years ago
Note: This was originally posted on 6th September 2011 at
http://forums.arm.com
Thanks for your reply,
I learn about contex register of ARM refer
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0344c/Bgbeegaf.html
I think it can help to specify PID of each application. I see that the value of this register is not the same with PID in the linux kernel, but I don't know why?
Do you think that it can help to specify PID?
Cancel
Up
0
Down
Reply
Cancel
Offline
thiet pv
over 7 years ago
Note: This was originally posted on 6th September 2011 at
http://forums.arm.com
Thanks for your answer.
I also think the same you. The value contex id and pid in kernel is different. But I don't understand the mean of that register. Can you say the purpose of contex id register?
I learn and I have idea to specify process and multi-thread for applications by capture stack pointer, because each process will be contained on 8KB stack so if we capture stack pointer for each functions of application we can specify the and multi-thread for an application by hardware.
Do you think? please send me your comments.
Cancel
Up
0
Down
Reply
Cancel
Offline
Konrad Anton
over 7 years ago
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.
Cancel
Up
0
Down
Reply
Cancel
Offline
Peter Harris
over 7 years ago
Note: This was originally posted on 6th September 2011 at
http://forums.arm.com
This register is only loosely related to PID, and the mapping between PID and the value in this register is not a 1:1 mapping and time variant.
As the previous poster said, PID is a software construct managed by the kernel, and not something which exists in the hardware directly.
Iso
Cancel
Up
0
Down
Reply
Cancel
More questions in this forum
By title
By date
By reply count
By view count
By most asked
By votes
By quality
Descending
Ascending
All recent questions
Unread questions
Questions you've participated in
Questions you've asked
Unanswered questions
Answered questions
Questions with suggested answers
Questions with no replies
Suggested Answer
Debugging kernel: OS support not working for Linux 5.4
0
Kernel Developers
External Hardware Debug
Debugger
3199
views
5
replies
Latest
1 month ago
by
sgoldschmidt
Suggested Answer
DS-5 bare metal wait error after run "debug"
0
DS-5 Development Studio
Debugging
Arm Compiler 5
Memory
24686
views
14
replies
Latest
1 month ago
by
prasadghole
Suggested Answer
ARM development studio with ARM Juno r2 board
0
Juno Arm Development Platform
Arm Development Studio
Products
Arm Support
3012
views
2
replies
Latest
1 month ago
by
Ronan Synnott
Answered
"Unable to execute remote query (response code 503) " issue
0
2933
views
1
reply
Latest
1 month ago
by
Ronan Synnott
Not Answered
Where can I download DS-5 hardware firmware??
0
2684
views
1
reply
Latest
1 month ago
by
Ronan Synnott
<
>
View all questions in Arm Development Studio forum