Re: [OpenOCD-devel] gnulib

2021-05-18 Thread Tim Newsome
It turns out gnulib is GPL3 which is not compatible with our GPL2. So... How about uthash ? Antonio says the license is compatible. Here are his observations: > Uthash is already packaged as a library in debian, Ubuntu, Arch Linux. > Plus it is just a set

Re: Profiling Tool for OpenOCD

2021-05-18 Thread Tim Newsome
OpenOCD kills itself instead of exiting normally. This prevents coverage from working, and profiling might have the same problem. Here's what I did for coverage: - Runtime coverage testing Apply the following patch to prevent OpenOCD from killing itself: @code --- a/src/openocd.c +++

[PATCH]: abe72f7 target/aarch64: Write Memory functions fix for self-modifying code

2021-05-18 Thread gerrit
This is an automated email from Gerrit. Michele Bisogno (michele.bisogno...@renesas.com) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/6266 -- gerrit commit abe72f7f5b6d5f53e8a76b1437aeeb917e01883c Author: micbis Date: Tue May 18 18:52:37 2021 +0200

Re: Profiling Tool for OpenOCD

2021-05-18 Thread Tommy Murphy
If the question is how to profile the specific driver then I would be inclined to add specific logging/instrumentation to the driver methods to see what's taking most time. If you mean profiling the whole of openocd then I'm not really sure how best to do that unfortunately. However it sounds

Re: Profiling Tool for OpenOCD

2021-05-18 Thread Alan Carvalho de Assis
Hi Cinly, I think you need to go in the route you are already in (gprof, etc). As a side note, for those trying to profiling the target board instead of the host, please take a look at this project: https://github.com/orbcode/orbuculum Using it the author was able to profile the NuttX RTOS to

Profiling Tool for OpenOCD

2021-05-18 Thread Ooi, Cinly
Hi Does anyone has experience profiling OpenOCD and can share the experience, i.e. tools etc? The reason for asking is the driver that I am developing, aji_client (https://github.com/intel/aji_openocd) is slow under some circumstances. Good news is those circumstances are consistently

[PATCH]: 6521a8f riscv: Add assert for debug buffer

2021-05-18 Thread gerrit
This is an automated email from Gerrit. Xiang W (wxj...@126.com) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/6265 -- gerrit commit 6521a8f23c4d7258d795be5e5b448c6cf5a3f292 Author: Xiang W Date: Tue May 18 20:39:41 2021 +0800 riscv: Add assert

[PATCH]: 7b31aff riscv: Fix riscv_program to use dynamic memory for debug_buffer

2021-05-18 Thread gerrit
This is an automated email from Gerrit. Xiang W (wxj...@126.com) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/6264 -- gerrit commit 7b31aff20a0a007ead1fcdec8ea7f8fe03a9a5ac Author: Xiang W Date: Tue May 18 19:24:47 2021 +0800 riscv: Fix