cregit-Linux how code gets into the kernel

Release 4.12 include/linux/sunrpc/stats.h

/*
 * linux/include/linux/sunrpc/stats.h
 *
 * Client statistics collection for SUN RPC
 *
 * Copyright (C) 1996 Olaf Kirch <okir@monad.swb.de>
 */

#ifndef _LINUX_SUNRPC_STATS_H

#define _LINUX_SUNRPC_STATS_H

#include <linux/proc_fs.h>


struct rpc_stat {
	
const struct rpc_program *program;

	
unsigned int		netcnt,
				
netudpcnt,
				
nettcpcnt,
				
nettcpconn,
				
netreconn;
	
unsigned int		rpccnt,
				
rpcretrans,
				
rpcauthrefresh,
				
rpcgarbage;
};


struct svc_stat {
	
struct svc_program *	program;

	
unsigned int		netcnt,
				
netudpcnt,
				
nettcpcnt,
				
nettcpconn;
	
unsigned int		rpccnt,
				
rpcbadfmt,
				
rpcbadauth,
				
rpcbadclnt;
};

struct net;
#ifdef CONFIG_PROC_FS
int			rpc_proc_init(struct net *);
void			rpc_proc_exit(struct net *);
#else

static inline int rpc_proc_init(struct net *net) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Pavel Emelyanov15100.00%1100.00%
Total15100.00%1100.00%


static inline void rpc_proc_exit(struct net *net) { }

Contributors

PersonTokensPropCommitsCommitProp
Pavel Emelyanov11100.00%1100.00%
Total11100.00%1100.00%

#endif #ifdef MODULE void rpc_modcount(struct inode *, int); #endif #ifdef CONFIG_PROC_FS struct proc_dir_entry * rpc_proc_register(struct net *,struct rpc_stat *); void rpc_proc_unregister(struct net *,const char *); void rpc_proc_zero(const struct rpc_program *); struct proc_dir_entry * svc_proc_register(struct net *, struct svc_stat *, const struct file_operations *); void svc_proc_unregister(struct net *, const char *); void svc_seq_show(struct seq_file *, const struct svc_stat *); #else
static inline struct proc_dir_entry *rpc_proc_register(struct net *net, struct rpc_stat *s) { return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
Adam Belay1777.27%133.33%
Stanislav Kinsbursky418.18%133.33%
Randy Dunlap14.55%133.33%
Total22100.00%3100.00%


static inline void rpc_proc_unregister(struct net *net, const char *p) {}

Contributors

PersonTokensPropCommitsCommitProp
Randy Dunlap743.75%125.00%
Linus Torvalds (pre-git)637.50%125.00%
Stanislav Kinsbursky212.50%125.00%
Linus Torvalds16.25%125.00%
Total16100.00%4100.00%


static inline void rpc_proc_zero(const struct rpc_program *p) {}

Contributors

PersonTokensPropCommitsCommitProp
Adam Belay1191.67%150.00%
Trond Myklebust18.33%150.00%
Total12100.00%2100.00%


static inline struct proc_dir_entry *svc_proc_register(struct net *net, struct svc_stat *s, const struct file_operations *f) { return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)1242.86%116.67%
Andrew Morton932.14%233.33%
Stanislav Kinsbursky517.86%116.67%
Linus Torvalds13.57%116.67%
Arjan van de Ven13.57%116.67%
Total28100.00%6100.00%


static inline void svc_proc_unregister(struct net *net, const char *p) {}

Contributors

PersonTokensPropCommitsCommitProp
Adam Belay1168.75%150.00%
Stanislav Kinsbursky531.25%150.00%
Total16100.00%2100.00%


static inline void svc_seq_show(struct seq_file *seq, const struct svc_stat *st) {}

Contributors

PersonTokensPropCommitsCommitProp
Andrew Morton847.06%240.00%
Linus Torvalds (pre-git)423.53%120.00%
Adam Belay423.53%120.00%
Linus Torvalds15.88%120.00%
Total17100.00%5100.00%

#endif #endif /* _LINUX_SUNRPC_STATS_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)17952.65%428.57%
Pavel Emelyanov4312.65%17.14%
Adam Belay4312.65%17.14%
Stanislav Kinsbursky329.41%214.29%
Andrew Morton277.94%214.29%
Randy Dunlap82.35%17.14%
Trond Myklebust30.88%17.14%
Linus Torvalds30.88%17.14%
Arjan van de Ven20.59%17.14%
Total340100.00%14100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.