[bootlin/training-materials updates] master: slides: debugging: fix missing ARCH for decode_stacktraces.sh (f421aac9)
Clément Léger
clement.leger at bootlin.com
Fri Feb 3 16:39:16 CET 2023
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/f421aac91ac81762d6d3ee607f5f22c7242c33d2
>---------------------------------------------------------------
commit f421aac91ac81762d6d3ee607f5f22c7242c33d2
Author: Clément Léger <clement.leger at bootlin.com>
Date: Fri Feb 3 16:39:16 2023 +0100
slides: debugging: fix missing ARCH for decode_stacktraces.sh
Signed-off-by: Clément Léger <clement.leger at bootlin.com>
>---------------------------------------------------------------
f421aac91ac81762d6d3ee607f5f22c7242c33d2
labs/debugging-kernel-debugging/debugging-kernel-debugging.tex | 4 +++-
slides/debugging-kernel-debugging/debugging-kernel-debugging.tex | 4 ++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/labs/debugging-kernel-debugging/debugging-kernel-debugging.tex b/labs/debugging-kernel-debugging/debugging-kernel-debugging.tex
index eae8528c..936cc23a 100644
--- a/labs/debugging-kernel-debugging/debugging-kernel-debugging.tex
+++ b/labs/debugging-kernel-debugging/debugging-kernel-debugging.tex
@@ -136,7 +136,9 @@ Then, using the script provided by the kernel, execute the following command:
\begin{bashinput}
$ cd /home/$USER/debugging-labs/buildroot/output/build/linux-5.13/
-$ ./scripts/decode_stacktraces vmlinux < ~/debugging-labs/oops.txt
+$ export ARCH=arm
+$ export CROSS_COMPILE=/home/$USER/debugging-labs/buildroot/output/host/bin/arm-linux-
+$ ./scripts/decode_stacktraces.sh vmlinux < ~/debugging-labs/oops.txt
\end{bashinput}
\section{KGDB debugging}
diff --git a/slides/debugging-kernel-debugging/debugging-kernel-debugging.tex b/slides/debugging-kernel-debugging/debugging-kernel-debugging.tex
index 413b5429..b73233b2 100644
--- a/slides/debugging-kernel-debugging/debugging-kernel-debugging.tex
+++ b/slides/debugging-kernel-debugging/debugging-kernel-debugging.tex
@@ -112,8 +112,8 @@
the vmlinux file.
\item \code{./scripts/decode_stacktrace.sh vmlinux linux_source_path/ < oops_report.txt > decoded_oops.txt}
- \item NOTE: \code{CROSS_COMPILE} should be set to obtain the correct
- disassembly dump.
+ \item NOTE: \code{CROSS_COMPILE} and \code{ARCH} env var should be set to
+ obtain the correct disassembly dump.
\end{itemize}
\end{frame}
More information about the training-materials-updates
mailing list