[Ocfs2-devel] [Build PATCH]Add --enable-lockres-debug

Mark Fasheh mark.fasheh at oracle.com
Wed Mar 17 11:52:54 CST 2004


Are you actually using this code?
	--Mark

On Wed, Mar 17, 2004 at 10:25:27AM -0800, Rusty Lynch wrote:
> 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
> _______________________________________________
> Ocfs2-devel mailing list
> Ocfs2-devel at oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs2-devel
--
Mark Fasheh
Software Developer, Oracle Corp
mark.fasheh at oracle.com


More information about the Ocfs2-devel mailing list