All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [Build PATCH]Add --enable-lockres-debug
@ 2004-03-17 12:25 Rusty Lynch
  2004-03-17 13:53 ` Mark Fasheh
  0 siblings, 1 reply; 5+ messages in thread
From: Rusty Lynch @ 2004-03-17 12:25 UTC (permalink / raw)
  To: ocfs2-devel

The following patch just enables existing lock resource debug code
that already exist in ocfs.h.  

    --rusty

Index: configure.in
===================================================================
--- configure.in	(revision 781)
+++ configure.in	(working copy)
@@ -104,6 +104,13 @@
 fi
 AC_SUBST(OCFS_MEMDEBUG)
 
+AC_ARG_ENABLE(lockres-debug, [  --enable-lockres-debug=[yes/no]     Turn on lock resource debugging [default=no]],,enable_lockres_debug=no)
+OCFS_DBG_LOCKRES=
+if test "x$enable_lockres_debug" = "xyes"; then
+  OCFS_DBG_LOCKRES=yes
+fi
+AC_SUBST(OCFS_DBG_LOCKRES)
+
 AC_ARG_ENABLE(trace, [  --enable-trace=[yes/no]         Turn on tracing [default=yes]],,enable_trace=yes)
 OCFS_TRACE=
 if test "x$enable_trace" = "xyes"; then
Index: Config.make.in
===================================================================
--- Config.make.in	(revision 781)
+++ Config.make.in	(working copy)
@@ -60,6 +60,7 @@
 OCFS_LARGEIO = @OCFS_LARGEIO@
 OCFS_AIO = @OCFS_AIO@
 OCFS_MEMDEBUG = @OCFS_MEMDEBUG@
+OCFS_DBG_LOCKRES = @OCFS_DBG_LOCKRES@
 OCFS_TRACE = @OCFS_TRACE@
 OCFS_PROCESSOR = @OCFS_PROCESSOR@
 
Index: src/Makefile
===================================================================
--- src/Makefile	(revision 781)
+++ src/Makefile	(working copy)
@@ -33,6 +33,10 @@
 GLOBAL_DEFINES += -DOCFS_LINUX_MEM_DEBUG -DDEBUG_SLAB_ALLOCS
 endif
 
+ifdef OCFS_DBG_LOCKRES
+GLOBAL_DEFINES += -DOCFS_DBG_LOCKRES
+endif
+
 ifdef OCFS_AIO
 GLOBAL_DEFINES += -DAIO_ENABLED
 endif

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-03-17 16:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-17 12:25 [Ocfs2-devel] [Build PATCH]Add --enable-lockres-debug Rusty Lynch
2004-03-17 13:53 ` Mark Fasheh
2004-03-17 15:42   ` Rusty Lynch
2004-03-17 16:17     ` Mark Fasheh
2004-03-17 16:34       ` Sunil Mushran

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.