summaryrefslogtreecommitdiffstats
path: root/tools/guest-diag/redboot-triage.sh
blob: 041e9a6fb0d91fe1ab41e52ecd6ddae647108d2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# redboot-triage.sh <live-log> [base-va] - pull the r613b/r613d wedge-class
# evidence from a boot's dmesg capture in one pass.
#   usage: redboot-triage.sh /tmp/opencode/rNNN-live.log [0x7fc716c00000]
set -u
LOG="${1:?usage: redboot-triage.sh <log> [base-va]}"
VA="${2:-}"
echo "=== $LOG ==="
echo "--- sema-shadow-dst (r614 witness; the red-boot entry point)"
grep -h "sema-shadow-dst" "$LOG" | head -12
echo "--- GRFILL-DROP + held-for-retry + degenerate refusal"
grep -hE "GRFILL-DROP|launch held for a bounded retry|GR submit refused|GR forward failed|GR-STALL-fwd-fail|GR-COMPLETE-SW" "$LOG" | tail -24
echo "--- arg-miss walk lists (r614: full, untruncated)"
grep -h "arg-miss" "$LOG" | tail -6
echo "--- cand[0] arg base probes (first resolution of each client)"
grep -h "cand\[0\] arg base" "$LOG" | tail -12
echo "--- EPOST drop signature (status-ring starvation rounds)"
grep -h "no postable event" "$LOG" | tail -6
if [ -n "$VA" ]; then
	echo "--- all lines for base $VA"
	grep -h "$VA" "$LOG" | grep -vE "ldatrace|dmatrace" | head -30
fi
echo "=== done ==="