cat _kernel.h $* > /tmp/foo.c

prcc /tmp/foo.c | awk -F' ' '$3 == "{}" { print " "$1" -> "$2" ;"; }' | grep -v -E -f noise.dat > /tmp/foo.dat
echo 'digraph foo {' > /tmp/foo.dot
cat page.dat >> /tmp/foo.dot
echo 'node [ shape = record ];' >> /tmp/foo.dot
cat /tmp/foo.dat >> /tmp/foo.dot
cat hint.dat >> /tmp/foo.dot
cat grouping.dat >> /tmp/foo.dot
echo '}' >> /tmp/foo.dot
dot -Tps /tmp/foo.dot > /tmp/foo.ps
