armv7m: add a TCP channel to stream captured trace
commit9cce6b3c763e883faea545b9ffbda19ec8164804
authorTarek BOCHKATI <tarek.bouchkati@gmail.com>
Mon, 8 Jun 2020 22:47:46 +0000 (8 23:47 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 7 Nov 2020 20:49:57 +0000 (7 20:49 +0000)
tree2dd4f7eec1c2de9080c7ea0816c8444d4e32b068
parent7e6556b3cad8c82d4670a68cd49756dabb8c4729
armv7m: add a TCP channel to stream captured trace

When trace capturing the trace is enabled using 'tpiu_config internal'
(via the internal mode), OpenOCD can collect the trace buffers then append
it to a specified file or named pipe and propagate the trace to 'tcl_trace'
command.
This change is allowing OpenOCD to stream the captured trace over TCP.

When using this configuration OpenOCD acts like a server and multiple
clients can connect and receive the captured trace.

Example on STM32F7 running at 216MHz:
  itm port 0 on
  tpiu config internal :3344 uart off 216000000

Change-Id: Idea43e7e26e87b98a33da7fb9acf7ea50fe3b345
Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Reviewed-on: http://openocd.zylin.com/5345
Tested-by: jenkins
Reviewed-by: Karl Palsson <karlp@tweak.net.au>
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
doc/openocd.texi
src/target/armv7m_trace.c
src/target/armv7m_trace.h