[bootlin/training-materials updates] master: debugging: add cd + insmod for modules (af2610d1)
Clément Léger
clement.leger at bootlin.com
Thu Nov 24 15:36:18 CET 2022
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/af2610d1828bc2e2965a87f58cd9fd4ae55fbdf0
>---------------------------------------------------------------
commit af2610d1828bc2e2965a87f58cd9fd4ae55fbdf0
Author: Clément Léger <clement.leger at bootlin.com>
Date: Thu Nov 24 15:34:56 2022 +0100
debugging: add cd + insmod for modules
Signed-off-by: Clément Léger <clement.leger at bootlin.com>
>---------------------------------------------------------------
af2610d1828bc2e2965a87f58cd9fd4ae55fbdf0
.../debugging-kernel-debugging.tex | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/labs/debugging-kernel-debugging/debugging-kernel-debugging.tex b/labs/debugging-kernel-debugging/debugging-kernel-debugging.tex
index 5c297e74..a4078c36 100644
--- a/labs/debugging-kernel-debugging/debugging-kernel-debugging.tex
+++ b/labs/debugging-kernel-debugging/debugging-kernel-debugging.tex
@@ -23,8 +23,15 @@ $ export KDIR=/home/<user>/debugging-labs/buildroot/output/build/linux-5.13/
$ make
\end{bashinput}
-Load the \code{locking.ko} module and look at the output in dmesg. Once
-analyzed, unload the module. Try to understand and fix all the problems that
+Load the \code{locking.ko} module and look at the output in dmesg:
+
+\begin{bashinput}
+# cd /root/locking
+# insmod locking_test.ko
+# dmesg
+\end{bashinput}
+
+Once analyzed, unload the module. Try to understand and fix all the problems that
have been reported by the \code{lockdep} system.
\section{Kmemleak}
@@ -51,6 +58,8 @@ Once done, use the \code{boot} command to actually boot the kernel. Once booted,
load the \code{kmemleak_test.ko} and trigger an immediate kmemleak scan using:
\begin{bashinput}
+# cd /root/kmemleak
+# insmod kmemleak_test.ko
# echo scan > /sys/kernel/module/kmemleak
\end{bashinput}
More information about the training-materials-updates
mailing list