diff options
| author | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-09-26 01:38:46 -0400 |
|---|---|---|
| committer | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-09-26 01:38:46 -0400 |
| commit | b4870a19e83c5601a867214ddfb7e883d61f9d60 (patch) | |
| tree | 5c104dcf1dc7e73cb9b81182de2e54f0d985d5c3 /tools | |
| parent | 84ed8b47d116c74795e1047d6f056606346d23ce (diff) | |
| download | open-iov-b4870a19e83c5601a867214ddfb7e883d61f9d60.tar.gz open-iov-b4870a19e83c5601a867214ddfb7e883d61f9d60.zip | |
tools/guest-diag: keep bridge_sems replies under the guest-agent size limit
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/guest-diag/bridge_sems.sh | 6 |
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%%,*} |
