[bootlin/training-materials updates] master: debugging: slides: add symbol name decoding for addr2line (4357d17e)

Clément Léger clement.leger at bootlin.com
Fri Feb 3 11:31:11 CET 2023


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

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

commit 4357d17ebf8a27ce57fba7733e423857aaaec1a2
Author: Clément Léger <clement.leger at bootlin.com>
Date:   Fri Feb 3 11:31:11 2023 +0100

    debugging: slides: add symbol name decoding for addr2line
    
    Signed-off-by: Clément Léger <clement.leger at bootlin.com>


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

4357d17ebf8a27ce57fba7733e423857aaaec1a2
 slides/debugging-common-tools/debugging-common-tools.tex | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/slides/debugging-common-tools/debugging-common-tools.tex b/slides/debugging-common-tools/debugging-common-tools.tex
index 536aa701..342413f1 100644
--- a/slides/debugging-common-tools/debugging-common-tools.tex
+++ b/slides/debugging-common-tools/debugging-common-tools.tex
@@ -116,12 +116,16 @@ c02c7040 T ksys_read
       \end{minted}
     \end{block}
 
-    \item Using {\em addr2line} to match a kernel OOPS address with source code:
+    \item Using {\em addr2line} to match a kernel OOPS address or a symbol name
+      with source code:
     \begin{block}{}
       \begin{minted}[fontsize=\footnotesize]{console}
 $ addr2line -s -f -e vmlinux ffffffff8145a8b0
 queue_wc_show
 blk-sysfs.c:516
+
+$ addr2line -e vmlinux printk+0x10
+/home/training/debugging-labs/buildroot/output/build/linux-5.13/kernel/printk/printk.c:2211
       \end{minted}
     \end{block}
   \end{itemize}




More information about the training-materials-updates mailing list