summaryrefslogtreecommitdiffstats
path: root/contrib/top/machine.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2008-01-18 01:43:14 +0000
committerpeter <peter@FreeBSD.org>2008-01-18 01:43:14 +0000
commit368d76456bba0368457c8068937a2ba4ea81033e (patch)
tree75cd88d63d25954bc6c8db1fe30b1e7fa9322f7e /contrib/top/machine.h
parentf99e03f7fe903970489c85fbae5965ef79f8d6c5 (diff)
downloadFreeBSD-src-368d76456bba0368457c8068937a2ba4ea81033e.zip
FreeBSD-src-368d76456bba0368457c8068937a2ba4ea81033e.tar.gz
Add a -P flag to display per-cpu cpu usage stats.
Diffstat (limited to 'contrib/top/machine.h')
-rw-r--r--contrib/top/machine.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/top/machine.h b/contrib/top/machine.h
index 10c69ca..4584650 100644
--- a/contrib/top/machine.h
+++ b/contrib/top/machine.h
@@ -20,6 +20,7 @@ struct statics
#ifdef ORDER
char **order_names;
#endif
+ int ncpus;
};
/*
@@ -43,6 +44,8 @@ struct system_info
int *memory;
int *swap;
struct timeval boottime;
+ unsigned long cpumask; /* bitfield of cpu states represented */
+ int ncpus;
};
/* cpu_states is an array of percentages * 10. For example,
OpenPOWER on IntegriCloud