[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20190528103346.42720-1-drinkcat@chromium.org>
Date: Tue, 28 May 2019 18:33:46 +0800
From: Nicolas Boichat <drinkcat@...omium.org>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Marc Zyngier <marc.zyngier@....com>,
Konstantin Khlebnikov <khlebnikov@...dex-team.ru>,
Nicolas Boichat <drinkcat@...omium.org>,
linux-kernel@...r.kernel.org
Subject: [PATCH v2] scripts/decode_stacktrace: Look for modules with .ko.debug extension
In Chromium OS kernel builds, we split the debug information as
.ko.debug files, and that's what decode_stacktrace.sh needs to use.
Relax objfile matching rule to allow any .ko* file to be matched.
Signed-off-by: Nicolas Boichat <drinkcat@...omium.org>
---
Changes since v1:
- Added quotes around name pattern.
(note that the line in 81 chars now, but there is a precedent below, that
does not split a much longer line in $(), so hopefully this is ok)
akpm: To replace the existing patch in mmotm, thanks!
scripts/decode_stacktrace.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/decode_stacktrace.sh b/scripts/decode_stacktrace.sh
index bcdd45df3f5127a..d88554dc0eec9e7 100755
--- a/scripts/decode_stacktrace.sh
+++ b/scripts/decode_stacktrace.sh
@@ -28,7 +28,7 @@ parse_symbol() {
local objfile=${modcache[$module]}
else
[[ $modpath == "" ]] && return
- local objfile=$(find "$modpath" -name $module.ko -print -quit)
+ local objfile=$(find "$modpath" -name "$module.ko*" -print -quit)
[[ $objfile == "" ]] && return
modcache[$module]=$objfile
fi
--
2.22.0.rc1.257.g3120a18244-goog
Powered by blists - more mailing lists