aboutsummaryrefslogtreecommitdiff
path: root/contrib/top/machine.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2011-05-31 15:11:23 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2011-05-31 15:11:23 +0000
commitc9385548e7a298c7e3185a32dddaaba375cb4caa (patch)
tree8efe55a81b9744430f38ee8729ed55f893ffa78d /contrib/top/machine.h
parent06034940f55b2514ecf6c0510d07aeffdcc8e134 (diff)
downloadsrc-c9385548e7a298c7e3185a32dddaaba375cb4caa.tar.gz
src-c9385548e7a298c7e3185a32dddaaba375cb4caa.zip
Add a new option to toggle the display of the system idle process (per-CPU
idle threads). The process is displayed by default (subject to whether or not system processes are displayed) to preserve existing behavior. The system idle process can be hidden via the '-z' command line argument or the 'z' key while top is running. When it is hidden, top more closely matches the behavior of FreeBSD <= 4.x where idle time was not accounted to any process. MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=222530
Diffstat (limited to 'contrib/top/machine.h')
-rw-r--r--contrib/top/machine.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/top/machine.h b/contrib/top/machine.h
index a09424c19ca2..3e1af1609ece 100644
--- a/contrib/top/machine.h
+++ b/contrib/top/machine.h
@@ -65,6 +65,7 @@ struct process_select
int uid; /* only this uid (unless uid == -1) */
int wcpu; /* show weighted cpu */
int jail; /* show jail ID */
+ int kidle; /* show per-CPU idle threads */
char *command; /* only this command (unless == NULL) */
};