summaryrefslogtreecommitdiffstats
path: root/tools/guest-diag/guest_pin_stream.py
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-09-29 15:42:58 -0400
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-09-29 15:42:58 -0400
commit32446284021c44f46767ebffd1c64ffddfed1ed3 (patch)
tree6b29f31556a3477906c570f7e8d2f3394268d0c5 /tools/guest-diag/guest_pin_stream.py
parent5757095befda5982e90b3a3af78b57c339e9ab53 (diff)
downloadopen-iov-32446284021c44f46767ebffd1c64ffddfed1ed3.tar.gz
open-iov-32446284021c44f46767ebffd1c64ffddfed1ed3.zip
guest-diag: scan 512KB per 2MB region and start window at 0x200000000 (cover GR GPFIFO rings)
Diffstat (limited to 'tools/guest-diag/guest_pin_stream.py')
-rw-r--r--tools/guest-diag/guest_pin_stream.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/guest-diag/guest_pin_stream.py b/tools/guest-diag/guest_pin_stream.py
index 1ff0d3f..8d0b34d 100644
--- a/tools/guest-diag/guest_pin_stream.py
+++ b/tools/guest-diag/guest_pin_stream.py
@@ -25,7 +25,10 @@ PAMAX = int(sys.argv[5], 16) if len(sys.argv) > 5 else 0x180000000
INTERVAL = float(os.environ.get("STREAM_INTERVAL", "0.25"))
BATCH = 4096
REGION = 0x200000
-SPAN = int(os.environ.get("STREAM_SPAN", "0x10000"), 16)
+# The GR GPFIFO rings sit at 0x20020c000 + 0x3000*rank (region offset 0xc000
+# ..0x45000) and the per-channel push allocations follow; 512 KB per 2 MB
+# region covers both without scanning holes that hold nothing.
+SPAN = int(os.environ.get("STREAM_SPAN", "0x80000"), 16)
TRACE = ("/sys/kernel/tracing/trace"
if os.path.exists("/sys/kernel/tracing/trace")
else "/sys/kernel/debug/tracing/trace")