Linux Kernel Debugging: Leverage proven tools and advanced techniques to effectively debug Linux kernels and kernel modules (Paperback)
暫譯: Linux 核心除錯:利用成熟工具和進階技術有效除錯 Linux 核心及核心模組 (平裝本)
N. Billimoria, Kaiwan
- 出版商: Packt Publishing
- 出版日期: 2022-08-05
- 定價: $1,800
- 售價: 9.0 折 $1,620
- 語言: 英文
- 頁數: 638
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1801075034
- ISBN-13: 9781801075039
-
相關分類:
Linux
-
相關翻譯:
Linux 核心除錯實務 (Linux Kernel Debugging: Leverage proven tools and advanced techniques to effectively debug Linux kernels and kernel modules) (繁中版)
立即出貨 (庫存 < 4)
買這商品的人也買了...
-
$480$379 -
$680$537 -
$594$564 -
$1,290$1,226 -
$500$425 -
$564Visual Studio Code 權威指南
-
$834$792 -
$1,980$1,881 -
$910$865 -
$894$849 -
$2,200$2,090 -
$1,000$790 -
$880$695 -
$880$695 -
$1,900$1,862 -
$1,900$1,862 -
$1,980$1,881 -
$2,146Introduction to Algorithms, 4/e (Hardcover)
-
$602$566 -
$954$906 -
$750$585 -
$450$351 -
$594$564 -
$1,980$1,881 -
$2,090Learning Kali Linux: Security Testing, Penetration Testing & Ethical Hacking
商品描述
Effectively debug kernel modules, device drivers, and the kernel itself by gaining a solid understanding of powerful open source tools and advanced kernel debugging techniques
Key Features
- Fully understand how to use a variety of kernel and module debugging tools and techniques using examples
- Learn to expertly interpret a kernel Oops and identify underlying defect(s)
- Use easy-to-look up tables and clear explanations of kernel-level defects to make this complex topic easy
Book Description
The Linux kernel is at the very core of arguably the world's best production-quality OS. Debugging it, though, can be a complex endeavor.
Linux Kernel Debugging is a comprehensive guide to learning all about advanced kernel debugging. This book covers many areas in-depth, such as instrumentation-based debugging techniques (printk and the dynamic debug framework), and shows you how to use Kprobes. Memory-related bugs tend to be a nightmare – two chapters are packed with tools and techniques devoted to debugging them. When the kernel gifts you an Oops, how exactly do you interpret it to be able to debug the underlying issue? We've got you covered. Concurrency tends to be an inherently complex topic, so a chapter on lock debugging will help you to learn precisely what data races are, including using KCSAN to detect them. Some thorny issues, both debug- and performance-wise, require detailed kernel-level tracing; you'll learn to wield the impressive power of Ftrace and its frontends. You'll also discover how to handle kernel lockups, hangs, and the dreaded kernel panic, as well as leverage the venerable GDB tool within the kernel (KGDB), along with much more.
By the end of this book, you will have at your disposal a wide range of powerful kernel debugging tools and techniques, along with a keen sense of when to use which.
What you will learn
- Explore instrumentation-based printk along with the powerful dynamic debug framework
- Use static and dynamic Kprobes to trap into kernel/module functions
- Catch kernel memory defects with KASAN, UBSAN, SLUB debug, and kmemleak
- Interpret an Oops in depth and precisely identify it's source location
- Understand data races and use KCSAN to catch evasive concurrency defects
- Leverage Ftrace and trace-cmd to trace the kernel flow in great detail
- Write a custom kernel panic handler and detect kernel lockups and hangs
- Use KGDB to single-step and debug kernel/module source code
Who this book is for
This book is for Linux kernel developers, module/driver authors, and testers interested in debugging and enhancing their Linux systems at the level of the kernel. System administrators who want to understand and debug the internal infrastructure of their Linux kernels will also find this book useful. A good grasp on C programming and the Linux command line is necessary. Some experience with kernel (module) development will help you follow along.
商品描述(中文翻譯)
有效地調試內核模組、設備驅動程式及內核本身,透過深入了解強大的開源工具和先進的內核調試技術。
主要特點
- 完全理解如何使用各種內核和模組調試工具及技術,並透過範例進行學習
- 學會專業地解讀內核 Oops 並識別潛在缺陷
- 使用易於查詢的表格和清晰的內核級缺陷解釋,使這個複雜主題變得簡單
書籍描述
Linux 內核是世界上公認的最佳生產級作業系統的核心。然而,調試它可能是一項複雜的工作。
《Linux 內核調試》是一本全面的指南,幫助讀者學習所有關於先進內核調試的知識。本書深入探討了許多領域,例如基於儀器的調試技術(printk 和動態調試框架),並展示如何使用 Kprobes。與記憶體相關的錯誤往往是噩夢——有兩章專門介紹調試這些錯誤的工具和技術。當內核給你一個 Oops 時,你該如何解讀它以便調試潛在的問題?我們將為你提供幫助。並發性通常是一個固有的複雜主題,因此有一章專門講解鎖調試,幫助你準確了解數據競爭的概念,包括如何使用 KCSAN 來檢測它們。一些棘手的問題,無論是調試還是性能方面,都需要詳細的內核級追蹤;你將學會駕馭 Ftrace 及其前端的強大功能。你還將發現如何處理內核死鎖、掛起和可怕的內核恐慌,以及如何在內核中利用久負盛名的 GDB 工具(KGDB),還有更多內容。
在本書結束時,你將擁有一系列強大的內核調試工具和技術,並能夠敏銳地判斷何時使用哪一種。
你將學到的內容
- 探索基於儀器的 printk 及強大的動態調試框架
- 使用靜態和動態 Kprobes 進入內核/模組函數
- 使用 KASAN、UBSAN、SLUB 調試和 kmemleak 捕捉內核記憶體缺陷
- 深入解讀 Oops 並準確識別其來源位置
- 理解數據競爭並使用 KCSAN 捕捉難以捉摸的並發缺陷
- 利用 Ftrace 和 trace-cmd 詳細追蹤內核流程
- 編寫自定義內核恐慌處理程序,檢測內核死鎖和掛起
- 使用 KGDB 逐步調試內核/模組源代碼
本書適合的人群
本書適合 Linux 內核開發者、模組/驅動程式作者以及對調試和增強其 Linux 系統內核層面感興趣的測試人員。希望理解和調試其 Linux 內核內部基礎架構的系統管理員也會發現本書有用。對 C 程式設計和 Linux 命令行有良好的掌握是必要的,具備一些內核(模組)開發經驗將有助於你跟上內容。
目錄大綱
1. A General Introduction to Debugging Software
2. Approaches to Kernel Debugging
3. Debug via Instrumentation – printk and Friends
4. Debug via Instrumentation – Kprobes
5. Debugging Kernel Memory Issues – Part 1
6. Debugging Kernel Memory Issues – Part 2
7. Oops! Interpreting the Kernel Bug Diagnostic
8. Lock Debugging
9. Tracing the Kernel Flow
10. Kernel Panic, Lockups, and Hangs
11. Using Kernel GDB (KGDB)
12. A Few More Kernel Debugging Approaches
目錄大綱(中文翻譯)
1. A General Introduction to Debugging Software
2. Approaches to Kernel Debugging
3. Debug via Instrumentation – printk and Friends
4. Debug via Instrumentation – Kprobes
5. Debugging Kernel Memory Issues – Part 1
6. Debugging Kernel Memory Issues – Part 2
7. Oops! Interpreting the Kernel Bug Diagnostic
8. Lock Debugging
9. Tracing the Kernel Flow
10. Kernel Panic, Lockups, and Hangs
11. Using Kernel GDB (KGDB)
12. A Few More Kernel Debugging Approaches