lockgraphs.sh revision 178842
1#!/bin/sh 2################################################################################ 3# 4# lockgraphs.sh by Michele Dallachiesa -- 2008-05-07 -- v0.1 5# 6# $FreeBSD: head/share/examples/witness/lockgraphs.sh 178842 2008-05-07 21:50:17Z attilio $ 7# 8################################################################################ 9 10sysctl debug.witness.graphs | awk ' 11BEGIN { 12 print "digraph lockgraphs {" 13 } 14 15NR > 1 && $0 ~ /"Giant"/ { 16 gsub(","," -> "); 17 print $0 ";" 18} 19 20END { 21 print "}" 22 }' 23 24#eof 25