stats.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * This file is part of the UCB release of Plan 9. It is subject to the license
  3. * terms in the LICENSE file found in the top-level directory of this
  4. * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
  5. * part of the UCB release of Plan 9, including this file, may be copied,
  6. * modified, propagated, or distributed except according to the terms contained
  7. * in the LICENSE file.
  8. */
  9. struct Cfsmsg {
  10. uint32_t n; /* number of messages (of some type) */
  11. vlong t; /* time spent in these messages */
  12. vlong s; /* start time of last call */
  13. };
  14. struct Cfsstat {
  15. struct Cfsmsg cm[128]; /* client messages */
  16. struct Cfsmsg sm[128]; /* server messages */
  17. uint32_t ndirread; /* # of directory read ops */
  18. uint32_t ndelegateread; /* # of read ops delegated */
  19. uint32_t ninsert; /* # of cache insert ops */
  20. uint32_t ndelete; /* # of cache delete ops */
  21. uint32_t nupdate; /* # of cache update ops */
  22. uvlong bytesread; /* # of bytes read by client */
  23. uvlong byteswritten; /* # of bytes written by client */
  24. uvlong bytesfromserver; /* # of bytes read from server */
  25. uvlong bytesfromdirs; /* # of directory bytes read from server */
  26. uvlong bytesfromcache; /* # of bytes read from cache */
  27. uvlong bytestocache; /* # of bytes written to cache */
  28. };
  29. extern struct Cfsstat cfsstat, cfsprev;
  30. extern int statson;