diff options
| -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%%,*} |
