Sample-based profiling

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Sample-based profiling

796 次查看
keanmariotti
Contributor I

I would like to profile the A5 core of my Vybrid VF6xx by periodically sampling the program counter (PC).

I see from the "ARMv7-M architecture reference manual" and the "Vybrid reference manual (section 20.9)" that the M4 core provides a Data Watchpoint and Trace (DWT) unit that can be configured to sample the PC at regular intervals. The sampled PC can then be streamed to the SWO interface which I can read with my debugger. This is exactly what I would like to do with the A5 core, instead of the M4.

Is there any way to achieve the same result (stream of PC information to SWO) with the A5 core? As far as I understand the A5 does provide a program counter sampling register (DBGPCSR), but lacks of a mechanism to stream it. Am I wrong?

Best regards

Kean Mariotti

标签 (1)
0 项奖励
回复
1 回复

651 次查看
keanmariotti
Contributor I

Never mind. I am going to "manually" generate the program counter samples by periodically reading DBGPCSR through the debugger.

0 项奖励
回复