Development tools for the kernel
This document is a collection of documents about development tools that can be used to work on the kernel. For now, the documents have been pulled together without any significant effort to integrate them into a coherent whole; patches welcome!
A brief overview of testing-specific tools can be found in Documentation/dev-tools/testing-overview.rst
Tools that are specific to debugging can be found in Documentation/process/debugging/index.rst
Table of contents
- Kernel Testing Guide
- Checkpatch
- clang-format
- Coccinelle
- Compiler-Based Context Analysis
- Sparse
- KCOV: code coverage for fuzzing
- Using gcov with the Linux kernel
- Kernel Address Sanitizer (KASAN)
- Kernel Memory Sanitizer (KMSAN)
- Undefined Behavior Sanitizer - UBSAN
- Kernel Memory Leak Detector
- Kernel Concurrency Sanitizer (KCSAN)
- Linux Kernel Memory Consistency Model (LKMM)
- Kernel Electric-Fence (KFENCE)
- Linux Kernel Selftests
- KUnit - Linux Kernel Unit Testing
- The Kernel Test Anything Protocol (KTAP), version 1
- UAPI Checker
- Linux Kernel GPIO based sloppy logic analyzer
- Using AutoFDO with the Linux kernel
- Using Propeller with the Linux kernel
- Containerized Builds