From b4870a19e83c5601a867214ddfb7e883d61f9d60 Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Sat, 26 Sep 2026 01:38:46 -0400 Subject: tools/guest-diag: keep bridge_sems replies under the guest-agent size limit --- tools/guest-diag/bridge_sems.sh | 6 ++++-- 1 file 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%%,*} -- cgit v1.2.3