diff options
author | Mike Leach <mike.leach@linaro.org> | 2022-07-12 16:08:29 +0100 |
---|---|---|
committer | Mike Leach <mike.leach@linaro.org> | 2023-01-19 16:50:45 +0000 |
commit | 3625951cb2992827b4b57ce54dc9b97ce1cf9ede (patch) | |
tree | 2a3122650e661063f5c5108906ddc6be9d0595b7 | |
parent | c86f7187fe2ac96f90b45c1c80ae48599ce3217c (diff) | |
download | OpenCSD-3625951cb2992827b4b57ce54dc9b97ce1cf9ede.tar.gz |
tests: ete: Add ETE test for FEAT_ITE support
Signed-off-by: Mike Leach <mike.leach@linaro.org>
-rwxr-xr-x | decoder/tests/run_pkt_decode_tests-ete.bash | 1 | ||||
-rw-r--r-- | decoder/tests/snapshots-ete/ete-ite-instr/ETE_0_s1.ini | 15 | ||||
-rw-r--r-- | decoder/tests/snapshots-ete/ete-ite-instr/ETE_0_s2.ini | 15 | ||||
-rw-r--r-- | decoder/tests/snapshots-ete/ete-ite-instr/bindir_64/OTHERS_exec | bin | 0 -> 114536 bytes | |||
-rw-r--r-- | decoder/tests/snapshots-ete/ete-ite-instr/bindir_64/TEST_NON_DET_CODE_exec | bin | 0 -> 332 bytes | |||
-rw-r--r-- | decoder/tests/snapshots-ete/ete-ite-instr/bindir_64/VAL_NON_DET_CODE_exec | bin | 0 -> 133140 bytes | |||
-rw-r--r-- | decoder/tests/snapshots-ete/ete-ite-instr/bindir_64/VAL_TEST_CODE_exec | bin | 0 -> 183136 bytes | |||
-rw-r--r-- | decoder/tests/snapshots-ete/ete-ite-instr/cpu_0.ini | 32 | ||||
-rw-r--r-- | decoder/tests/snapshots-ete/ete-ite-instr/session1.bin | bin | 0 -> 67 bytes | |||
-rw-r--r-- | decoder/tests/snapshots-ete/ete-ite-instr/session2.bin | bin | 0 -> 53 bytes | |||
-rw-r--r-- | decoder/tests/snapshots-ete/ete-ite-instr/snapshot.ini | 12 | ||||
-rw-r--r-- | decoder/tests/snapshots-ete/ete-ite-instr/trace.ini | 22 |
12 files changed, 97 insertions, 0 deletions
diff --git a/decoder/tests/run_pkt_decode_tests-ete.bash b/decoder/tests/run_pkt_decode_tests-ete.bash index 1bf60a5..a9fe0cc 100755 --- a/decoder/tests/run_pkt_decode_tests-ete.bash +++ b/decoder/tests/run_pkt_decode_tests-ete.bash @@ -55,6 +55,7 @@ declare -a test_dirs_decode=( "001-ack_test" "002-ack_test_scr" "ete-bc-instr" "ete_ip" + "ete-ite-instr" "ete_mem" "ete_spec_1" "ete_spec_2" diff --git a/decoder/tests/snapshots-ete/ete-ite-instr/ETE_0_s1.ini b/decoder/tests/snapshots-ete/ete-ite-instr/ETE_0_s1.ini new file mode 100644 index 0000000..23947f3 --- /dev/null +++ b/decoder/tests/snapshots-ete/ete-ite-instr/ETE_0_s1.ini @@ -0,0 +1,15 @@ +[device] +name=ETE_0_s1 +class=trace_source +type=ETE + + +[regs] +TRCCONFIGR=0x8001 +TRCTRACEIDR=0x1 +TRCDEVARCH=0x47735a13 +TRCIDR0=0x28c1cea1 +TRCIDR1=0x4100fff0 +TRCIDR2=0xd0001088 +TRCIDR8=0x0 + diff --git a/decoder/tests/snapshots-ete/ete-ite-instr/ETE_0_s2.ini b/decoder/tests/snapshots-ete/ete-ite-instr/ETE_0_s2.ini new file mode 100644 index 0000000..063b076 --- /dev/null +++ b/decoder/tests/snapshots-ete/ete-ite-instr/ETE_0_s2.ini @@ -0,0 +1,15 @@ +[device] +name=ETE_0_s2 +class=trace_source +type=ETE + + +[regs] +TRCCONFIGR=0x8001 +TRCTRACEIDR=0x1 +TRCDEVARCH=0x47735a13 +TRCIDR0=0x28c1cea1 +TRCIDR1=0x4100fff0 +TRCIDR2=0xd0001088 +TRCIDR8=0x0 + diff --git a/decoder/tests/snapshots-ete/ete-ite-instr/bindir_64/OTHERS_exec b/decoder/tests/snapshots-ete/ete-ite-instr/bindir_64/OTHERS_exec Binary files differnew file mode 100644 index 0000000..502b47e --- /dev/null +++ b/decoder/tests/snapshots-ete/ete-ite-instr/bindir_64/OTHERS_exec diff --git a/decoder/tests/snapshots-ete/ete-ite-instr/bindir_64/TEST_NON_DET_CODE_exec b/decoder/tests/snapshots-ete/ete-ite-instr/bindir_64/TEST_NON_DET_CODE_exec Binary files differnew file mode 100644 index 0000000..047e0a9 --- /dev/null +++ b/decoder/tests/snapshots-ete/ete-ite-instr/bindir_64/TEST_NON_DET_CODE_exec diff --git a/decoder/tests/snapshots-ete/ete-ite-instr/bindir_64/VAL_NON_DET_CODE_exec b/decoder/tests/snapshots-ete/ete-ite-instr/bindir_64/VAL_NON_DET_CODE_exec Binary files differnew file mode 100644 index 0000000..c31090b --- /dev/null +++ b/decoder/tests/snapshots-ete/ete-ite-instr/bindir_64/VAL_NON_DET_CODE_exec diff --git a/decoder/tests/snapshots-ete/ete-ite-instr/bindir_64/VAL_TEST_CODE_exec b/decoder/tests/snapshots-ete/ete-ite-instr/bindir_64/VAL_TEST_CODE_exec Binary files differnew file mode 100644 index 0000000..d5741ab --- /dev/null +++ b/decoder/tests/snapshots-ete/ete-ite-instr/bindir_64/VAL_TEST_CODE_exec diff --git a/decoder/tests/snapshots-ete/ete-ite-instr/cpu_0.ini b/decoder/tests/snapshots-ete/ete-ite-instr/cpu_0.ini new file mode 100644 index 0000000..8283585 --- /dev/null +++ b/decoder/tests/snapshots-ete/ete-ite-instr/cpu_0.ini @@ -0,0 +1,32 @@ +[device] +name=cpu_0 +class=core +type=ARM-AA64 + +[regs] +PC(size:64)=0x0 +SP(size:64)=0 +SCTLR_EL1=0x0 +CPSR=0x0 + + +[dump1] +file=bindir_64/OTHERS_exec +address=0x00060000 +length=0x1bf68 + +[dump2] +file=bindir_64/VAL_TEST_CODE_exec +address=0x01000000 +length=0x2cb60 + +[dump3] +file=bindir_64/VAL_NON_DET_CODE_exec +address=0x00010000 +length=0x20814 + +[dump4] +file=bindir_64/TEST_NON_DET_CODE_exec +address=0x00050000 +length=0x14c + diff --git a/decoder/tests/snapshots-ete/ete-ite-instr/session1.bin b/decoder/tests/snapshots-ete/ete-ite-instr/session1.bin Binary files differnew file mode 100644 index 0000000..489ae58 --- /dev/null +++ b/decoder/tests/snapshots-ete/ete-ite-instr/session1.bin diff --git a/decoder/tests/snapshots-ete/ete-ite-instr/session2.bin b/decoder/tests/snapshots-ete/ete-ite-instr/session2.bin Binary files differnew file mode 100644 index 0000000..e5c164e --- /dev/null +++ b/decoder/tests/snapshots-ete/ete-ite-instr/session2.bin diff --git a/decoder/tests/snapshots-ete/ete-ite-instr/snapshot.ini b/decoder/tests/snapshots-ete/ete-ite-instr/snapshot.ini new file mode 100644 index 0000000..299b376 --- /dev/null +++ b/decoder/tests/snapshots-ete/ete-ite-instr/snapshot.ini @@ -0,0 +1,12 @@ +[snapshot] +version=1.0 +description=checker_metadata.ini + +[device_list] +device0=cpu_0.ini +device1=ETE_0_s1.ini +device2=ETE_0_s2.ini + +[trace] +metadata=trace.ini + diff --git a/decoder/tests/snapshots-ete/ete-ite-instr/trace.ini b/decoder/tests/snapshots-ete/ete-ite-instr/trace.ini new file mode 100644 index 0000000..1880b66 --- /dev/null +++ b/decoder/tests/snapshots-ete/ete-ite-instr/trace.ini @@ -0,0 +1,22 @@ +[trace_buffers] +buffers=buffer2 + +[buffer1] +name=ETB_1 +file=session1.bin +format=source_data + +[buffer2] +name=ETB_2 +file=session2.bin +format=source_data + + +[source_buffers] +ETE_0_s1=ETB_1 +ETE_0_s2=ETB_2 + +[core_trace_sources] +cpu_0=ETE_0_s1 +cpu_0=ETE_0_s2 + |