From 639eeb28ddcef3f6d8ee91874a9b633096e202fc Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 11 Apr 2019 13:45:29 +0200 Subject: lscpu: report CPU vulnerabilities Signed-off-by: Karel Zak --- sys-utils/lscpu.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sys-utils/lscpu.h') diff --git a/sys-utils/lscpu.h b/sys-utils/lscpu.h index 36c7e41aa..56c97e2e8 100644 --- a/sys-utils/lscpu.h +++ b/sys-utils/lscpu.h @@ -77,6 +77,10 @@ struct polarization_modes { char *readable; }; +struct cpu_vulnerability { + char *name; + char *text; +}; /* global description */ struct lscpu_desc { @@ -124,6 +128,9 @@ struct lscpu_desc { int necaches; /* extra caches (s390) */ struct cpu_cache *ecaches; + struct cpu_vulnerability *vuls; /* array of CPU vulnerabilities */ + int nvuls; /* number of CPU vulnerabilities */ + /* * All maps are sequentially indexed (0..ncpuspos), the array index * does not have match with cpuX number as presented by kernel. You -- cgit v1.2.3-55-g7522