]> git.sur5r.net Git - openocd/commit
hla_target: allow non-intrusive profiling on cortex-m
authorKarl Palsson <karlp@tweak.net.au>
Fri, 8 Sep 2017 10:49:30 +0000 (10:49 +0000)
committerPaul Fertser <fercerpav@gmail.com>
Sat, 13 Jan 2018 09:31:36 +0000 (09:31 +0000)
commit4e0371bf718c9eb3a862e3c9b113c95cd4c3a479
treeb71a6a5c06fbe54b27142bb077958e3f72ef8b73
parent64b0d5aac0c5214db01f938550e8b126891d5a08
hla_target: allow non-intrusive profiling on cortex-m

Leverages the existing work that added profiling via DWT_PCSR.

hla_target doesn't have direct access to the mem_ap for doing a bulk
repeated read, but simply reading the DWT_PCSR register repeatedly is
still ~2 order of magnitude faster than halt/resume.

Change-Id: Ibe451aa95143694398370fdad6939cfb6191d56f
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
Reviewed-on: http://openocd.zylin.com/4220
Tested-by: jenkins
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
src/target/cortex_m.c
src/target/cortex_m.h
src/target/hla_target.c