summaryrefslogtreecommitdiffstats
path: root/sys-utils/lscpu.h
diff options
context:
space:
mode:
authorKarel Zak2019-04-11 13:45:29 +0200
committerKarel Zak2019-04-11 13:45:29 +0200
commit639eeb28ddcef3f6d8ee91874a9b633096e202fc (patch)
tree6eefb50b1559f3bd94557de0cfb57a58f1f53b7a /sys-utils/lscpu.h
parentinclude/strutils: add functions to replace and remove chars from string (diff)
downloadkernel-qcow2-util-linux-639eeb28ddcef3f6d8ee91874a9b633096e202fc.tar.gz
kernel-qcow2-util-linux-639eeb28ddcef3f6d8ee91874a9b633096e202fc.tar.xz
kernel-qcow2-util-linux-639eeb28ddcef3f6d8ee91874a9b633096e202fc.zip
lscpu: report CPU vulnerabilities
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/lscpu.h')
-rw-r--r--sys-utils/lscpu.h7
1 files changed, 7 insertions, 0 deletions
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