target/espressif: add profiling function for ESP32, ESP32-S2

Use the TRAX interface DEBUGPC if available.
Otherwise use default stop-and-go profiling.

ESP32: FT2232H+Linux: 97ksample/second @ 20mbps JTAG

Change-Id: I1dda43df2727b542b08e338f7f4ba63530844a4f
Signed-off-by: Richard Allen <rsaxvc@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8910
Reviewed-by: Samuel Obuch <samuel.obuch@espressif.com>
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Tested-by: jenkins
This commit is contained in:
Richard Allen
2025-05-16 20:26:08 -05:00
committed by Antonio Borneo
parent 8b4eb936db
commit 1950befd76
2 changed files with 2 additions and 0 deletions

View File

@@ -501,4 +501,5 @@ struct target_type esp32_target = {
.deinit_target = esp_xtensa_target_deinit,
.commands = esp32_command_handlers,
.profiling = esp_xtensa_profiling,
};

View File

@@ -538,4 +538,5 @@ struct target_type esp32s2_target = {
.deinit_target = esp_xtensa_target_deinit,
.commands = esp32s2_command_handlers,
.profiling = esp_xtensa_profiling,
};