| 1 | /* |
|---|
| 2 | * linux/include/linux/sunrpc/debug.h |
|---|
| 3 | * |
|---|
| 4 | * Debugging support for sunrpc module |
|---|
| 5 | * |
|---|
| 6 | * Copyright (C) 1996, Olaf Kirch <okir@monad.swb.de> |
|---|
| 7 | */ |
|---|
| 8 | |
|---|
| 9 | #ifndef _LINUX_SUNRPC_DEBUG_H_ |
|---|
| 10 | #define _LINUX_SUNRPC_DEBUG_H_ |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | #include <linux/workqueue.h> |
|---|
| 14 | |
|---|
| 15 | /* |
|---|
| 16 | * Enable RPC debugging/profiling. |
|---|
| 17 | */ |
|---|
| 18 | #ifdef CONFIG_SYSCTL |
|---|
| 19 | #define RPC_DEBUG |
|---|
| 20 | #endif |
|---|
| 21 | /* #define RPC_PROFILE */ |
|---|
| 22 | |
|---|
| 23 | /* |
|---|
| 24 | * RPC debug facilities |
|---|
| 25 | */ |
|---|
| 26 | #define RPCDBG_XPRT 0x0001 |
|---|
| 27 | #define RPCDBG_CALL 0x0002 |
|---|
| 28 | #define RPCDBG_DEBUG 0x0004 |
|---|
| 29 | #define RPCDBG_NFS 0x0008 |
|---|
| 30 | #define RPCDBG_AUTH 0x0010 |
|---|
| 31 | #define RPCDBG_PMAP 0x0020 |
|---|
| 32 | #define RPCDBG_SCHED 0x0040 |
|---|
| 33 | #define RPCDBG_SVCSOCK 0x0100 |
|---|
| 34 | #define RPCDBG_SVCDSP 0x0200 |
|---|
| 35 | #define RPCDBG_MISC 0x0400 |
|---|
| 36 | #define RPCDBG_CACHE 0x0800 |
|---|
| 37 | #define RPCDBG_ALL 0x7fff |
|---|
| 38 | |
|---|
| 39 | /* |
|---|
| 40 | * Declarations for the sysctl debug interface, which allows to read or |
|---|
| 41 | * change the debug flags for rpc, nfs, nfsd, and lockd. Since the sunrpc |
|---|
| 42 | * module currently registers its sysctl table dynamically, the sysctl path |
|---|
| 43 | * for module FOO is <CTL_SUNRPC, CTL_FOODEBUG>. |
|---|
| 44 | */ |
|---|
| 45 | #define CTL_SUNRPC 7249 /* arbitrary and hopefully unused */ |
|---|
| 46 | |
|---|
| 47 | enum { |
|---|
| 48 | CTL_RPCDEBUG = 1, |
|---|
| 49 | CTL_NFSDEBUG, |
|---|
| 50 | CTL_NFSDDEBUG, |
|---|
| 51 | CTL_NLMDEBUG, |
|---|
| 52 | CTL_SLOTTABLE_UDP, |
|---|
| 53 | CTL_SLOTTABLE_TCP, |
|---|
| 54 | }; |
|---|
| 55 | |
|---|
| 56 | #endif /* _LINUX_SUNRPC_DEBUG_H_ */ |
|---|