io_uring: split out cmd api into a separate header
[linux-block.git] / include / linux / lockd / debug.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1da177e4
LT
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
1da177e4
LT
13#include <linux/sunrpc/debug.h>
14
15/*
16 * Enable lockd debugging.
17 * Requires RPC_DEBUG.
18 */
1da177e4 19#undef ifdebug
10b89567 20#if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
1da177e4
LT
21# define ifdebug(flag) if (unlikely(nlm_debug & NLMDBG_##flag))
22#else
23# define ifdebug(flag) if (0)
24#endif
25
1da177e4
LT
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
1da177e4 40#endif /* LINUX_LOCKD_DEBUG_H */