mirror of
https://github.com/speed47/spectre-meltdown-checker
synced 2024-08-29 23:33:41 +02:00
refactor: decrease default verbosity for some tests
This commit is contained in:
parent
b77fb0f226
commit
0eabd266ad
@ -1993,7 +1993,11 @@ check_variant2_linux()
|
|||||||
pstatus yellow UNKNOWN "in offline mode, we need the kernel image and System.map to be able to tell"
|
pstatus yellow UNKNOWN "in offline mode, we need the kernel image and System.map to be able to tell"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
if [ "$opt_verbose" -ge 2 ]; then
|
||||||
pstatus green YES "$ibrs_supported"
|
pstatus green YES "$ibrs_supported"
|
||||||
|
else
|
||||||
|
pstatus green YES
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_info_nol " * IBRS enabled and active: "
|
_info_nol " * IBRS enabled and active: "
|
||||||
@ -2036,7 +2040,11 @@ check_variant2_linux()
|
|||||||
pstatus yellow UNKNOWN "in offline mode, we need the kernel image to be able to tell"
|
pstatus yellow UNKNOWN "in offline mode, we need the kernel image to be able to tell"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
if [ "$opt_verbose" -ge 2 ]; then
|
||||||
pstatus green YES "$ibpb_supported"
|
pstatus green YES "$ibpb_supported"
|
||||||
|
else
|
||||||
|
pstatus green YES
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_info_nol " * IBPB enabled and active: "
|
_info_nol " * IBPB enabled and active: "
|
||||||
@ -2192,9 +2200,9 @@ check_variant2_linux()
|
|||||||
_info_nol " * Local gcc is retpoline-aware: "
|
_info_nol " * Local gcc is retpoline-aware: "
|
||||||
if which gcc >/dev/null 2>&1; then
|
if which gcc >/dev/null 2>&1; then
|
||||||
if [ -n "$(gcc -mindirect-branch=thunk-extern --version 2>&1 >/dev/null)" ]; then
|
if [ -n "$(gcc -mindirect-branch=thunk-extern --version 2>&1 >/dev/null)" ]; then
|
||||||
pstatus blue NO "your version of gcc doesn't support retpoline"
|
pstatus blue NO
|
||||||
else
|
else
|
||||||
pstatus green YES "your version of gcc supports retpoline"
|
pstatus green YES
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
pstatus blue NO "gcc is not installed"
|
pstatus blue NO "gcc is not installed"
|
||||||
@ -2409,7 +2417,11 @@ check_variant3_linux()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$kpti_support" ]; then
|
if [ -n "$kpti_support" ]; then
|
||||||
|
if [ "$opt_verbose" -ge 2 ]; then
|
||||||
pstatus green YES "found '$kpti_support'"
|
pstatus green YES "found '$kpti_support'"
|
||||||
|
else
|
||||||
|
pstatus green YES
|
||||||
|
fi
|
||||||
elif [ "$kpti_can_tell" = 1 ]; then
|
elif [ "$kpti_can_tell" = 1 ]; then
|
||||||
pstatus yellow NO
|
pstatus yellow NO
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user