summaryrefslogtreecommitdiffstats
path: root/sys-utils/lscpu.1
diff options
context:
space:
mode:
authorHeiko Carstens2011-09-15 08:52:33 +0200
committerKarel Zak2011-09-27 14:48:33 +0200
commit7afc23874e2d477dd5140167c5320499ab2cc0a0 (patch)
treec2ca98826b02171ab22f3c576d8d1567c93c7f0c /sys-utils/lscpu.1
parentlscpu: fix -e output (diff)
downloadkernel-qcow2-util-linux-7afc23874e2d477dd5140167c5320499ab2cc0a0.tar.gz
kernel-qcow2-util-linux-7afc23874e2d477dd5140167c5320499ab2cc0a0.tar.xz
kernel-qcow2-util-linux-7afc23874e2d477dd5140167c5320499ab2cc0a0.zip
lscpu: add --offline option
Implement "--offline" option which only prints offline cpus. As a side effect we can get rid of the internal "allcpus" flag, since if we want to print informations for online and offline cpus we simply set both flags. When reading sysfs attributes of cpus this is now done for all cpus, since e.g. the topology informations of the online cpus may influence the topology informations of the offline cpus. This mainly because online cpus may contain masks which include offline cpus while offline cpus have a missing topology directory. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'sys-utils/lscpu.1')
-rw-r--r--sys-utils/lscpu.19
1 files changed, 6 insertions, 3 deletions
diff --git a/sys-utils/lscpu.1 b/sys-utils/lscpu.1
index b073a221d..47c4c3196 100644
--- a/sys-utils/lscpu.1
+++ b/sys-utils/lscpu.1
@@ -6,7 +6,7 @@
lscpu \- display information on CPU architecture
.SH SYNOPSIS
.B lscpu
-.RB [ \-aehpxV ]
+.RB [ \-abcehpxV ]
.RB [ \-s
.IR directory ]
.SH DESCRIPTION
@@ -28,10 +28,13 @@ the defined order.
.SH OPTIONS
.TP
.BR \-a , " \-\-all"
-Include online and offline CPUs in output (default for -e)
+Include online and offline CPUs in output (default for -e).
.TP
.BR \-b , " \-\-online"
-Include only online CPUs in output (default for -p)
+Include only online CPUs in output (default for -p).
+.TP
+.BR \-c , " \-\-offline"
+Include only offline CPUs in output.
.TP
.BR \-e , " \-\-extended " \fI[=list]\fP
Print CPU list out in human-readable format.