-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'change/sysview_test_config_v5.4' into 'release/v5.4'
change(sysview): run heap_log tracing tests on existing cores (v5.4) See merge request espressif/esp-idf!35195
- Loading branch information
Showing
22 changed files
with
37,521 additions
and
256,337 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Steps to Generate Test Input Files | ||
|
||
1. `sysview_tracing_heap_log.elf` | ||
|
||
Build example `sysview_tracing_heap_log` project. | ||
|
||
``` | ||
cd $IDF_PATH/examples/system/sysview_tracing_heap_log | ||
idf.py set target esp32 | ||
idf.py build | ||
cp build/sysview_tracing_heap_log.elf $IDF_PATH/tools/esp_app_trace/test/sysview/ | ||
cd $IDF_PATH/tools/esp_app_trace/test/sysview/ | ||
chmod -x sysview_tracing_heap_log.elf | ||
``` | ||
2. `heap_log0.svdat` and `heap_log1.svdat` | ||
Flash the example and run OpenOCD and GDB using the following command in a separate console | ||
``` | ||
cd $IDF_PATH/examples/system/sysview_tracing_heap_log | ||
idf.py openocd | ||
``` | ||
``` | ||
cd $IDF_PATH/examples/system/sysview_tracing_heap_log | ||
xtensa-esp32-elf-gdb -x gdbinit build/sysview_tracing_heap_log.elf | ||
``` | ||
When program stops at `heap_trace_stop` quit GDB and OpenOCD | ||
Copy generated svdat files | ||
``` | ||
cp heap_log0.svdat $IDF_PATH/tools/esp_app_trace/test/sysview/ | ||
cp heap_log1.svdat $IDF_PATH/tools/esp_app_trace/test/sysview/ | ||
``` | ||
3. `heap_log_mcore.svdat` | ||
Flash the example and run OpenOCD and GDB using the following command in a separate console | ||
``` | ||
cd $IDF_PATH/examples/system/sysview_tracing_heap_log | ||
idf.py openocd | ||
``` | ||
``` | ||
cd $IDF_PATH/examples/system/sysview_tracing_heap_log | ||
xtensa-esp32-elf-gdb -x gdbinit-mcore build/sysview_tracing_heap_log.elf | ||
``` | ||
When program stops at `heap_trace_stop` quit GDB and OpenOCD | ||
Copy generated svdat file | ||
``` | ||
cp heap_log_mcore.svdat $IDF_PATH/tools/esp_app_trace/test/sysview/ | ||
``` | ||
4. `expected_output` and `expected_output_json` files | ||
You can use the commands from the `test.sh` to generate expected result files | ||
``` | ||
$IDF_PATH/tools/esp_app_trace/sysviewtrace_proc.py -d -p -b sysview_tracing_heap_log.elf heap_log0.svdat heap_log1.svdat &> expected_output | ||
$IDF_PATH/tools/esp_app_trace/sysviewtrace_proc.py -j -b sysview_tracing_heap_log.elf heap_log0.svdat heap_log1.svdat &> expected_output.json | ||
$IDF_PATH/tools/esp_app_trace/sysviewtrace_proc.py -d -p -b sysview_tracing_heap_log.elf heap_log_mcore.svdat &> expected_output_mcore | ||
$IDF_PATH/tools/esp_app_trace/sysviewtrace_proc.py -j -b sysview_tracing_heap_log.elf heap_log_mcore.svdat &> expected_output_mcore.json | ||
``` |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.