lib/tdb: TDB_TRACE support (for developers)
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 20 Oct 2009 01:49:41 +0000 (12:19 +1030)
committerStefan Metzmacher <metze@samba.org>
Wed, 16 Dec 2009 07:03:49 +0000 (08:03 +0100)
commitb01b756cb577f32a1ec4597efb00017241e01685
tree78d25f28576e2c06a2728f3f04afe03f328a53ce
parent43c97b259b19c42b4edc7f83dbfc5e486568b4e3
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 samba commit 703004340c3e0f43f741bd368d2525cfd187d590)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
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]