diff options
| author | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-10-02 11:44:31 -0400 |
|---|---|---|
| committer | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-10-02 11:44:31 -0400 |
| commit | 1c99bfbeffff04529f6f669601fdf835a73778da (patch) | |
| tree | 5867bab46e5848541df36c703f6fd8d6d0256e54 /debug/risc-v-gsp-rm-vm/qemu | |
| parent | 2fd653044127a665e4677a2cdfb58120d7b3e16b (diff) | |
| download | open-iov-1c99bfbeffff04529f6f669601fdf835a73778da.tar.gz open-iov-1c99bfbeffff04529f6f669601fdf835a73778da.zip | |
rename (cosmetic): green-eye -> risc-v-gsp-rm-debugger in user-facing names, docs, CLI, launcher and CI workflow; internal greeneye package/module identifiers unchanged (includes in-flight greeneye module edits present in the tree)
Diffstat (limited to 'debug/risc-v-gsp-rm-vm/qemu')
| -rw-r--r-- | debug/risc-v-gsp-rm-vm/qemu/README.md | 6 | ||||
| -rw-r--r-- | debug/risc-v-gsp-rm-vm/qemu/greeneye_trace.c | 10 | ||||
| -rwxr-xr-x | debug/risc-v-gsp-rm-vm/qemu/launch.sh | 4 |
3 files changed, 10 insertions, 10 deletions
diff --git a/debug/risc-v-gsp-rm-vm/qemu/README.md b/debug/risc-v-gsp-rm-vm/qemu/README.md index a6be332..fede60e 100644 --- a/debug/risc-v-gsp-rm-vm/qemu/README.md +++ b/debug/risc-v-gsp-rm-vm/qemu/README.md @@ -1,4 +1,4 @@ -# green-eye QEMU helpers +# risc-v-gsp-rm-debugger QEMU helpers `greeneye_trace.c` is an optional QEMU TCG plugin that records **every** instruction (opt-in) and every memory access as JSONL: @@ -10,9 +10,9 @@ qemu-system-riscv64 -machine virt -m 256M -display none -serial file:/tmp/uart.l -plugin qemu/greeneye-trace.so,path=/tmp/ge-trace.jsonl,start=0x80000000,end=0x80010000,exec=off ``` -This observes more than green-eye's gdbstub layer can: memory accesses +This observes more than risc-v-gsp-rm-debugger's gdbstub layer can: memory accesses between stops, instruction coverage, exact access sizes. Use it when you need -a *complete* memory-activity map; use green-eye hooks/watchpoints when you +a *complete* memory-activity map; use risc-v-gsp-rm-debugger hooks/watchpoints when you need semantics (arguments, returns, structure decoding). The plugin header `qemu-plugin.h` is vendored from QEMU v8.2.2 diff --git a/debug/risc-v-gsp-rm-vm/qemu/greeneye_trace.c b/debug/risc-v-gsp-rm-vm/qemu/greeneye_trace.c index a20748a..f69ec07 100644 --- a/debug/risc-v-gsp-rm-vm/qemu/greeneye_trace.c +++ b/debug/risc-v-gsp-rm-vm/qemu/greeneye_trace.c @@ -1,9 +1,9 @@ /* - * green-eye TCG trace plugin - full instruction/memory activity recording. + * risc-v-gsp-rm-debugger TCG trace plugin - full instruction/memory activity recording. * * This is the "complete map" upgrade from stop-based observation: QEMU calls * the plugin for every translated instruction and every memory access. Output - * is JSONL (one object per line), ready to be folded into a green-eye session: + * is JSONL (one object per line), ready to be folded into a risc-v-gsp-rm-debugger session: * * {"t":"exec","vcpu":0,"pc":"0x80000194"} * {"t":"write","vcpu":0,"addr":"0x80000850","size":8} @@ -93,7 +93,7 @@ static void plugin_exit(qemu_plugin_id_t id, void *userdata) fclose(trace_fp); trace_fp = NULL; } - qemu_plugin_outs("green-eye trace complete\n"); + qemu_plugin_outs("risc-v-gsp-rm-debugger trace complete\n"); } QEMU_PLUGIN_EXPORT int qemu_plugin_install(qemu_plugin_id_t id, @@ -118,11 +118,11 @@ QEMU_PLUGIN_EXPORT int qemu_plugin_install(qemu_plugin_id_t id, trace_fp = fopen(path, "w"); if (!trace_fp) { - qemu_plugin_outs("green-eye: cannot open trace output\n"); + qemu_plugin_outs("risc-v-gsp-rm-debugger: cannot open trace output\n"); return -1; } qemu_plugin_register_vcpu_tb_trans_cb(id, vcpu_tb_trans); qemu_plugin_register_atexit_cb(id, plugin_exit, NULL); - qemu_plugin_outs("green-eye trace plugin armed\n"); + qemu_plugin_outs("risc-v-gsp-rm-debugger trace plugin armed\n"); return 0; } diff --git a/debug/risc-v-gsp-rm-vm/qemu/launch.sh b/debug/risc-v-gsp-rm-vm/qemu/launch.sh index 54460db..bca0d17 100755 --- a/debug/risc-v-gsp-rm-vm/qemu/launch.sh +++ b/debug/risc-v-gsp-rm-vm/qemu/launch.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# Start a green-eye target and keep it alive for `greeneye attach`. +# Start a risc-v-gsp-rm-debugger target and keep it alive for `greeneye attach`. set -euo pipefail HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -exec "$HERE/../greeneye.sh" launch "$@" +exec "$HERE/../risc-v-gsp-rm-debugger.sh" launch "$@" |
