diff options
author | attilio <attilio@FreeBSD.org> | 2008-05-07 21:41:36 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2008-05-07 21:41:36 +0000 |
commit | 0ce490cd030083500502567e22b65997c9131cd6 (patch) | |
tree | 0b99f8a74ea5c3904237d33a0522aba5e7292462 /secure | |
parent | 57e87ccecba1cf8105d49f6403df79e7ec9960ed (diff) | |
download | FreeBSD-src-0ce490cd030083500502567e22b65997c9131cd6.zip FreeBSD-src-0ce490cd030083500502567e22b65997c9131cd6.tar.gz |
Add a new witness sysctl which returns the relations between any lock
and its children in the form:
"parent","child"
so that head and bottom of an oriented graph can be easilly detected and
various form of diagrams can be build.
The sysctl is called debug.witness.graphs and it is read-only; in order
to get the list of relations, a simple:
#sysctl debug.witness.graphs
will do the trick.
This approach has been choosen in order to support easilly things like
the DOT format and such. Soon, an auto-explicative awk script, which
filters simple informations returned by the sysctl and converts them into
a real DOT script, will be committed to the repository between examples.
Discussed with: rwatson
Diffstat (limited to 'secure')
0 files changed, 0 insertions, 0 deletions