debug.h 827 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * linux/include/linux/lockd/debug.h
  4. *
  5. * Debugging stuff.
  6. *
  7. * Copyright (C) 1996 Olaf Kirch <[email protected]>
  8. */
  9. #ifndef LINUX_LOCKD_DEBUG_H
  10. #define LINUX_LOCKD_DEBUG_H
  11. #include <linux/sunrpc/debug.h>
  12. /*
  13. * Enable lockd debugging.
  14. * Requires RPC_DEBUG.
  15. */
  16. #undef ifdebug
  17. #if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
  18. # define ifdebug(flag) if (unlikely(nlm_debug & NLMDBG_##flag))
  19. #else
  20. # define ifdebug(flag) if (0)
  21. #endif
  22. /*
  23. * Debug flags
  24. */
  25. #define NLMDBG_SVC 0x0001
  26. #define NLMDBG_CLIENT 0x0002
  27. #define NLMDBG_CLNTLOCK 0x0004
  28. #define NLMDBG_SVCLOCK 0x0008
  29. #define NLMDBG_MONITOR 0x0010
  30. #define NLMDBG_CLNTSUBS 0x0020
  31. #define NLMDBG_SVCSUBS 0x0040
  32. #define NLMDBG_HOSTCACHE 0x0080
  33. #define NLMDBG_XDR 0x0100
  34. #define NLMDBG_ALL 0x7fff
  35. #endif /* LINUX_LOCKD_DEBUG_H */