Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-4655

configure --disable-libcfs-trace is broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.6.0
    • Lustre 2.6.0
    • 3
    • 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.

      Attachments

        Activity

          People

            jhammond John Hammond
            jhammond John Hammond
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: