From f2384b243ce881a8c6e0f64187c436f57e424c4f Mon Sep 17 00:00:00 2001 From: kn Date: Sun, 27 Nov 2022 23:18:54 +0000 Subject: [PATCH] Move UVM "swpgonly" from Daemon Counters to Swap Counters Put it below "swpginuse" as systat(1) and uvm_init(9) already have it. (uvm.c struct uvmline uvmline[] makes it easy to misplace counters without double-checking against actual systat output.) --- usr.bin/systat/uvm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/systat/uvm.c b/usr.bin/systat/uvm.c index 795626d4fbf..957b4dbf336 100644 --- a/usr.bin/systat/uvm.c +++ b/usr.bin/systat/uvm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm.c,v 1.5 2019/06/28 13:35:04 deraadt Exp $ */ +/* $OpenBSD: uvm.c,v 1.6 2022/11/27 23:18:54 kn Exp $ */ /* * Copyright (c) 2008 Can Erkin Acar * Copyright (c) 2018 Kenneth R Westerback @@ -134,10 +134,10 @@ struct uvmline uvmline[] = { &uvmexp.swpginuse, &last_uvmexp.swpginuse, "swpginuse" }, { &uvmexp.kmapent, &last_uvmexp.kmapent, "kmapent", &uvmexp.pdreact, &last_uvmexp.pdreact, "pdreact", - &uvmexp.nswget, &last_uvmexp.nswget, "nswget" }, + &uvmexp.swpgonly, &last_uvmexp.swpgonly, "swpgonly" }, { NULL, NULL, NULL, &uvmexp.pdbusy, &last_uvmexp.pdbusy, "pdbusy", - NULL, NULL, NULL }, + &uvmexp.nswget, &last_uvmexp.nswget, "nswget" }, { NULL, NULL, "Constants", &uvmexp.pdpageouts, &last_uvmexp.pdpageouts, "pdpageouts", NULL, NULL, NULL }, -- 2.20.1