jlaitine opened a new pull request, #16483: URL: https://github.com/apache/nuttx/pull/16483
## Summary I recently tested segger sysview on MPFS platform, and found out some issues with the driver. This is a collection of patches which I made in order to make it usable for my purpose, including: - Compilation errors with -Werr - In SMP, the driver deadlocks due to entering spinlock recursively. Changed this to critical section, didn't see much performance degredation with that - up_perf_gettime was assumed to be always nanosecods, this is not true, but segger driver can scale the timestamps correctly. Just need to configure the frequency - added support to configure "post-mortem" mode, which essentially traces continuously to a circular buffer until the tracing is stopped ## Impact Impacts only using Segger System View tool to profile a running system ## Testing Tested on MPFS platform, by configuring CONFIG_SCHED_INSTRUMENTATION=y CONFIG_SCHED_INSTRUMENTATION_FILTER=y CONFIG_SCHED_INSTRUMENTATION_IRQHANDLER=y CONFIG_SCHED_INSTRUMENTATION_SWITCH=y CONFIG_SEGGER_SYSVIEW=y CONFIG_SEGGER_SYSVIEW_RTT_BUFFER_SIZE=155648 CONFIG_SEGGER_SYSVIEW_POST_MORTEM=y Dumping the buffer memory with JTAG and loading it to SystemView tool. On MPFS, the systemview tool can't directly connect to the target for some reason. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org