in image/resources/knfsd-metrics-agent/internal/mounts/stats.go [76:106]
func addEvents(new, old procfs.NFSEventsStats) procfs.NFSEventsStats {
return procfs.NFSEventsStats{
InodeRevalidate: add(new.InodeRevalidate, old.InodeRevalidate),
DnodeRevalidate: add(new.DnodeRevalidate, old.DnodeRevalidate),
DataInvalidate: add(new.DataInvalidate, old.DataInvalidate),
AttributeInvalidate: add(new.AttributeInvalidate, old.AttributeInvalidate),
VFSOpen: add(new.VFSOpen, old.VFSOpen),
VFSLookup: add(new.VFSLookup, old.VFSLookup),
VFSAccess: add(new.VFSAccess, old.VFSAccess),
VFSUpdatePage: add(new.VFSUpdatePage, old.VFSUpdatePage),
VFSReadPage: add(new.VFSReadPage, old.VFSReadPage),
VFSReadPages: add(new.VFSReadPages, old.VFSReadPages),
VFSWritePage: add(new.VFSWritePage, old.VFSWritePage),
VFSWritePages: add(new.VFSWritePages, old.VFSWritePages),
VFSGetdents: add(new.VFSGetdents, old.VFSGetdents),
VFSSetattr: add(new.VFSSetattr, old.VFSSetattr),
VFSFlush: add(new.VFSFlush, old.VFSFlush),
VFSFsync: add(new.VFSFsync, old.VFSFsync),
VFSLock: add(new.VFSLock, old.VFSLock),
VFSFileRelease: add(new.VFSFileRelease, old.VFSFileRelease),
CongestionWait: add(new.CongestionWait, old.CongestionWait),
Truncation: add(new.Truncation, old.Truncation),
WriteExtension: add(new.WriteExtension, old.WriteExtension),
SillyRename: add(new.SillyRename, old.SillyRename),
ShortRead: add(new.ShortRead, old.ShortRead),
ShortWrite: add(new.ShortWrite, old.ShortWrite),
JukeboxDelay: add(new.JukeboxDelay, old.JukeboxDelay),
PNFSRead: add(new.PNFSRead, old.PNFSRead),
PNFSWrite: add(new.PNFSWrite, old.PNFSWrite),
}
}