[bootlin/training-materials updates] master: labs/kernel-debugging: debugfs directory cannot be named "serial" (1226ce50)

Thomas Petazzoni thomas.petazzoni at bootlin.com
Tue May 18 12:04:34 CEST 2021


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/1226ce5050d5d9bac72372b62e7ec7efe202ffef

>---------------------------------------------------------------

commit 1226ce5050d5d9bac72372b62e7ec7efe202ffef
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>


>---------------------------------------------------------------

1226ce5050d5d9bac72372b62e7ec7efe202ffef
 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