From ebf8e34a348a4563f7581b71a0c0f12d20851561 Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Tue, 29 Sep 2026 17:31:55 -0400 Subject: 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. --- tools/guest-diag/guest_kprobes.sh | 5 +++++ 1 file changed, 5 insertions(+) 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)" -- cgit v1.2.3