diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-02-19 22:24:19 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-02-19 22:24:19 +0000 |
commit | 8c564d68bc389bdd1892e6e302f625610afa0841 (patch) | |
tree | 70b636c3174b73de56bd6dd01ef89e8346c32110 | |
parent | 8c5eae3c0d85c8f8e9b2aba89dc944b39974a710 (diff) |
Add support for fork accounting
-rw-r--r-- | sys/sys/vmmeter.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sys/sys/vmmeter.h b/sys/sys/vmmeter.h index e6f49672347..d24dc38e209 100644 --- a/sys/sys/vmmeter.h +++ b/sys/sys/vmmeter.h @@ -111,6 +111,23 @@ struct vmtotal total; #endif /* + * Fork/vfork/rfork accounting. + */ +struct forkstat +{ + int cntfork; /* number of fork() calls */ + int cntvfork; /* number of vfork() calls */ + int cntrfork; /* number of rfork() calls */ + int sizfork; /* VM pages affected by fork() */ + int sizvfork; /* VM pages affected by vfork() */ + int sizrfork; /* VM pages affected by rfork() */ +}; + +#ifdef _KERNEL +struct forkstat forkstat; +#endif + +/* * Optional instrumentation. */ #ifdef PGINPROF |