Linux kernel debug

来自个人维基
跳转至: 导航搜索

How to debug from kernel message
for example:
文件:范例.jpg
1. find the address of function

cd KIRNEL_DIR
cat System.map |grep "function name"

2. calculate pc absolute address, in my case:

  ffff800010b7a2a0 + 0x210 = ffff800010b7a4b0

3. find the line of source code

aarch64-linux-gnu-addr2line  -e vmlinux <absolute address>