summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>2005-04-21 04:42:56 +0000
committermickey <mickey@openbsd.org>2005-04-21 04:42:56 +0000
commita015f0d19e0f938657caef6efcc5ee7a0969309e (patch)
tree892e59e9b83776fd002ec9504004bbadd8a19360
parentcount fpu lazy context switches; deraadt@ ok (diff)
downloadwireguard-openbsd-a015f0d19e0f938657caef6efcc5ee7a0969309e.tar.xz
wireguard-openbsd-a015f0d19e0f938657caef6efcc5ee7a0969309e.zip
print out fpu ctx switches count
-rw-r--r--usr.bin/vmstat/vmstat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c
index 866a442dca4..31bb4233d6d 100644
--- a/usr.bin/vmstat/vmstat.c
+++ b/usr.bin/vmstat/vmstat.c
@@ -1,5 +1,5 @@
/* $NetBSD: vmstat.c,v 1.29.4.1 1996/06/05 00:21:05 cgd Exp $ */
-/* $OpenBSD: vmstat.c,v 1.94 2004/12/24 22:38:22 miod Exp $ */
+/* $OpenBSD: vmstat.c,v 1.95 2005/04/21 04:42:56 mickey Exp $ */
/*
* Copyright (c) 1980, 1986, 1991, 1993
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)vmstat.c 8.1 (Berkeley) 6/6/93";
#else
-static const char rcsid[] = "$OpenBSD: vmstat.c,v 1.94 2004/12/24 22:38:22 miod Exp $";
+static const char rcsid[] = "$OpenBSD: vmstat.c,v 1.95 2005/04/21 04:42:56 mickey Exp $";
#endif
#endif /* not lint */
@@ -565,6 +565,7 @@ dosum(void)
(void)printf("%11u traps\n", uvmexp.traps);
(void)printf("%11u interrupts\n", uvmexp.intrs);
(void)printf("%11u cpu context switches\n", uvmexp.swtch);
+ (void)printf("%11u fpu context switches\n", uvmexp.fpswtch);
(void)printf("%11u software interrupts\n", uvmexp.softs);
(void)printf("%11u syscalls\n", uvmexp.syscalls);
(void)printf("%11u pagein operations\n", uvmexp.pageins);