COSCUP x RubyConf TW 2021

Let's trace Linux kernel with KGDB
07-31, 10:40–11:10 (Asia/Taipei), TR212
Language: 漢語


Talk Length

30

您是否知悉並同意如採遠端形式分享,需提供預錄影片(您需同意大會才能接受您的稿件) – yes Translate Title

Let's trace Linux kernel with KGDB

slido url

https://app.sli.do/event/cxle32gk

hackmd url

https://hackmd.io/@coscup/Bk8qLaw0d/%2F%40coscup%2FrJu8I6PCO

Abstract

開發 user space 軟體時,工程師們有方便的 debug 工具進行查找、分析、除錯。但在 Linux kernel 的開發,除了 printk 外,還可以有哪些工具可以使用呢?從 Linux kernel document 可以看到 KGDB 相關的資訊,提供了在 kernel 除錯時的另一個可能性。
本次將分享,從建立最簡單環境的虛擬機機開始,到實際使用 GDB + OpenOCD + JTAG + Raspberry Pi 當作展示範例。
歡迎大家一起帶 debugger 工具來交流、分享技巧 ~

English Abstract

Engineers have plenty of debug tools for user space programs development, code tracing, debugging and analyzing. Except "printk", do we have any other debug tools for Linux kernel development? The "KGDB" mentioned in Linux kernel document provides another possibility.
Will share how to experiment with the KGDB in a virtual machine. And, use GDB + OpenOCD + JTAG + Raspberry Pi in the real environment as the demo in this talk.
Welcome to bring own debugger tools for experience sharing ~