[LU-4655] configure --disable-libcfs-trace is broken Created: 20/Feb/14  Updated: 26/Mar/14  Resolved: 26/Mar/14

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.6.0
Fix Version/s: Lustre 2.6.0

Type: Bug Priority: Minor
Reporter: John Hammond Assignee: John Hammond
Resolution: Fixed Votes: 0
Labels: build, libcfs

Severity: 3
Rank (Obsolete): 12742

 Description   

Passing --disable-libcfs-trace to configure defines CDEBUG_ENTRY_EXIT as 0. In libcfs_debug.h we test if CDEBUG_ENTRY_EXIT is defined and enable trace accordingly.

AC_MSG_CHECKING([whether to enable ENTRY/EXIT])
AC_ARG_ENABLE([libcfs_trace],
        AC_HELP_STRING([--disable-libcfs-trace],
        	        [disable libcfs ENTRY/EXIT]),
	[],[enable_libcfs_trace='yes'])
AC_MSG_RESULT([$enable_libcfs_trace])
if test x$enable_libcfs_trace = xyes; then
   AC_DEFINE(CDEBUG_ENTRY_EXIT, 1, [enable libcfs ENTRY/EXIT])
else
   AC_DEFINE(CDEBUG_ENTRY_EXIT, 0, [disable libcfs ENTRY/EXIT])
fi

Since GOTO() uses D_TRACE it should also be controlled by this option.



 Comments   
Comment by John Hammond [ 05/Mar/14 ]

Please see http://review.whamcloud.com/#/c/9517/.

Comment by John Hammond [ 26/Mar/14 ]

Patch landed to master.

Generated at Sat Feb 10 01:44:41 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.