summaryrefslogtreecommitdiffstats
path: root/sys/sys/user.h
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2012-05-23 18:10:54 +0000
committerkib <kib@FreeBSD.org>2012-05-23 18:10:54 +0000
commit187a8c5cd64d6fbe329a4e3d5d0d4ccfe112ae69 (patch)
treef1b9ea9963df80f79a63e2a21d0fadf277e630a6 /sys/sys/user.h
parent1b7baa2fc1e9e62d27e339ef2a88d15ffe171da4 (diff)
downloadFreeBSD-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.h2
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 */
OpenPOWER on IntegriCloud