[bootlin/training-materials updates] master: labs/kernel-debugging: debugfs directory cannot be named "serial" (de0c64af)
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Fri Oct 29 10:46:38 CEST 2021
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/de0c64af3ea39b71813033bb4560befb7e556426
>---------------------------------------------------------------
commit de0c64af3ea39b71813033bb4560befb7e556426
Author: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Date: Tue May 18 12:04:34 2021 +0200
labs/kernel-debugging: debugfs directory cannot be named "serial"
If you name it "serial", the two instances of the UART devices will
clash with each other. It should be a unique name.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
>---------------------------------------------------------------
de0c64af3ea39b71813033bb4560befb7e556426
labs/kernel-debugging/kernel-debugging.tex | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/labs/kernel-debugging/kernel-debugging.tex b/labs/kernel-debugging/kernel-debugging.tex
index a2872915..07b6becc 100644
--- a/labs/kernel-debugging/kernel-debugging.tex
+++ b/labs/kernel-debugging/kernel-debugging.tex
@@ -61,17 +61,18 @@ add:
\begin{itemize}
-\item A directory called \code{serial} in the \code{debugfs} filesystem.
+\item A directory called after a unique name per device in the
+ \code{debugfs} filesystem.
-\item And file called \code{counter} inside the \code{serial}
- directory of the \code{debugfs} filesystem. This file should allow to see
- the contents of the \code{counter} variable of your module.
+\item And file called \code{counter} inside this directory of the
+ \code{debugfs} filesystem. This file should allow to see the
+ contents of the \code{counter} variable of your module.
\end{itemize}
Recompile and reload your driver, and check that in
-\code{/sys/kernel/debug/serial/counter} you can see the amount of characters
-that have been transmitted by your driver.
+\code{/sys/kernel/debug/<unique name>/counter} you can see the amount
+of characters that have been transmitted by your driver.
\section{Kernel crash analysis}
More information about the training-materials-updates
mailing list