内核开发工具¶
本文档是关于可用于内核开发的开发工具的文档集合。目前,这些文档只是被汇集在一起,并未花费太多精力将其整合为一个有机的整体;欢迎提交补丁!
有关测试专用工具的简要概述,请参见 内核测试指南
调试专用工具可以在 Linux 内核开发者调试建议 中找到
目录
- 内核测试指南
- Checkpatch
- clang-format
- Coccinelle
- 基于编译器的上下文分析
- Sparse
- KCOV:用于模糊测试的代码覆盖率
- 在 Linux 内核中使用 gcov
- 内核地址消毒剂 (KASAN)
- 内核内存消毒剂 (KMSAN)
- 未定义行为消毒剂 - UBSAN
- 内核内存泄漏检测器
- 内核并发消毒剂 (KCSAN)
- Linux 内核内存一致性模型 (LKMM)
- 内核电子篱笆 (KFENCE)
- Linux 内核自测试 (Selftests)
- Documentation on the tests
- Running the selftests (hotplug tests are run in limited mode)
- Running a subset of selftests
- Requiring all targets to build successfully
- Running the full range hotplug selftests
- Install selftests
- Running installed selftests
- Timeout for selftests
- Packaging selftests
- Contributing new tests
- Contributing new tests (details)
- Test Module
- Test Harness
- KUnit - Linux 内核单元测试
- 内核测试任意协议 (KTAP),版本 1
- UAPI 检查器
- 基于 Linux 内核 GPIO 的简易逻辑分析仪
- 在 Linux 内核中使用 AutoFDO
- 在 Linux 内核中使用 Propeller
- 容器化构建