diff options
author | rsc <devnull@localhost> | 2005-02-16 17:20:52 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-02-16 17:20:52 +0000 |
commit | 2faae3ce69586f60a3a764e58d2d804801ed4890 (patch) | |
tree | 9db2652616b1f02b3a18873f21ab71d93b883885 /acid/venti | |
parent | d7688cce37173e43796f5243da7507b9e7c7a063 (diff) | |
download | plan9port-2faae3ce69586f60a3a764e58d2d804801ed4890.tar.gz plan9port-2faae3ce69586f60a3a764e58d2d804801ed4890.tar.bz2 plan9port-2faae3ce69586f60a3a764e58d2d804801ed4890.zip |
dump logs
Diffstat (limited to 'acid/venti')
-rw-r--r-- | acid/venti | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/acid/venti b/acid/venti new file mode 100644 index 00000000..84e207c3 --- /dev/null +++ b/acid/venti @@ -0,0 +1,28 @@ +defn logs() { + local h, p; + p = (vl+sizeofQLock); + loop 1, 1024 do + { + h = (VtLog)*p; + while h do + { + print("log(",h\X,") // ",*(h.name\s),"\n"); + h = (VtLog)h.next; + } + p = p+4; + } +} + +defn log(l) { + local c, nc; + + l = (VtLog)l; + c = l.w; + loop 1,l.nchunk do { + c = c+sizeofVtLogChunk; + if c == l.chunk+l.nchunk*sizeofVtLogChunk then + c = l.chunk; + c = (VtLogChunk)c; + print(stringn(c.p, c.wp-c.p)\s); + } +} |