Linux Kernel Debugging
eBook - ePub

Linux Kernel Debugging

Kaiwan N Billimoria

Share book
  1. 638 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Linux Kernel Debugging

Kaiwan N Billimoria

Book details
Table of contents
Citations

About This Book

Effectively debug kernel modules, device drivers, and the kernel itself by gaining a solid understanding of powerful open source tools and advanced kernel debugging techniquesKey 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 easyBook DescriptionThe 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 codeWho this book is forThis 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.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Linux Kernel Debugging an online PDF/ePUB?
Yes, you can access Linux Kernel Debugging by Kaiwan N Billimoria in PDF and/or ePUB format, as well as other popular books in Computer Science & Open Source Programming. We have over one million books available in our catalogue for you to explore.

Information

Year
2022
ISBN
9781801076753
Edition
1

Table of contents