summaryrefslogtreecommitdiffstats
path: root/decoder/tests/snapshots-ete/infrastructure
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 07:24:57 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 07:24:57 +0000
commit070852d8604cece0c31f28ff3eb8d21d9ba415fb (patch)
tree9097175a6a5b8b7e37af9a96269ac0b61a0189cd /decoder/tests/snapshots-ete/infrastructure
parentInitial commit. (diff)
downloadlibopencsd-upstream.tar.xz
libopencsd-upstream.zip
Adding upstream version 1.3.3.upstream/1.3.3upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--decoder/tests/snapshots-ete/infrastructure/README-TEST-NOTES.txt9
-rw-r--r--decoder/tests/snapshots-ete/infrastructure/cpu_0.ini16
-rw-r--r--decoder/tests/snapshots-ete/infrastructure/cpu_1.ini16
-rw-r--r--decoder/tests/snapshots-ete/infrastructure/cpu_2.ini16
-rw-r--r--decoder/tests/snapshots-ete/infrastructure/cpu_3.ini16
-rw-r--r--decoder/tests/snapshots-ete/infrastructure/cpu_4.ini16
-rw-r--r--decoder/tests/snapshots-ete/infrastructure/cpu_5.ini16
-rw-r--r--decoder/tests/snapshots-ete/infrastructure/cstrace.binbin0 -> 65536 bytes
-rw-r--r--decoder/tests/snapshots-ete/infrastructure/cstraceitm.binbin0 -> 1984 bytes
-rw-r--r--decoder/tests/snapshots-ete/infrastructure/device_10.ini14
-rw-r--r--decoder/tests/snapshots-ete/infrastructure/device_11.ini14
-rw-r--r--decoder/tests/snapshots-ete/infrastructure/device_12.ini7
-rw-r--r--decoder/tests/snapshots-ete/infrastructure/device_6.ini14
-rw-r--r--decoder/tests/snapshots-ete/infrastructure/device_7.ini15
-rw-r--r--decoder/tests/snapshots-ete/infrastructure/device_8.ini14
-rw-r--r--decoder/tests/snapshots-ete/infrastructure/device_9.ini14
-rw-r--r--decoder/tests/snapshots-ete/infrastructure/kernel_dump.binbin0 -> 327680 bytes
-rw-r--r--decoder/tests/snapshots-ete/infrastructure/snapshot.ini21
-rw-r--r--decoder/tests/snapshots-ete/infrastructure/trace.ini29
19 files changed, 247 insertions, 0 deletions
diff --git a/decoder/tests/snapshots-ete/infrastructure/README-TEST-NOTES.txt b/decoder/tests/snapshots-ete/infrastructure/README-TEST-NOTES.txt
new file mode 100644
index 0000000..afacd23
--- /dev/null
+++ b/decoder/tests/snapshots-ete/infrastructure/README-TEST-NOTES.txt
@@ -0,0 +1,9 @@
+ETE Test Snapshot.
+------------------
+
+This test snapshot is an ETMv4 sourced trace snapshot, with the device files altered
+from ETMv4 to ETE. This is to test the infrastructure of creating and running an ETE
+decoder, not the new packet types etc.
+
+Running this on the library may will cause errors on ERET packets unless the debug define
+is set to ignore EREI (ETE_TRACE_ERET_AS_IGNORE in trc_pkt_proc_etmv4i_impl.cpp)
diff --git a/decoder/tests/snapshots-ete/infrastructure/cpu_0.ini b/decoder/tests/snapshots-ete/infrastructure/cpu_0.ini
new file mode 100644
index 0000000..957ccd4
--- /dev/null
+++ b/decoder/tests/snapshots-ete/infrastructure/cpu_0.ini
@@ -0,0 +1,16 @@
+[device]
+name=cpu_0
+class=core
+type=Cortex-A53
+
+[regs]
+PC(size:64)=0xFFFFFFC000081000
+SP(size:64)=0
+SCTLR_EL1=0x1007
+CPSR=0x1C5
+
+[dump1]
+file=kernel_dump.bin
+address=0xFFFFFFC000081000
+length=0x00050000
+
diff --git a/decoder/tests/snapshots-ete/infrastructure/cpu_1.ini b/decoder/tests/snapshots-ete/infrastructure/cpu_1.ini
new file mode 100644
index 0000000..fc9e7c9
--- /dev/null
+++ b/decoder/tests/snapshots-ete/infrastructure/cpu_1.ini
@@ -0,0 +1,16 @@
+[device]
+name=cpu_1
+class=core
+type=Cortex-A53
+
+[regs]
+PC(size:64)=0xFFFFFFC000081000
+SP(size:64)=0
+SCTLR_EL1=0x1007
+CPSR=0x1C5
+
+[dump1]
+file=kernel_dump.bin
+address=0xFFFFFFC000081000
+length=0x00050000
+
diff --git a/decoder/tests/snapshots-ete/infrastructure/cpu_2.ini b/decoder/tests/snapshots-ete/infrastructure/cpu_2.ini
new file mode 100644
index 0000000..d2e7f20
--- /dev/null
+++ b/decoder/tests/snapshots-ete/infrastructure/cpu_2.ini
@@ -0,0 +1,16 @@
+[device]
+name=cpu_2
+class=core
+type=Cortex-A53
+
+[regs]
+PC(size:64)=0xFFFFFFC000081000
+SP(size:64)=0
+SCTLR_EL1=0x1007
+CPSR=0x1C5
+
+[dump1]
+file=kernel_dump.bin
+address=0xFFFFFFC000081000
+length=0x00050000
+
diff --git a/decoder/tests/snapshots-ete/infrastructure/cpu_3.ini b/decoder/tests/snapshots-ete/infrastructure/cpu_3.ini
new file mode 100644
index 0000000..ef5a6f1
--- /dev/null
+++ b/decoder/tests/snapshots-ete/infrastructure/cpu_3.ini
@@ -0,0 +1,16 @@
+[device]
+name=cpu_3
+class=core
+type=Cortex-A53
+
+[regs]
+PC(size:64)=0xFFFFFFC000081000
+SP(size:64)=0
+SCTLR_EL1=0x1007
+CPSR=0x1C5
+
+[dump1]
+file=kernel_dump.bin
+address=0xFFFFFFC000081000
+length=0x00050000
+
diff --git a/decoder/tests/snapshots-ete/infrastructure/cpu_4.ini b/decoder/tests/snapshots-ete/infrastructure/cpu_4.ini
new file mode 100644
index 0000000..6622112
--- /dev/null
+++ b/decoder/tests/snapshots-ete/infrastructure/cpu_4.ini
@@ -0,0 +1,16 @@
+[device]
+name=cpu_4
+class=core
+type=Cortex-A57
+
+[regs]
+PC(size:64)=0xFFFFFFC000081000
+SP(size:64)=0
+SCTLR_EL1=0x1007
+CPSR=0x1C5
+
+[dump1]
+file=kernel_dump.bin
+address=0xFFFFFFC000081000
+length=0x00050000
+
diff --git a/decoder/tests/snapshots-ete/infrastructure/cpu_5.ini b/decoder/tests/snapshots-ete/infrastructure/cpu_5.ini
new file mode 100644
index 0000000..78a8777
--- /dev/null
+++ b/decoder/tests/snapshots-ete/infrastructure/cpu_5.ini
@@ -0,0 +1,16 @@
+[device]
+name=cpu_5
+class=core
+type=Cortex-A57
+
+[regs]
+PC(size:64)=0xFFFFFFC000081000
+SP(size:64)=0
+SCTLR_EL1=0x1007
+CPSR=0x1C5
+
+[dump1]
+file=kernel_dump.bin
+address=0xFFFFFFC000081000
+length=0x00050000
+
diff --git a/decoder/tests/snapshots-ete/infrastructure/cstrace.bin b/decoder/tests/snapshots-ete/infrastructure/cstrace.bin
new file mode 100644
index 0000000..ff34c50
--- /dev/null
+++ b/decoder/tests/snapshots-ete/infrastructure/cstrace.bin
Binary files differ
diff --git a/decoder/tests/snapshots-ete/infrastructure/cstraceitm.bin b/decoder/tests/snapshots-ete/infrastructure/cstraceitm.bin
new file mode 100644
index 0000000..029505c
--- /dev/null
+++ b/decoder/tests/snapshots-ete/infrastructure/cstraceitm.bin
Binary files differ
diff --git a/decoder/tests/snapshots-ete/infrastructure/device_10.ini b/decoder/tests/snapshots-ete/infrastructure/device_10.ini
new file mode 100644
index 0000000..492d866
--- /dev/null
+++ b/decoder/tests/snapshots-ete/infrastructure/device_10.ini
@@ -0,0 +1,14 @@
+[device]
+name=ETM_4
+class=trace_source
+type=ETE
+
+[regs]
+TRCCONFIGR(0x004)=0x000000C1
+TRCTRACEIDR(0x010)=0x00000014
+TRCAUTHSTATUS(0x3EE)=0x000000CC
+TRCIDR0(0x078)=0x28000EA1
+TRCIDR1(0x079)=0x4100FFF0
+TRCIDR2(0x07A)=0x00000488
+TRCIDR8(0x060)=0x00000000
+TRCDEVARCH(0x3EF)=0x47705A13 \ No newline at end of file
diff --git a/decoder/tests/snapshots-ete/infrastructure/device_11.ini b/decoder/tests/snapshots-ete/infrastructure/device_11.ini
new file mode 100644
index 0000000..6685857
--- /dev/null
+++ b/decoder/tests/snapshots-ete/infrastructure/device_11.ini
@@ -0,0 +1,14 @@
+[device]
+name=ETM_5
+class=trace_source
+type=ETE
+
+[regs]
+TRCCONFIGR(0x004)=0x000000C1
+TRCTRACEIDR(0x010)=0x00000015
+TRCAUTHSTATUS(0x3EE)=0x000000CC
+TRCIDR0(0x078)=0x28000EA1
+TRCIDR1(0x079)=0x4100FFF0
+TRCIDR2(0x07A)=0x00000488
+TRCIDR8(0x060)=0x00000000
+TRCDEVARCH(0x3EF)=0x47705A13
diff --git a/decoder/tests/snapshots-ete/infrastructure/device_12.ini b/decoder/tests/snapshots-ete/infrastructure/device_12.ini
new file mode 100644
index 0000000..b6cc8a3
--- /dev/null
+++ b/decoder/tests/snapshots-ete/infrastructure/device_12.ini
@@ -0,0 +1,7 @@
+[device]
+name=STM_12
+class=trace_source
+type=STM
+
+[regs]
+STMTCSR(0x3A0)=0x00A00005
diff --git a/decoder/tests/snapshots-ete/infrastructure/device_6.ini b/decoder/tests/snapshots-ete/infrastructure/device_6.ini
new file mode 100644
index 0000000..002a84a
--- /dev/null
+++ b/decoder/tests/snapshots-ete/infrastructure/device_6.ini
@@ -0,0 +1,14 @@
+[device]
+name=ETM_0
+class=trace_source
+type=ETE
+
+[regs]
+TRCCONFIGR(0x004)=0x000000C1
+TRCTRACEIDR(0x010)=0x00000010
+TRCAUTHSTATUS(0x3EE)=0x000000CC
+TRCIDR0(0x078)=0x28000EA1
+TRCIDR1(0x079)=0x4100FFF0
+TRCIDR2(0x07A)=0x00000488
+TRCIDR8(0x060)=0x00000000
+TRCDEVARCH(0x3EF)=0x47705A13 \ No newline at end of file
diff --git a/decoder/tests/snapshots-ete/infrastructure/device_7.ini b/decoder/tests/snapshots-ete/infrastructure/device_7.ini
new file mode 100644
index 0000000..ab640d3
--- /dev/null
+++ b/decoder/tests/snapshots-ete/infrastructure/device_7.ini
@@ -0,0 +1,15 @@
+[device]
+name=ETM_1
+class=trace_source
+type=ETE
+
+[regs]
+TRCCONFIGR(0x004)=0x000000C1
+TRCTRACEIDR(0x010)=0x00000011
+TRCAUTHSTATUS(0x3EE)=0x000000CC
+TRCIDR0(0x078)=0x28000EA1
+TRCIDR1(0x079)=0x4100FFF0
+TRCIDR2(0x07A)=0x00000488
+TRCIDR8(0x060)=0x00000000
+TRCDEVARCH(0x3EF)=0x47705A13
+
diff --git a/decoder/tests/snapshots-ete/infrastructure/device_8.ini b/decoder/tests/snapshots-ete/infrastructure/device_8.ini
new file mode 100644
index 0000000..b7c34b1
--- /dev/null
+++ b/decoder/tests/snapshots-ete/infrastructure/device_8.ini
@@ -0,0 +1,14 @@
+[device]
+name=ETM_2
+class=trace_source
+type=ETE
+
+[regs]
+TRCCONFIGR(0x004)=0x000000C1
+TRCTRACEIDR(0x010)=0x00000012
+TRCAUTHSTATUS(0x3EE)=0x000000CC
+TRCIDR0(0x078)=0x28000EA1
+TRCIDR1(0x079)=0x4100FFF0
+TRCIDR2(0x07A)=0x00000488
+TRCIDR8(0x060)=0x00000000
+TRCDEVARCH(0x3EF)=0x47705A13
diff --git a/decoder/tests/snapshots-ete/infrastructure/device_9.ini b/decoder/tests/snapshots-ete/infrastructure/device_9.ini
new file mode 100644
index 0000000..aa6396a
--- /dev/null
+++ b/decoder/tests/snapshots-ete/infrastructure/device_9.ini
@@ -0,0 +1,14 @@
+[device]
+name=ETM_3
+class=trace_source
+type=ETE
+
+[regs]
+TRCCONFIGR(0x004)=0x000000C1
+TRCTRACEIDR(0x010)=0x00000013
+TRCAUTHSTATUS(0x3EE)=0x000000CC
+TRCIDR0(0x078)=0x28000EA1
+TRCIDR1(0x079)=0x4100FFF0
+TRCIDR2(0x07A)=0x00000488
+TRCIDR8(0x060)=0x00000000
+TRCDEVARCH(0x3EF)=0x47705A13
diff --git a/decoder/tests/snapshots-ete/infrastructure/kernel_dump.bin b/decoder/tests/snapshots-ete/infrastructure/kernel_dump.bin
new file mode 100644
index 0000000..af4eed0
--- /dev/null
+++ b/decoder/tests/snapshots-ete/infrastructure/kernel_dump.bin
Binary files differ
diff --git a/decoder/tests/snapshots-ete/infrastructure/snapshot.ini b/decoder/tests/snapshots-ete/infrastructure/snapshot.ini
new file mode 100644
index 0000000..7e1b613
--- /dev/null
+++ b/decoder/tests/snapshots-ete/infrastructure/snapshot.ini
@@ -0,0 +1,21 @@
+[snapshot]
+version=1.0
+
+[device_list]
+device0=cpu_0.ini
+device1=cpu_1.ini
+device2=cpu_2.ini
+device3=cpu_3.ini
+device4=cpu_4.ini
+device5=cpu_5.ini
+device6=device_6.ini
+device7=device_7.ini
+device8=device_8.ini
+device9=device_9.ini
+device10=device_10.ini
+device11=device_11.ini
+device12=device_12.ini
+
+
+[trace]
+metadata=trace.ini
diff --git a/decoder/tests/snapshots-ete/infrastructure/trace.ini b/decoder/tests/snapshots-ete/infrastructure/trace.ini
new file mode 100644
index 0000000..ef7ff33
--- /dev/null
+++ b/decoder/tests/snapshots-ete/infrastructure/trace.ini
@@ -0,0 +1,29 @@
+[trace_buffers]
+buffers=buffer0,buffer1
+
+[buffer0]
+name=ETB_0
+file=cstrace.bin
+format=coresight
+
+[buffer1]
+name=ETB_1
+file=cstraceitm.bin
+format=coresight
+
+[source_buffers]
+ETM_0=ETB_0
+ETM_1=ETB_0
+ETM_2=ETB_0
+ETM_3=ETB_0
+ETM_4=ETB_0
+ETM_5=ETB_0
+STM_12=ETB_1
+
+[core_trace_sources]
+cpu_0=ETM_0
+cpu_1=ETM_1
+cpu_2=ETM_2
+cpu_3=ETM_3
+cpu_4=ETM_4
+cpu_5=ETM_5