lib/tdb: TDB_TRACE support (for developers)
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 20 Oct 2009 01:49:41 +0000 (12:19 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 21 Oct 2009 13:30:12 +0000 (00:00 +1030)
commit703004340c3e0f43f741bd368d2525cfd187d590
tree586695354ca782f374b2bcffc46a015e70a5fa79
parent1467e5eaab24b2b5c90ba0dd4e9dad4f321568c3
lib/tdb: TDB_TRACE support (for developers)

When TDB_TRACE is defined (in tdb_private.h), verbose tracing of tdb operations is enabled.
This can be replayed using "replay_trace" from http://ccan.ozlabs.org/info/tdb.

The majority of this patch comes from moving internal functions to _<funcname> to
avoid double-tracing.  There should be no additional overhead for the normal (!TDB_TRACE)
case.

Note that the verbose traces compress really well with rzip.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/tdb/common/lock.c
lib/tdb/common/open.c
lib/tdb/common/tdb.c
lib/tdb/common/tdb_private.h
lib/tdb/common/transaction.c
lib/tdb/common/traverse.c
lib/tdb/docs/tracing.txt [new file with mode: 0644]