UBIFS: make debugging messages light again
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / linux / sunrpc / stats.h
blob680471d1f28a4300700883489c3b8b78335c07da
1 /*
2 * linux/include/linux/sunrpc/stats.h
4 * Client statistics collection for SUN RPC
6 * Copyright (C) 1996 Olaf Kirch <okir@monad.swb.de>
7 */
9 #ifndef _LINUX_SUNRPC_STATS_H
10 #define _LINUX_SUNRPC_STATS_H
12 #include <linux/proc_fs.h>
14 struct rpc_stat {
15 struct rpc_program * program;
17 unsigned int netcnt,
18 netudpcnt,
19 nettcpcnt,
20 nettcpconn,
21 netreconn;
22 unsigned int rpccnt,
23 rpcretrans,
24 rpcauthrefresh,
25 rpcgarbage;
28 struct svc_stat {
29 struct svc_program * program;
31 unsigned int netcnt,
32 netudpcnt,
33 nettcpcnt,
34 nettcpconn;
35 unsigned int rpccnt,
36 rpcbadfmt,
37 rpcbadauth,
38 rpcbadclnt;
41 struct net;
42 #ifdef CONFIG_PROC_FS
43 int rpc_proc_init(struct net *);
44 void rpc_proc_exit(struct net *);
45 #else
46 static inline int rpc_proc_init(struct net *net)
48 return 0;
51 static inline void rpc_proc_exit(struct net *net)
54 #endif
56 #ifdef MODULE
57 void rpc_modcount(struct inode *, int);
58 #endif
60 #ifdef CONFIG_PROC_FS
61 struct proc_dir_entry * rpc_proc_register(struct rpc_stat *);
62 void rpc_proc_unregister(const char *);
63 void rpc_proc_zero(struct rpc_program *);
64 struct proc_dir_entry * svc_proc_register(struct svc_stat *,
65 const struct file_operations *);
66 void svc_proc_unregister(const char *);
68 void svc_seq_show(struct seq_file *,
69 const struct svc_stat *);
70 #else
72 static inline struct proc_dir_entry *rpc_proc_register(struct rpc_stat *s) { return NULL; }
73 static inline void rpc_proc_unregister(const char *p) {}
74 static inline void rpc_proc_zero(struct rpc_program *p) {}
76 static inline struct proc_dir_entry *svc_proc_register(struct svc_stat *s,
77 const struct file_operations *f) { return NULL; }
78 static inline void svc_proc_unregister(const char *p) {}
80 static inline void svc_seq_show(struct seq_file *seq,
81 const struct svc_stat *st) {}
82 #endif
84 #endif /* _LINUX_SUNRPC_STATS_H */