]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - share/examples/witness/lockgraphs.sh
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / share / examples / witness / lockgraphs.sh
1 #!/bin/sh
2 ################################################################################
3 #
4 # lockgraphs.sh by Michele Dallachiesa -- 2008-05-07 -- v0.1
5 #
6 # $FreeBSD$
7 #
8 ################################################################################
9
10 sysctl debug.witness.graphs | awk '
11 BEGIN {
12   print "digraph lockgraphs {"
13   }
14
15 NR > 1 && $0 ~ /"Giant"/ {
16   gsub(","," -> ");
17   print $0 ";"
18 }
19
20 END { 
21   print "}"
22   }'
23
24 #eof