summaryrefslogtreecommitdiffstats
path: root/debug/risc-v-gsp-rm-vm/examples/probes
diff options
context:
space:
mode:
Diffstat (limited to 'debug/risc-v-gsp-rm-vm/examples/probes')
-rw-r--r--debug/risc-v-gsp-rm-vm/examples/probes/demo_probes.json25
1 files changed, 25 insertions, 0 deletions
diff --git a/debug/risc-v-gsp-rm-vm/examples/probes/demo_probes.json b/debug/risc-v-gsp-rm-vm/examples/probes/demo_probes.json
new file mode 100644
index 0000000..db623f1
--- /dev/null
+++ b/debug/risc-v-gsp-rm-vm/examples/probes/demo_probes.json
@@ -0,0 +1,25 @@
+{
+ "probes": [
+ {
+ "name": "sum-nonzero",
+ "symbol": "rpc_sum",
+ "when": "a1 > 0",
+ "on_enter": {
+ "log": ["a0", "a1"],
+ "dump": [{"reg": "a0", "len": 32, "label": "sum-input"}],
+ "note": "rpc_sum with a non-zero length"
+ },
+ "on_leave": {"log": ["retval"]}
+ },
+ {
+ "name": "state-machine",
+ "symbol": "rpc_state",
+ "on_leave": {"log": ["retval"], "note": "state transition"}
+ },
+ {
+ "name": "trap",
+ "symbol": "rpc_fault",
+ "on_enter": {"note": "rpc_fault entered; the ebreak trap follows"}
+ }
+ ]
+}