summaryrefslogtreecommitdiff
path: root/scripts/decode_stacktrace.sh
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2020-07-10 11:59:59 +0200
committerPeter Zijlstra <peterz@infradead.org>2020-07-10 11:59:59 +0200
commite1bcad609f5a533da45fac071cf0849b86dbab92 (patch)
treebc77cb21c81c053b99271c7bac9f6bc071cc56a6 /scripts/decode_stacktrace.sh
parentc935cd62d3fe985d7f0ebea185d2759e8992e96f (diff)
parentb037b09b9058d84882fa2c4db3806433e2b0f912 (diff)
Merge branch 'tip/x86/entry'
Diffstat (limited to 'scripts/decode_stacktrace.sh')
-rwxr-xr-xscripts/decode_stacktrace.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/decode_stacktrace.sh b/scripts/decode_stacktrace.sh
index 13e5fbafdf2f..66a6d511b524 100755
--- a/scripts/decode_stacktrace.sh
+++ b/scripts/decode_stacktrace.sh
@@ -27,7 +27,10 @@ parse_symbol() {
elif [[ "${modcache[$module]+isset}" == "isset" ]]; then
local objfile=${modcache[$module]}
else
- [[ $modpath == "" ]] && return
+ if [[ $modpath == "" ]]; then
+ echo "WARNING! Modules path isn't set, but is needed to parse this symbol" >&2
+ return
+ fi
local objfile=$(find "$modpath" -name "${module//_/[-_]}.ko*" -print -quit)
[[ $objfile == "" ]] && return
modcache[$module]=$objfile