1 /* SPDX-License-Identifier: GPL-2.0 */
3 * linux/include/linux/lockd/debug.h
7 * Copyright (C) 1996 Olaf Kirch <okir@monad.swb.de>
10 #ifndef LINUX_LOCKD_DEBUG_H
11 #define LINUX_LOCKD_DEBUG_H
13 #include <linux/sunrpc/debug.h>
16 * Enable lockd debugging.
20 #if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
21 # define ifdebug(flag) if (unlikely(nlm_debug & NLMDBG_##flag))
23 # define ifdebug(flag) if (0)
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
40 #endif /* LINUX_LOCKD_DEBUG_H */