summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-09-29 17:31:55 -0400
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-09-29 17:31:55 -0400
commitebf8e34a348a4563f7581b71a0c0f12d20851561 (patch)
treec0ac6fd821bc669aeb92f185f90e360a0a58213a
parentbb5b12d63c078f651e0b47043f23997cf3255921 (diff)
downloadopen-iov-ebf8e34a348a4563f7581b71a0c0f12d20851561.tar.gz
open-iov-ebf8e34a348a4563f7581b71a0c0f12d20851561.zip
guest-diag: enlarge and clear the trace ring at probe install
The client's spin floods the default ring with uvmt/uvsv events; a one-shot uvbp event was overwritten before the pin scanner read it (push-buffer pin landed ~50 s after the client began pushing). 64 MB ring + clear.
-rw-r--r--tools/guest-diag/guest_kprobes.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/guest-diag/guest_kprobes.sh b/tools/guest-diag/guest_kprobes.sh
index 3a7e2b4..3f28b29 100644
--- a/tools/guest-diag/guest_kprobes.sh
+++ b/tools/guest-diag/guest_kprobes.sh
@@ -67,5 +67,10 @@ echo "-:uvsvr" >> "$TR/kprobe_events" 2>/dev/null
echo 'r:uvsvr uvm_gpu_tracking_semaphore_is_value_completed $retval' >> "$TR/kprobe_events" 2>/dev/null
echo 1 > "$TR/events/kprobes/enable" 2>/dev/null || true
+# The client's spin floods the trace with uvmt/uvsv events; a one-shot uvbp
+# (first push-buffer begin) can be overwritten before the pin scanner reads
+# it. Enlarge the ring and clear it so the first events survive.
+echo 65536 > "$TR/buffer_size_kb" 2>/dev/null || true
+echo > "$TR/trace" 2>/dev/null || true
echo "--- installed probes ---"
grep -E 'uvmt|uvch|uvbp|uvpbf|uvtw|uvsv' "$TR/kprobe_events" 2>/dev/null || echo "(none)"