aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Leach <mike.leach@linaro.org>2020-03-30 19:53:07 +0100
committerMike Leach <mike.leach@linaro.org>2021-01-08 17:05:25 +0000
commit0fd01c1ec0f06555cf3fefd54ab6ca3810a7d119 (patch)
tree5a674a5d89ff3960f2e06878bd6fb039d7300fe2
parentc54527cbf9f61488a67f8fb3d8689c8ea5202d49 (diff)
downloadOpenCSD-0fd01c1ec0f06555cf3fefd54ab6ca3810a7d119.tar.gz
tests: ete: Add Q element test.
Signed-off-by: Mike Leach <mike.leach@linaro.org>
-rwxr-xr-xdecoder/tests/run_pkt_decode_tests-ete.bash1
-rw-r--r--decoder/tests/snapshots-ete/q_elem/ETE_0_s1.ini15
-rw-r--r--decoder/tests/snapshots-ete/q_elem/ETE_0_s2.ini15
-rw-r--r--decoder/tests/snapshots-ete/q_elem/bindir_64/OTHERS_execbin0 -> 411584 bytes
-rw-r--r--decoder/tests/snapshots-ete/q_elem/bindir_64/VAL_NON_DET_CODE_execbin0 -> 131520 bytes
-rw-r--r--decoder/tests/snapshots-ete/q_elem/cpu_0.ini22
-rw-r--r--decoder/tests/snapshots-ete/q_elem/session1.binbin0 -> 522 bytes
-rw-r--r--decoder/tests/snapshots-ete/q_elem/session2.binbin0 -> 729 bytes
-rw-r--r--decoder/tests/snapshots-ete/q_elem/snapshot.ini12
-rw-r--r--decoder/tests/snapshots-ete/q_elem/trace.ini23
10 files changed, 88 insertions, 0 deletions
diff --git a/decoder/tests/run_pkt_decode_tests-ete.bash b/decoder/tests/run_pkt_decode_tests-ete.bash
index a5bee1f..509438e 100755
--- a/decoder/tests/run_pkt_decode_tests-ete.bash
+++ b/decoder/tests/run_pkt_decode_tests-ete.bash
@@ -50,6 +50,7 @@ declare -a test_dirs_decode=( "001-ack_test"
"ete_spec_3"
"event_test"
"infrastructure"
+ "q_elem"
"src_addr"
"tme_simple"
"tme_tcancel"
diff --git a/decoder/tests/snapshots-ete/q_elem/ETE_0_s1.ini b/decoder/tests/snapshots-ete/q_elem/ETE_0_s1.ini
new file mode 100644
index 0000000..1c8e642
--- /dev/null
+++ b/decoder/tests/snapshots-ete/q_elem/ETE_0_s1.ini
@@ -0,0 +1,15 @@
+[device]
+name=ETE_0_s1
+class=trace_source
+type=ETE
+
+
+[regs]
+TRCCONFIGR=0xa001
+TRCTRACEIDR=0x1
+TRCDEVARCH=0x47705a13
+TRCIDR0=0x2801cea1
+TRCIDR1=0x4100fff0
+TRCIDR2=0xd0001088
+TRCIDR8=0x0
+
diff --git a/decoder/tests/snapshots-ete/q_elem/ETE_0_s2.ini b/decoder/tests/snapshots-ete/q_elem/ETE_0_s2.ini
new file mode 100644
index 0000000..453a397
--- /dev/null
+++ b/decoder/tests/snapshots-ete/q_elem/ETE_0_s2.ini
@@ -0,0 +1,15 @@
+[device]
+name=ETE_0_s2
+class=trace_source
+type=ETE
+
+
+[regs]
+TRCCONFIGR=0xa001
+TRCTRACEIDR=0x1
+TRCDEVARCH=0x47705a13
+TRCIDR0=0x2801cea1
+TRCIDR1=0x4100fff0
+TRCIDR2=0xd0001088
+TRCIDR8=0x0
+
diff --git a/decoder/tests/snapshots-ete/q_elem/bindir_64/OTHERS_exec b/decoder/tests/snapshots-ete/q_elem/bindir_64/OTHERS_exec
new file mode 100644
index 0000000..d7965fa
--- /dev/null
+++ b/decoder/tests/snapshots-ete/q_elem/bindir_64/OTHERS_exec
Binary files differ
diff --git a/decoder/tests/snapshots-ete/q_elem/bindir_64/VAL_NON_DET_CODE_exec b/decoder/tests/snapshots-ete/q_elem/bindir_64/VAL_NON_DET_CODE_exec
new file mode 100644
index 0000000..1cab79d
--- /dev/null
+++ b/decoder/tests/snapshots-ete/q_elem/bindir_64/VAL_NON_DET_CODE_exec
Binary files differ
diff --git a/decoder/tests/snapshots-ete/q_elem/cpu_0.ini b/decoder/tests/snapshots-ete/q_elem/cpu_0.ini
new file mode 100644
index 0000000..0adec73
--- /dev/null
+++ b/decoder/tests/snapshots-ete/q_elem/cpu_0.ini
@@ -0,0 +1,22 @@
+[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=0x647c0
+
+[dump2]
+file=bindir_64/VAL_NON_DET_CODE_exec
+address=0x00010000
+length=0x201c0
+
diff --git a/decoder/tests/snapshots-ete/q_elem/session1.bin b/decoder/tests/snapshots-ete/q_elem/session1.bin
new file mode 100644
index 0000000..4696710
--- /dev/null
+++ b/decoder/tests/snapshots-ete/q_elem/session1.bin
Binary files differ
diff --git a/decoder/tests/snapshots-ete/q_elem/session2.bin b/decoder/tests/snapshots-ete/q_elem/session2.bin
new file mode 100644
index 0000000..7467aa2
--- /dev/null
+++ b/decoder/tests/snapshots-ete/q_elem/session2.bin
Binary files differ
diff --git a/decoder/tests/snapshots-ete/q_elem/snapshot.ini b/decoder/tests/snapshots-ete/q_elem/snapshot.ini
new file mode 100644
index 0000000..299b376
--- /dev/null
+++ b/decoder/tests/snapshots-ete/q_elem/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/q_elem/trace.ini b/decoder/tests/snapshots-ete/q_elem/trace.ini
new file mode 100644
index 0000000..1e22baf
--- /dev/null
+++ b/decoder/tests/snapshots-ete/q_elem/trace.ini
@@ -0,0 +1,23 @@
+[trace_buffers]
+#buffers=buffer2,buffer1
+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
+