diff options
author | kib <kib@FreeBSD.org> | 2012-05-23 18:10:54 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2012-05-23 18:10:54 +0000 |
commit | 187a8c5cd64d6fbe329a4e3d5d0d4ccfe112ae69 (patch) | |
tree | f1b9ea9963df80f79a63e2a21d0fadf277e630a6 /sys/sys/user.h | |
parent | 1b7baa2fc1e9e62d27e339ef2a88d15ffe171da4 (diff) | |
download | FreeBSD-src-187a8c5cd64d6fbe329a4e3d5d0d4ccfe112ae69.zip FreeBSD-src-187a8c5cd64d6fbe329a4e3d5d0d4ccfe112ae69.tar.gz |
Calculate the count of per-process cow faults. Export the count to
userspace using the obscure spare int field in struct kinfo_proc.
Submitted by: Andrey Zonov <andrey zonov org>
MFC after: 1 week
Diffstat (limited to 'sys/sys/user.h')
-rw-r--r-- | sys/sys/user.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/user.h b/sys/sys/user.h index 2c37e99..42733a6 100644 --- a/sys/sys/user.h +++ b/sys/sys/user.h @@ -159,7 +159,7 @@ struct kinfo_proc { u_int ki_estcpu; /* Time averaged value of ki_cpticks */ u_int ki_slptime; /* Time since last blocked */ u_int ki_swtime; /* Time swapped in or out */ - int ki_spareint1; /* unused (just here for alignment) */ + u_int ki_cow; /* number of copy-on-write faults */ u_int64_t ki_runtime; /* Real time in microsec */ struct timeval ki_start; /* starting time */ struct timeval ki_childtime; /* time used by process children */ |