summaryrefslogtreecommitdiffstats
path: root/tools/guest-diag/guest_kprobes.sh
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
commit3588d59e251c3256528fb4064b55adfb4988f921 (patch)
tree8348c7754a323b8318efa2631280f24bfe37c1cf /tools/guest-diag/guest_kprobes.sh
parentfcb74dfd32442af859ac45979138b40279f96553 (diff)
downloadopen-iov-3588d59e251c3256528fb4064b55adfb4988f921.tar.gz
open-iov-3588d59e251c3256528fb4064b55adfb4988f921.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.
Diffstat (limited to 'tools/guest-diag/guest_kprobes.sh')
-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)"