PageRenderTime 40ms CodeModel.GetById 38ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/share/examples/witness/lockgraphs.sh

https://bitbucket.org/freebsd/freebsd-head/
Shell | 24 lines | 13 code | 2 blank | 9 comment | 0 complexity | f33f0a53d015957996494dfc0d007fc5 MD5 | raw file
 1#!/bin/sh
 2################################################################################
 3#
 4# lockgraphs.sh by Michele Dallachiesa -- 2008-05-07 -- v0.1
 5#
 6# $FreeBSD$
 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