aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/lockd/debug.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/linux/lockd/debug.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'include/linux/lockd/debug.h')
-rw-r--r--include/linux/lockd/debug.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/include/linux/lockd/debug.h b/include/linux/lockd/debug.h
new file mode 100644
index 000000000000..34b2b7f33c3b
--- /dev/null
+++ b/include/linux/lockd/debug.h
@@ -0,0 +1,57 @@
1/*
2 * linux/include/linux/lockd/debug.h
3 *
4 * Debugging stuff.
5 *
6 * Copyright (C) 1996 Olaf Kirch <okir@monad.swb.de>
7 */
8
9#ifndef LINUX_LOCKD_DEBUG_H
10#define LINUX_LOCKD_DEBUG_H
11
12#ifdef __KERNEL__
13
14#include <linux/sunrpc/debug.h>
15
16/*
17 * Enable lockd debugging.
18 * Requires RPC_DEBUG.
19 */
20#ifdef RPC_DEBUG
21# define LOCKD_DEBUG 1
22#endif
23
24#undef ifdebug
25#if defined(RPC_DEBUG) && defined(LOCKD_DEBUG)
26# define ifdebug(flag) if (unlikely(nlm_debug & NLMDBG_##flag))
27#else
28# define ifdebug(flag) if (0)
29#endif
30
31#endif /* __KERNEL__ */
32
33/*
34 * Debug flags
35 */
36#define NLMDBG_SVC 0x0001
37#define NLMDBG_CLIENT 0x0002
38#define NLMDBG_CLNTLOCK 0x0004
39#define NLMDBG_SVCLOCK 0x0008
40#define NLMDBG_MONITOR 0x0010
41#define NLMDBG_CLNTSUBS 0x0020
42#define NLMDBG_SVCSUBS 0x0040
43#define NLMDBG_HOSTCACHE 0x0080
44#define NLMDBG_XDR 0x0100
45#define NLMDBG_ALL 0x7fff
46
47
48/*
49 * Support for printing NLM cookies in dprintk()
50 */
51#ifdef RPC_DEBUG
52struct nlm_cookie;
53/* Call this function with the BKL held (it uses a static buffer) */
54extern const char *nlmdbg_cookie2a(const struct nlm_cookie *);
55#endif
56
57#endif /* LINUX_LOCKD_DEBUG_H */