DF-2940 / watch.sh
#!/bin/sh # DF-2940 — capture evidence of the violation (run alongside trigger.sh) # watchdog: snapshots the mpipe state from dmesg and the process table. : > /root/poc/violations.txt while :; do dmesg 2>/dev/null | grep -E "dmtc_destroy|mpipe_done: enter" >> /root/poc/violations.txt ps ax -o stat,wchan,command 2>/dev/null | grep -E "^.. *D.*(dmtbl|waitmsg)" >> /root/poc/wedge_ps.txt sleep 2 done |