From cf3b6b71ebb1f3da975ad12d95a6fa3a15591e63 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 6 Jun 2019 14:05:26 +0200 Subject: lscpu: add a new columns to --cache References: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-devices-system-cpu Signed-off-by: Karel Zak --- sys-utils/lscpu.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sys-utils/lscpu.h') diff --git a/sys-utils/lscpu.h b/sys-utils/lscpu.h index 56c97e2e8..5bbdb348e 100644 --- a/sys-utils/lscpu.h +++ b/sys-utils/lscpu.h @@ -49,10 +49,17 @@ enum { struct cpu_cache { char *name; char *type; + char *allocation_policy; + char *write_policy; + int level; - int ways; uint64_t size; + unsigned int ways_of_associativity; + unsigned int physical_line_partition; + unsigned int number_of_sets; + unsigned int coherency_line_size; + int nsharedmaps; cpu_set_t **sharedmaps; }; -- cgit v1.2.3-55-g7522