mirror of
https://github.com/speed47/spectre-meltdown-checker.git
synced 2024-10-31 18:58:03 +01:00
Merge pull request #26 from Feandil/proc_kallsym
Use /proc/kallsyms to get symbols, if available
This commit is contained in:
commit
8aed2d4086
@ -186,7 +186,11 @@ if [ "$opt_live" = 1 ]; then
|
|||||||
[ -e /boot/kernel-genkernel-$(uname -m)-$(uname -r) ] && opt_kernel=/boot/kernel-genkernel-$(uname -m)-$(uname -r)
|
[ -e /boot/kernel-genkernel-$(uname -m)-$(uname -r) ] && opt_kernel=/boot/kernel-genkernel-$(uname -m)-$(uname -r)
|
||||||
|
|
||||||
# system.map
|
# system.map
|
||||||
[ -e /boot/System.map-$(uname -r) ] && opt_map=/boot/System.map-$(uname -r)
|
if [ -e /proc/kallsyms ] ; then
|
||||||
|
opt_map="/proc/kallsyms"
|
||||||
|
elif [ -e /boot/System.map-$(uname -r) ] ; then
|
||||||
|
opt_map=/boot/System.map-$(uname -r)
|
||||||
|
fi
|
||||||
|
|
||||||
# config
|
# config
|
||||||
if [ -e /proc/config.gz ] ; then
|
if [ -e /proc/config.gz ] ; then
|
||||||
|
Loading…
Reference in New Issue
Block a user