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 <okir@monad.swb.de> 8 */ 9 10 #ifndef LINUX_LOCKD_DEBUG_H 11 #define LINUX_LOCKD_DEBUG_H 12 13 #include <linux/sunrpc/debug.h> 14 15 /* 16 * Enable lockd debugging. 17 * Requires RPC_DEBUG. 18 */ 19 #undef ifdebug 20 #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) 21 # define ifdebug(flag) if (unlikely(nlm_debug & NLMDBG_##flag)) 22 #else 23 # define ifdebug(flag) if (0) 24 #endif 25 26 /* 27 * Debug flags 28 */ 29 #define NLMDBG_SVC 0x0001 30 #define NLMDBG_CLIENT 0x0002 31 #define NLMDBG_CLNTLOCK 0x0004 32 #define NLMDBG_SVCLOCK 0x0008 33 #define NLMDBG_MONITOR 0x0010 34 #define NLMDBG_CLNTSUBS 0x0020 35 #define NLMDBG_SVCSUBS 0x0040 36 #define NLMDBG_HOSTCACHE 0x0080 37 #define NLMDBG_XDR 0x0100 38 #define NLMDBG_ALL 0x7fff 39 40 #endif /* LINUX_LOCKD_DEBUG_H */ 41
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.