]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lscpu: add human readable extended cpu table output
authorKarel Zak <kzak@redhat.com>
Fri, 9 Sep 2011 18:59:59 +0000 (20:59 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 9 Sep 2011 21:41:01 +0000 (23:41 +0200)
commitba45d8c1ea4f1226033adc2c9446690bef69a806
treea06b51321bd5618e4187525c554c1243acb6990e
parente3b3a2f3f863a3849bd1e59430b3e46db40d5441
lscpu: add human readable extended cpu table output

Based on patch from Heiko Carstens <heiko.carstens@de.ibm.com>:

lscpu currently only supports a parsable output which contains a row for
each cpu and its attributes. This output contains only comas as separators
and is hard to read for humans.

Therefore add a new option "-e | --extended" which outputs the rows in a
much more readable (and non-parsable) form. Just like for the -p option a
list of columns can be specified that shall be included in the output.

By default this option will print all columns that contain data.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/Makefile.am
sys-utils/lscpu.1
sys-utils/lscpu.c