~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/sunrpc/debug.h

Version: ~ [ linux-5.16-rc1 ] ~ [ linux-5.15.2 ] ~ [ linux-5.14.18 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.79 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.159 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.217 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.255 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.290 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.292 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.18.140 ] ~ [ linux-3.16.85 ] ~ [ linux-3.14.79 ] ~ [ linux-3.12.74 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  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 #ifndef _LINUX_SUNRPC_DEBUG_H_
  9 #define _LINUX_SUNRPC_DEBUG_H_
 10 
 11 #include <uapi/linux/sunrpc/debug.h>
 12 
 13 
 14 /*
 15  * Enable RPC debugging/profiling.
 16  */
 17 #ifdef CONFIG_SUNRPC_DEBUG
 18 #define  RPC_DEBUG
 19 #endif
 20 #ifdef CONFIG_TRACEPOINTS
 21 #define RPC_TRACEPOINTS
 22 #endif
 23 /* #define  RPC_PROFILE */
 24 
 25 /*
 26  * Debugging macros etc
 27  */
 28 #ifdef RPC_DEBUG
 29 extern unsigned int             rpc_debug;
 30 extern unsigned int             nfs_debug;
 31 extern unsigned int             nfsd_debug;
 32 extern unsigned int             nlm_debug;
 33 #endif
 34 
 35 #define dprintk(args...)        dfprintk(FACILITY, ## args)
 36 #define dprintk_rcu(args...)    dfprintk_rcu(FACILITY, ## args)
 37 
 38 #undef ifdebug
 39 #ifdef RPC_DEBUG                        
 40 # define ifdebug(fac)           if (unlikely(rpc_debug & RPCDBG_##fac))
 41 
 42 # define dfprintk(fac, args...) \
 43         do { \
 44                 ifdebug(fac) \
 45                         printk(KERN_DEFAULT args); \
 46         } while (0)
 47 
 48 # define dfprintk_rcu(fac, args...)     \
 49         do { \
 50                 ifdebug(fac) { \
 51                         rcu_read_lock(); \
 52                         printk(KERN_DEFAULT args); \
 53                         rcu_read_unlock(); \
 54                 } \
 55         } while (0)
 56 
 57 # define RPC_IFDEBUG(x)         x
 58 #else
 59 # define ifdebug(fac)           if (0)
 60 # define dfprintk(fac, args...) do {} while (0)
 61 # define dfprintk_rcu(fac, args...)     do {} while (0)
 62 # define RPC_IFDEBUG(x)
 63 #endif
 64 
 65 /*
 66  * Sysctl interface for RPC debugging
 67  */
 68 #ifdef RPC_DEBUG
 69 void            rpc_register_sysctl(void);
 70 void            rpc_unregister_sysctl(void);
 71 #endif
 72 
 73 #endif /* _LINUX_SUNRPC_DEBUG_H_ */
 74 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp