summaryrefslogtreecommitdiffstats
path: root/tools/guest-diag
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-09-26 01:38:46 -0400
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-09-26 01:38:46 -0400
commitd5a455f48e9c56b10617c4bd82bf90e68b3e2c9e (patch)
tree4b2dbdde332a10ea56b1bf5f45e5c34d42a73e00 /tools/guest-diag
parentfd3a45a6bc5bd80e9104621e05477748463e4916 (diff)
downloadopen-iov-d5a455f48e9c56b10617c4bd82bf90e68b3e2c9e.tar.gz
open-iov-d5a455f48e9c56b10617c4bd82bf90e68b3e2c9e.zip
tools/guest-diag: keep bridge_sems replies under the guest-agent size limit
Diffstat (limited to 'tools/guest-diag')
-rwxr-xr-xtools/guest-diag/bridge_sems.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/guest-diag/bridge_sems.sh b/tools/guest-diag/bridge_sems.sh
index 067a9ee..f54801d 100755
--- a/tools/guest-diag/bridge_sems.sh
+++ b/tools/guest-diag/bridge_sems.sh
@@ -25,8 +25,10 @@ for i in $(seq 1 "$ITER"); do
cursor=$START
total=0
- for chunk in $(seq 1 40); do
- mapfile -t lines < <(timeout 60 $VMEXEC exec --timeout 50 "sudo python3 /tmp/pmapall.py $pid $cursor 100" 2>/dev/null | grep -aE '^0x[0-9a-f]+,0x[0-9a-f]+$')
+ # Keep each guest-agent reply small: large outputs come back truncated
+ # ("Unterminated string"), which silently drops all but the last line.
+ for chunk in $(seq 1 120); do
+ mapfile -t lines < <(timeout 60 $VMEXEC exec --timeout 50 "sudo python3 /tmp/pmapall.py $pid $cursor 32" 2>/dev/null | grep -aE '^0x[0-9a-f]+,0x[0-9a-f]+$')
[ "${#lines[@]}" -gt 0 ] || break
for l in "${lines[@]}"; do
va=${l%%,*}