Greetings,
We are working on a project migration from FreeRTOS to Zephyr which uses Tracealyzer for profiling and debugging. (see https://percepio.com/tracealyzer/tracealyzer-for-zephyr/getting-started-with-tracealyzer-for-zephyr-rtos/)
For instrumenting ISRs, we need to call the Tracealyzer functions:
vTraceStoreISRBegin(isr_trace_handle); //At the start of ISR execution
... vTraceStoreISREnd(0); //At the end of ISR execution
I would prefer to call those functions as close to the ISR handler is possible for accurate timing and avoid putting the burden on the application writer to remember. It would be possible to modify nrfx_isr(const void *irq_handler) in nrfx_glue.c with those calls, but I'm generally not a fan of modifying 3rd party library code. Do you have any other suggestions?
Thanks!