]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lscpu: add --caches
authorKarel Zak <kzak@redhat.com>
Tue, 19 Mar 2019 12:47:11 +0000 (13:47 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 19 Mar 2019 13:11:20 +0000 (14:11 +0100)
commit0e86bc8406959d0d56194d4f404b780e6b70caa4
treea31307174312e69ecf3f007822c8367014c662a9
parent357dd756d14c664b408d8a1bfdede45bc040131c
lscpu: add --caches

$ lscpu -C
NAME ONE-SIZE ALL-SIZE WAYS TYPE        LEVEL
L3         8M       8M   16 Unified         3
L2       256K       1M    8 Unified         2
L1i       32K     128K    8 Instruction     1
L1d       32K     128K    8 Data            1

The patch also updates extra caches (s390) output in lsblk summary to
be compatible with output about normal caches.

Addresses: https://github.com/karelzak/util-linux/issues/663
Signed-off-by: Karel Zak <kzak@redhat.com>
Documentation/TODO
sys-utils/lscpu.1
sys-utils/lscpu.c
sys-utils/lscpu.h
tests/expected/lscpu/lscpu-s390-lpar-drawer