// SPDX-License-Identifier: GPL-3.0-or-later
#include "plugin_proc.h"
#define PLUGIN_PROC_MODULE_NFSD_NAME "/proc/net/rpc/nfsd"
struct nfsd_procs {
char name[30];
unsigned long long value;
int present;
RRDDIM *rd;
};
struct nfsd_procs nfsd_proc2_values[] = {
{ "null" , 0ULL, 0, NULL}
, {"getattr" , 0ULL, 0, NULL}
, {"setattr" , 0ULL, 0, NULL}
, {"root" , 0ULL, 0, NULL}
, {"lookup" , 0ULL, 0, NULL}
, {"readlink", 0ULL, 0, NULL}
, {"read" , 0ULL, 0, NULL}
, {"wrcache" , 0ULL, 0, NULL}
, {"write" , 0ULL, 0, NULL}
, {"create" , 0ULL, 0, NULL}
, {"remove" , 0ULL, 0, NULL}
, {"rename" , 0ULL, 0, NULL}
, {"link" , 0ULL, 0, NULL}
, {"symlink" , 0ULL, 0, NULL}
, {"mkdir" , 0ULL, 0, NULL}
, {"rmdir" , 0ULL, 0, NULL}
, {"readdir" , 0ULL, 0, NULL}
, {"fsstat" , 0ULL, 0, NULL}
,
/* termination */
{ "" , 0ULL, 0, NULL}
};
struct nfsd_procs nfsd_proc3_values[] = {
{ "null" , 0ULL, 0, NULL}
, {"getattr" , 0ULL, 0, NULL}
, {"setattr" , 0ULL, 0, NULL}
, {"lookup" , 0ULL, 0, NULL}
, {"access" , 0ULL, 0, NULL}
, {"readlink" , 0ULL, 0, NULL}
, {"read" , 0ULL, 0, NULL}
, {"write" , 0ULL, 0, NULL}
, {"create" , 0ULL, 0, NULL}
, {"mkdir" , 0ULL, 0, NULL}
, {"symlink" , 0ULL, 0, NULL}
, {"mknod" , 0ULL, 0, NULL}
, {"remove" , 0ULL, 0, NULL}
, {"rmdir" , 0ULL, 0, NULL}
, {"rename" , 0ULL, 0, NULL}
, {"link" , 0ULL, 0, NULL}
, {"readdir" , 0ULL, 0, NULL}
, {"readdirplus", 0ULL, 0, NULL}
, {"fsstat" , 0ULL, 0, NULL}
, {"fsinfo" , 0ULL, 0, NULL}
, {"pathconf" , 0ULL, 0, NULL}
, {"commit" , 0ULL, 0, NULL}
,
/* termination */
{ "" , 0ULL, 0, NULL}
};
struct nfsd_procs nfsd_proc4_values[] = {
{ "null" , 0ULL, 0, NULL}
, {"read" , 0ULL, 0, NULL}
, {"write" , 0ULL, 0, NULL}
, {"commit" , 0ULL, 0, NULL}
, {"open" , 0ULL, 0, NULL}
, {"open_conf" , 0ULL, 0, NULL}
, {"open_noat" , 0ULL, 0, NULL}
, {"open_dgrd" , 0ULL, 0, NULL}