]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lscpu: Add shared cached info for s390 lscpu -C
authorSumanth Korikkar <sumanthk@linux.ibm.com>
Fri, 5 Jun 2020 16:15:10 +0000 (18:15 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 8 Jun 2020 07:53:41 +0000 (09:53 +0200)
commit318542e060ff68e012bea7ee498f12a6ce7e5593
tree4b42cd3388e6629937b9c656fcea6101596ba4e1
parent9147d2ad8abb73cea5799323fc73ccdaf675826f
lscpu: Add shared cached info for s390 lscpu -C

The shared cache info for s390 can be found in /proc/cpuinfo.
lscpu without any options already processes this info. Fix this
in lscpu -C and provide detailed stat.

Test for s390:
./lscpu -C
NAME ONE-SIZE ALL-SIZE WAYS TYPE        LEVEL  SETS PHY-LINE COHERENCY-SIZE
L1d      128K     256K    8 Data            1    64                     256
L1i      128K     256K    8 Instruction     1    64                     256
L2d        4M       8M    8 Data            2  2048                     256
L2i        2M       4M    8 Instruction     2  1024                     256
L3       128M            32 Unified         3 16384                     256
L4       672M            42 Unified         4 65536                     256

Signed-off-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
sys-utils/lscpu.c