lib/tdb: TDB_TRACE support (for developers)
commitb34e3f91dc20d3588f7e661060286fc107d2f16c
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 20 Oct 2009 01:49:41 +0000 (20 12:19 +1030)
committerKarolin Seeger <kseeger@samba.org>
Thu, 26 Nov 2009 10:39:46 +0000 (26 11:39 +0100)
treed755c7653c5ce4d4d56b4cf6c21648533198607c
parent5613d608bd3d7d60852b22fb7a0fc040b0d7e131
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>
(cherry picked from commit 97973362b405e365b9249d95da02ebf3465bb4e1)
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]