404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.147.78.134: ~ $
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * 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;
}

static inline void rpc_proc_exit(struct net *net)
{
}
#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; }
static inline void rpc_proc_unregister(struct net *net, const char *p) {}
static inline void rpc_proc_zero(const struct rpc_program *p) {}

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

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

#endif /* _LINUX_SUNRPC_STATS_H */

Filemanager

Name Type Size Permission Actions
addr.h File 4.94 KB 0644
auth.h File 7.43 KB 0644
auth_gss.h File 2.33 KB 0644
bc_xprt.h File 2.42 KB 0644
cache.h File 8.38 KB 0644
clnt.h File 7.17 KB 0644
debug.h File 2.76 KB 0644
gss_api.h File 4.56 KB 0644
gss_asn1.h File 3.11 KB 0644
gss_err.h File 5.93 KB 0644
gss_krb5.h File 11.15 KB 0644
gss_krb5_enctypes.h File 123 B 0644
metrics.h File 3.52 KB 0644
msg_prot.h File 6.23 KB 0644
rpc_pipe_fs.h File 3.92 KB 0644
rpc_rdma.h File 3.81 KB 0644
sched.h File 9.09 KB 0644
stats.h File 2.01 KB 0644
svc.h File 16.55 KB 0644
svc_rdma.h File 7.43 KB 0644
svc_xprt.h File 6.63 KB 0644
svcauth.h File 6.11 KB 0644
svcauth_gss.h File 824 B 0644
svcsock.h File 2.06 KB 0644
timer.h File 1.14 KB 0644
types.h File 497 B 0644
xdr.h File 12.73 KB 0644
xprt.h File 14.77 KB 0644
xprtmultipath.h File 2 KB 0644
xprtrdma.h File 2.9 KB 0644
xprtsock.h File 1.73 KB 0644