# Kernel development

> Building, testing, debugging, and contributing to the kernel.

All of Kernel development as one markdown file: [/kernel/development/print.md](/kernel/development/print.md)

## Start here

- [Developing the kernel](/kernel/development/start-here/overview.md): Find build, programming, testing and maintenance guidance.
- [Building Peios](/kernel/development/start-here/building-peios.md): Build the kernel with pekit's pinned toolchain, and understand its outputs and trust inputs.

## Peios build tools

- [Data Generators](/kernel/development/build-tools/generators.md): Maintain checked-in event tables, registry seeds, Unicode folding tables, and signing test fixtures.
- [Style tooling](/kernel/development/build-tools/style.md): Install and run the scoped Peios formatters, linters and CI checks.

## Build system

- [Kernel Build System](/kernel/development/kbuild/index.md): Reference for Kernel Build System.
- [Bash completion for Kbuild](/kernel/development/kbuild/bash-completion.md): The kernel build system is written using Makefiles, and Bash completion for the make command is available through the bash-completion project.
- [GCC plugin infrastructure](/kernel/development/kbuild/gcc-plugins.md): GCC plugins are loadable modules that provide extra features to the compiler 1. They are useful for runtime instrumentation and static analysis. We can analyse, change and add further code during compilation via callbacks 2, GIMPLE 3, IPA…
- [DWARF module versioning](/kernel/development/kbuild/gendwarfksyms.md): When CONFIG_MODVERSIONS is enabled, symbol versions for modules are typically calculated from preprocessed source code using the genksyms tool. However, this is incompatible with languages such as Rust, where the source code has…
- [Exporting kernel headers for use by userspace](/kernel/development/kbuild/headers-install.md): The "make headers_install" command exports the kernel's header files in a form suitable for use by userspace programs.
- [Recursion issues](/kernel/development/kbuild/issues.md): Reference for Recursion issues.
- [Kbuild](/kernel/development/kbuild/kbuild.md): This file records the order in which modules appear in Makefiles. This is used by modprobe to deterministically resolve aliases that match multiple modules.
- [Kconfig Language](/kernel/development/kbuild/kconfig-language.md): The configuration database is a collection of configuration options organized in a tree structure:
- [Kconfig macro language](/kernel/development/kbuild/kconfig-macro-language.md): The basic idea was inspired by Make. When we look at Make, we notice sort of two languages in one. One language describes dependency graphs consisting of targets and prerequisites. The other is a macro language for performing textual…
- [Configuration targets and editors](/kernel/development/kbuild/kconfig.md): This file contains some assistance for using make *config.
- [Building Linux with Clang/LLVM](/kernel/development/kbuild/llvm.md): This document covers how to build the Linux kernel with Clang and LLVM utilities.
- [Linux Kernel Makefiles](/kernel/development/kbuild/makefiles.md): This document describes the Linux kernel Makefiles.
- [Building External Modules](/kernel/development/kbuild/modules.md): This document describes how to build an out-of-tree kernel module.
- [Reproducible builds](/kernel/development/kbuild/reproducible-builds.md): It is generally desirable that building the same source code with the same set of tools is reproducible, i.e. the output is always exactly the same. This makes it possible to verify that the build infrastructure for a binary distribution…
- [Kconfig select dependency example](/kernel/development/kbuild/kconfig-select-break.md): Minimal Kconfig example illustrating how select can enable a symbol despite its dependencies.

## Kernel programming

- [Kernel Hacking Guides](/kernel/development/kernel-hacking/index.md): Reference for Kernel Hacking Guides.
- [False Sharing](/kernel/development/kernel-hacking/false-sharing.md): False sharing is related with cache mechanism of maintaining the data coherence of one cache line stored in multiple CPU's caches; then academic definition for it is in 1. Consider a struct with a refcount and a string:
- [Unreliable Guide To Hacking The Linux Kernel](/kernel/development/kernel-hacking/hacking.md): Welcome, gentle reader, to Rusty's Remarkably Unreliable Guide to Linux Kernel Hacking. This document describes the common routines and general requirements for kernel code: its goal is to serve as a primer for Linux kernel development for…
- [Unreliable Guide To Locking](/kernel/development/kernel-hacking/locking.md): Welcome, to Rusty's Remarkably Unreliable Guide to Kernel Locking issues. This document describes the locking systems in the Linux Kernel in 2.6.

## Rust

- [Rust](/kernel/development/rust/index.md): Documentation related to Rust within the kernel. To start using Rust in the kernel, please read the quick-start.rst guide.
- [Arch Support](/kernel/development/rust/arch-support.md): Currently, the Rust compiler (rustc) uses LLVM for code generation, which limits the supported architectures that can be targeted. In addition, support for building the kernel with LLVM/Clang varies (please see…
- [Coding Guidelines](/kernel/development/rust/coding-guidelines.md): This document describes how to write Rust code in the kernel.
- [General Information](/kernel/development/rust/general-information.md): This document contains useful information to know when working with the Rust support in the kernel.
- [Quick Start](/kernel/development/rust/quick-start.md): This document describes how to get started with kernel development in Rust.
- [Testing](/kernel/development/rust/testing.md): This document contains useful information how to test the Rust code in the kernel.

## Subsystem testing

- [Developing native kernel subsystems](/kernel/development/native-subsystems/overview.md): Find canonical source, host tests and kernel integration checks for Peios subsystems.
- [Maintaining native subsystem documentation](/kernel/development/native-subsystems/documentation.md): Keep authored subsystem explanations, generated native ABI tables and TRM provenance aligned.
- [Shared Rust core tests](/kernel/development/native-subsystems/rust-tests.md): Test the semantic source shared by Cargo and Kbuild without duplicating implementations.
- [ABI regeneration](/kernel/development/native-subsystems/abi-generation.md): Regenerate native Rust bindings and check C and Rust layouts against kernel UAPI headers.
- [Running KUnit](/kernel/development/native-subsystems/kunit.md): Build and boot KUnit, preserve serial logs and distinguish complete runs from partial output.
- [Guest qualification](/kernel/development/native-subsystems/guest-qualification.md): Run native syscall, filesystem and signature harnesses with explicit kernel and fixture inputs.
- [StrataFS test hooks](/kernel/development/native-subsystems/stratafs-test-hooks.md): The securityfs rendezvous and fail points conformance tests use to hold a copy-up open or fail an internal step — doubly gated, inert on every production boot.

## Development tools

- [Development tools for the kernel](/kernel/development/dev-tools/index.md): 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…
- [Using AutoFDO with the Linux kernel](/kernel/development/dev-tools/autofdo.md): This enables AutoFDO build support for the kernel when using the Clang compiler. AutoFDO (Auto-Feedback-Directed Optimization) is a type of profile-guided optimization (PGO) used to enhance the performance of binary executables. It gathers…
- [Checkpatch](/kernel/development/dev-tools/checkpatch.md): Checkpatch (scripts/checkpatch.pl) is a perl script which checks for trivial style violations in patches and optionally corrects them. Checkpatch can also be run on file contexts and without the kernel tree.
- [UAPI Checker](/kernel/development/dev-tools/checkuapi.md): The UAPI checker (scripts/check-uapi.sh) is a shell script which checks UAPI header files for userspace backwards-compatibility across the git tree.
- [clang-format](/kernel/development/dev-tools/clang-format.md): clang-format is a tool to format C/C++/... code according to a set of rules and heuristics. Like most tools, it is not perfect nor covers every single case, but it is good enough to be helpful.
- [Coccinelle](/kernel/development/dev-tools/coccinelle.md): Coccinelle is a tool for pattern matching and text transformation that has many uses in kernel development, including the application of complex, tree-wide patches and detection of problematic programming patterns.
- [Containerized Builds](/kernel/development/dev-tools/container.md): The container tool can be used to run any command in the kernel source tree from within a container. Doing so facilitates reproducing builds across various platforms, for example when a test bot has reported an issue which requires a…
- [Compiler-Based Context Analysis](/kernel/development/dev-tools/context-analysis.md): Context Analysis is a language extension, which enables statically checking that required contexts are active (or inactive) by acquiring and releasing user-definable "context locks". An obvious application is lock-safety checking for the…
- [Using gcov with the Linux kernel](/kernel/development/dev-tools/gcov.md): gcov profiling kernel support enables the use of GCC's coverage testing tool gcov with the Linux kernel. Coverage data of a running kernel is exported in gcov-compatible format via the "gcov" debugfs directory. To get coverage data for a…
- [Linux Kernel GPIO based sloppy logic analyzer](/kernel/development/dev-tools/gpio-sloppy-logic-analyzer.md): This document briefly describes how to run the GPIO based in-kernel sloppy logic analyzer running on an isolated CPU.
- [Kernel Address Sanitizer (KASAN)](/kernel/development/dev-tools/kasan.md): Kernel Address Sanitizer (KASAN) is a dynamic memory safety error detector designed to find out-of-bounds and use-after-free bugs.
- [KCOV: code coverage for fuzzing](/kernel/development/dev-tools/kcov.md): KCOV collects and exposes kernel code coverage information in a form suitable for coverage-guided fuzzing. Coverage data of a running kernel is exported via the kcov debugfs file. Coverage collection is enabled on a task basis, and thus…
- [Kernel Concurrency Sanitizer (KCSAN)](/kernel/development/dev-tools/kcsan.md): The Kernel Concurrency Sanitizer (KCSAN) is a dynamic race detector, which relies on compile-time instrumentation, and uses a watchpoint-based sampling approach to detect races. KCSAN's primary purpose is to detect data races.
- [Kernel Electric-Fence (KFENCE)](/kernel/development/dev-tools/kfence.md): Kernel Electric-Fence (KFENCE) is a low-overhead sampling-based memory safety error detector. KFENCE detects heap out-of-bounds access, use-after-free, and invalid-free errors.
- [Kernel Memory Leak Detector](/kernel/development/dev-tools/kmemleak.md): Kmemleak provides a way of detecting possible kernel memory leaks in a way similar to a tracing garbage collector, with the difference that the orphan objects are not freed but only reported via /sys/kernel/debug/kmemleak. A similar method…
- [Kernel Memory Sanitizer (KMSAN)](/kernel/development/dev-tools/kmsan.md): KMSAN is a dynamic error detector aimed at finding uses of uninitialized values. It is based on compiler instrumentation, and is quite similar to the userspace MemorySanitizer tool.
- [Linux Kernel Selftests](/kernel/development/dev-tools/kselftest.md): The kernel contains a set of "self tests" under the tools/testing/selftests/ directory. These are intended to be small tests to exercise individual code paths in the kernel. Tests are intended to be run after building, installing and…
- [The Kernel Test Anything Protocol (KTAP), version 1](/kernel/development/dev-tools/ktap.md): TAP, or the Test Anything Protocol is a format for specifying test results used by a number of projects. Its website and specification are found at this link. The Linux Kernel largely uses TAP output for test results. However, Kernel…
- [Using Propeller with the Linux kernel](/kernel/development/dev-tools/propeller.md): This enables Propeller build support for the kernel when using Clang compiler. Propeller is a profile-guided optimization (PGO) method used to optimize binary executables. Like AutoFDO, it utilizes hardware sampling to gather information…
- [Sparse](/kernel/development/dev-tools/sparse.md): Sparse is a semantic checker for C programs; it can be used to find a number of potential problems with kernel code. See https://lwn.net/Articles/689907/ for an overview of sparse; this document contains some kernel-specific sparse…
- [Device testing with kselftest](/kernel/development/dev-tools/testing-devices.md): There are a few different kselftests available for testing devices generically, with some overlap in coverage and different requirements. This document aims to give an overview of each one.
- [Kernel Testing Guide](/kernel/development/dev-tools/testing-overview.md): There are a number of different tools for testing the Linux kernel, so knowing when to use each of them can be a challenge. This document provides a rough overview of their differences, and how they fit together.
- [Undefined Behavior Sanitizer - UBSAN](/kernel/development/dev-tools/ubsan.md): UBSAN is a runtime undefined behaviour checker.
- [KUnit - Linux Kernel Unit Testing](/kernel/development/dev-tools/kunit/index.md): This section details the kernel unit testing framework.
- [KUnit Architecture](/kernel/development/dev-tools/kunit/architecture.md): The KUnit architecture is divided into two parts:
- [Frequently Asked Questions](/kernel/development/dev-tools/kunit/faq.md): KUnit is a unit testing framework. Autotest, kselftest (and some others) are not.
- [Run Tests without kunit_tool](/kernel/development/dev-tools/kunit/run-manual.md): If we do not want to use kunit_tool (For example: we want to integrate with other systems, or run tests on real hardware), we can include KUnit in any kernel, read out results, and parse manually.
- [Running tests with kunit_tool](/kernel/development/dev-tools/kunit/run-wrapper.md): We can either run KUnit tests using kunit_tool or can run tests manually, and then use kunit_tool to parse the results. To run tests manually, see: Documentation/dev-tools/kunit/run_manual.rst. As long as we can build the kernel, we can…
- [Tips For Running KUnit Tests](/kernel/development/dev-tools/kunit/running-tips.md): It can be handy to create a bash function like:
- [Getting Started](/kernel/development/dev-tools/kunit/start.md): This page contains an overview of the kunit_tool and KUnit framework, teaching how to run existing tests and then how to write a simple test case, and covers common problems users face when using KUnit for the first time.
- [Test Style and Nomenclature](/kernel/development/dev-tools/kunit/style.md): To make finding, writing, and using KUnit tests as simple as possible, it is strongly encouraged that they are named and written according to the guidelines below. While it is possible to write KUnit tests which do not follow these rules,…
- [Writing Tests](/kernel/development/dev-tools/kunit/usage.md): The fundamental unit in KUnit is the test case. A test case is a function with the signature void (*)(struct kunit *test). It calls the function under test and then sets expectations for what should happen. For example:
- [API Reference](/kernel/development/dev-tools/kunit-api/index.md): This page documents the KUnit kernel testing API. It is divided into the following sections:
- [Clk API](/kernel/development/dev-tools/kunit-api/clk.md): The KUnit clk API is used to test clk providers and clk consumers.
- [Function Redirection API](/kernel/development/dev-tools/kunit-api/functionredirection.md): When writing unit tests, it's important to be able to isolate the code being tested from other parts of the kernel. This ensures the reliability of the test (it won't be affected by external factors), reduces dependencies on specific…
- [Device Tree (OF) API](/kernel/development/dev-tools/kunit-api/of.md): The KUnit device tree API is used to test device tree (of_*) dependent code.
- [Platform Device API](/kernel/development/dev-tools/kunit-api/platformdevice.md): The KUnit platform device API is used to test platform devices.
- [Resource API](/kernel/development/dev-tools/kunit-api/resource.md): This file documents the KUnit resource API.
- [Test API](/kernel/development/dev-tools/kunit-api/test.md): This file documents all of the standard testing API.
- [Linux Kernel Memory Consistency Model (LKMM)](/kernel/development/dev-tools/lkmm/index.md): This section literally renders documents under tools/memory-model/ and tools/memory-model/Documentation/, which are maintained in the pure plain text form.
- [README (for LKMM)](/kernel/development/dev-tools/lkmm/readme.md): Literal include of tools/memory-model/README.
- [Documentation](/kernel/development/dev-tools/lkmm-docs/index.md): Reference for Documentation.
- [Access Marking](/kernel/development/dev-tools/lkmm-docs/access-marking.md): Literal include of tools/memory-model/Documentation/access-marking.txt.
- [Cheatsheet](/kernel/development/dev-tools/lkmm-docs/cheatsheet.md): Literal include of tools/memory-model/Documentation/cheatsheet.txt.
- [Control Dependencies](/kernel/development/dev-tools/lkmm-docs/control-dependencies.md): Literal include of tools/memory-model/Documentation/control-dependencies.txt.
- [Explanation](/kernel/development/dev-tools/lkmm-docs/explanation.md): Literal include of tools/memory-model/Documentation/explanation.txt.
- [Glossary](/kernel/development/dev-tools/lkmm-docs/glossary.md): Literal include of tools/memory-model/Documentation/glossary.txt.
- [herd-representation](/kernel/development/dev-tools/lkmm-docs/herd-representation.md): Literal include of tools/memory-model/Documentation/herd-representation.txt.
- [Litmus Tests](/kernel/development/dev-tools/lkmm-docs/litmus-tests.md): Literal include of tools/memory-model/Documentation/litmus-tests.txt.
- [Locking](/kernel/development/dev-tools/lkmm-docs/locking.md): Literal include of tools/memory-model/Documentation/locking.txt.
- [Ordering](/kernel/development/dev-tools/lkmm-docs/ordering.md): Literal include of tools/memory-model/Documentation/ordering.txt.
- [README (for LKMM Documentation)](/kernel/development/dev-tools/lkmm-docs/readme.md): Literal include of tools/memory-model/Documentation/README.
- [Recipes](/kernel/development/dev-tools/lkmm-docs/recipes.md): Literal include of tools/memory-model/Documentation/recipes.txt.
- [References](/kernel/development/dev-tools/lkmm-docs/references.md): Literal include of tools/memory-model/Documentation/references.txt.
- [Simple](/kernel/development/dev-tools/lkmm-docs/simple.md): Literal include of tools/memory-model/Documentation/simple.txt.

## Fault injection

- [Fault-injection](/kernel/development/fault-injection/index.md): Reference for Fault-injection.
- [Fault injection capabilities infrastructure](/kernel/development/fault-injection/fault-injection.md): See also "every_nth" module option for scsi_debug.
- [Notifier error injection](/kernel/development/fault-injection/notifier-error-inject.md): Notifier error injection provides the ability to inject artificial errors to specified notifier chain callbacks. It is useful to test the error handling of notifier call chain failures which is rarely executed. There are kernel modules…
- [NVMe Fault Injection](/kernel/development/fault-injection/nvme-fault-injection.md): Linux's fault injection framework provides a systematic way to support error injection via debugfs in the /sys/kernel/debug directory. When enabled, the default NVME_SC_INVALID_OPCODE with no retry will be injected into the…
- [Provoking crashes with Linux Kernel Dump Test Module (LKDTM)](/kernel/development/fault-injection/provoke-crashes.md): The lkdtm module provides an interface to disrupt (and usually crash) the kernel at predefined code locations to evaluate the reliability of the kernel's exception handling and to test crash dumps obtained using different dumping…

## Litmus tests

- [Litmus tests](/kernel/development/litmus-tests/readme.md): Kernel reference: Litmus tests.
- [Atomic-RMW+mb__after_atomic-is-stronger-than-acquire litmus test](/kernel/development/litmus-tests/atomic/atomic-rmw-mb-after-atomic-is-stronger-than-acquire-litmus.md): Source and expected outcome of this Linux memory-model litmus test.
- [Atomic-RMW-ops-are-atomic-WRT-atomic_set litmus test](/kernel/development/litmus-tests/atomic/atomic-rmw-ops-are-atomic-wrt-atomic-set-litmus.md): Source and expected outcome of this Linux memory-model litmus test.
- [cmpxchg-fail-ordered-1 litmus test](/kernel/development/litmus-tests/atomic/cmpxchg-fail-ordered-1-litmus.md): Source and expected outcome of this Linux memory-model litmus test.
- [cmpxchg-fail-ordered-2 litmus test](/kernel/development/litmus-tests/atomic/cmpxchg-fail-ordered-2-litmus.md): Source and expected outcome of this Linux memory-model litmus test.
- [cmpxchg-fail-unordered-1 litmus test](/kernel/development/litmus-tests/atomic/cmpxchg-fail-unordered-1-litmus.md): Source and expected outcome of this Linux memory-model litmus test.
- [cmpxchg-fail-unordered-2 litmus test](/kernel/development/litmus-tests/atomic/cmpxchg-fail-unordered-2-litmus.md): Source and expected outcome of this Linux memory-model litmus test.
- [DCL-broken litmus test](/kernel/development/litmus-tests/locking/dcl-broken-litmus.md): Source and expected outcome of this Linux memory-model litmus test.
- [DCL-fixed litmus test](/kernel/development/litmus-tests/locking/dcl-fixed-litmus.md): Source and expected outcome of this Linux memory-model litmus test.
- [RM-broken litmus test](/kernel/development/litmus-tests/locking/rm-broken-litmus.md): Source and expected outcome of this Linux memory-model litmus test.
- [RM-fixed litmus test](/kernel/development/litmus-tests/locking/rm-fixed-litmus.md): Source and expected outcome of this Linux memory-model litmus test.
- [RCU+sync+free litmus test](/kernel/development/litmus-tests/rcu/rcu-sync-free-litmus.md): Source and expected outcome of this Linux memory-model litmus test.
- [RCU+sync+read litmus test](/kernel/development/litmus-tests/rcu/rcu-sync-read-litmus.md): Source and expected outcome of this Linux memory-model litmus test.

## Tracing Peios Subsystems

- [Tracing Peios Subsystems](/kernel/development/peios-tracing/tracing-subsystems.md): Inspect access decisions and subsystem diagnostics through the running kernel trace interface.

## Livepatch

- [Kernel Livepatching](/kernel/development/livepatch/index.md): Reference for Kernel Livepatching.
- [Livepatching APIs](/kernel/development/livepatch/api.md): Reference for Livepatching APIs.
- [(Un)patching Callbacks](/kernel/development/livepatch/callbacks.md): Livepatch (un)patch-callbacks provide a mechanism for livepatch modules to execute callback functions when a kernel object is (un)patched. They can be considered a power feature that extends livepatching abilities to include:
- [Atomic Replace & Cumulative Patches](/kernel/development/livepatch/cumulative-patches.md): There might be dependencies between livepatches. If multiple patches need to do different changes to the same function(s) then we need to define an order in which the patches will be installed. And function implementations from any newer…
- [Livepatch](/kernel/development/livepatch/livepatch.md): This document outlines basic information about kernel livepatching.
- [Livepatch module ELF format](/kernel/development/livepatch/module-elf-format.md): This document outlines the ELF format requirements that livepatch modules must follow.
- [Reliable Stacktrace](/kernel/development/livepatch/reliable-stacktrace.md): This document outlines basic information about reliable stacktracing.
- [Shadow Variables](/kernel/development/livepatch/shadow-vars.md): Shadow variables are a simple way for livepatch modules to associate additional "shadow" data with existing data structures. Shadow data is allocated separately from parent data structures, which are left unmodified. The shadow variable…
- [System State Changes](/kernel/development/livepatch/system-state.md): Some users are really reluctant to reboot a system. This brings the need to provide more livepatches and maintain some compatibility between them.

## Trace

- [Linux Tracing Technologies Guide](/kernel/development/trace/index.md): Tracing in the Linux kernel is a powerful mechanism that allows developers and system administrators to analyze and debug system behavior. This guide provides documentation on various tracing frameworks and tools available in the Linux…
- [Boot-time tracing](/kernel/development/trace/boottime-trace.md): Boot-time tracing allows users to trace boot-time process including device initialization with full features of ftrace including per-event filter and actions, histograms, kprobe-events and synthetic-events, and trace instances. Since…
- [Using the tracer for debugging](/kernel/development/trace/debugging.md): Copyright 2024 Google LLC.
- [Eprobe - Event-based Probe Tracing](/kernel/development/trace/eprobetrace.md): Written for v6.17
- [Subsystem Trace Points: kmem](/kernel/development/trace/events-kmem.md): The kmem tracing system captures events related to object and page allocation within the kernel. Broadly speaking there are five major subheadings.
- [MSR Trace Events](/kernel/development/trace/events-msr.md): The x86 kernel supports tracing most MSR (Model Specific Register) accesses. To see the definition of the MSRs on Intel systems please see the SDM at https://www.intel.com/sdm (Volume 3)
- [NMI Trace Events](/kernel/development/trace/events-nmi.md): These events normally show up here:
- [Subsystem Trace Points: PCI](/kernel/development/trace/events-pci.md): The PCI tracing system provides tracepoints to monitor critical hardware events that can impact system performance and reliability. These events normally show up here:
- [Subsystem Trace Points: power](/kernel/development/trace/events-power.md): The power tracing system captures events related to power transitions within the kernel. Broadly speaking there are three major subheadings:
- [Event Tracing](/kernel/development/trace/events.md): Tracepoints (see Documentation/trace/tracepoints.rst) can be used without creating custom kernel modules to register probe functions using the event tracing infrastructure.
- [Fprobe - Function entry/exit probe](/kernel/development/trace/fprobe.md): Fprobe is a function entry/exit probe based on the function-graph tracing feature in ftrace. Instead of tracing all functions, if you want to attach callbacks on specific function entry and exit, similar to the kprobes and kretprobes, you…
- [Fprobe-based Event Tracing](/kernel/development/trace/fprobetrace.md): Fprobe event is similar to the kprobe event, but limited to probe on the function entry and exit only. It is good enough for many use cases which only traces some specific functions.
- [Function Tracer Design](/kernel/development/trace/ftrace-design.md): Here we will cover the architecture pieces that the common function tracing code relies on for proper functioning. Things are broken down into increasing complexity so that you can start simple and at least get basic functionality.
- [Using ftrace to hook to functions](/kernel/development/trace/ftrace-uses.md): Written for: 4.14
- [ftrace - Function Tracer](/kernel/development/trace/ftrace.md): Copyright 2008 Red Hat Inc.
- [HiSilicon PCIe Tune and Trace device](/kernel/development/trace/hisi-ptt.md): HiSilicon PCIe tune and trace device (PTT) is a PCIe Root Complex integrated Endpoint (RCiEP) device, providing the capability to dynamically monitor and tune the PCIe link's events (tune), and trace the TLP headers (trace). The two…
- [Histogram Design Notes](/kernel/development/trace/histogram-design.md): This document attempts to provide a description of how the ftrace histograms work and how the individual pieces map to the data structures used to implement them in trace_events_hist.c and tracing_map.c.
- [Event Histograms](/kernel/development/trace/histogram.md): Documentation written by Tom Zanussi
- [Hardware Latency Detector](/kernel/development/trace/hwlat-detector.md): The tracer hwlat_detector is a special purpose tracer that is used to detect large system latencies induced by the behavior of certain underlying hardware or firmware, independent of Linux itself. The code was developed originally to…
- [Intel(R) Trace Hub (TH)](/kernel/development/trace/intel-th.md): Intel(R) Trace Hub (TH) is a set of hardware blocks that produce, switch and output trace data from multiple hardware and software sources over several types of trace output ports encoded in System Trace Protocol (MIPI STPv2) and is…
- [Kernel Probes (Kprobes)](/kernel/development/trace/kprobes.md): Kprobes enables you to dynamically break into any kernel routine and collect debugging and performance information non-disruptively. You can trap at almost any kernel code address 1, specifying a handler routine to be invoked when the…
- [Kprobe-based Event Tracing](/kernel/development/trace/kprobetrace.md): These events are similar to tracepoint-based events. Instead of tracepoints, this is based on kprobes (kprobe and kretprobe). So it can probe wherever kprobes can probe (this means, all functions except those with __kprobes/nokprobe_inline…
- [In-kernel memory-mapped I/O tracing](/kernel/development/trace/mmiotrace.md): Home page and links to optional user space tools:
- [OSNOISE Tracer](/kernel/development/trace/osnoise-tracer.md): In the context of high-performance computing (HPC), the Operating System Noise (osnoise) refers to the interference experienced by an application due to activities inside the operating system. In the context of Linux, NMIs, IRQs, SoftIRQs,…
- [Lockless Ring Buffer Design](/kernel/development/trace/ring-buffer-design.md): Copyright 2009 Red Hat Inc.
- [Tracefs ring-buffer memory mapping](/kernel/development/trace/ring-buffer-map.md): Tracefs ring-buffer memory map provides an efficient method to stream data as no memory copy is necessary. The application mapping the ring-buffer becomes then a consumer for that ring-buffer, in a similar fashion to trace_pipe.
- [System Trace Module](/kernel/development/trace/stm.md): System Trace Module (STM) is a device described in MIPI STP specs as STP trace stream generator. STP (System Trace Protocol) is a trace protocol multiplexing data from multiple trace sources, each one of which is assigned a unique pair of…
- [MIPI SyS-T over STP](/kernel/development/trace/sys-t.md): The MIPI SyS-T protocol driver can be used with STM class devices to generate standardized trace stream. Aside from being a standard, it provides better trace source identification and timestamp correlation.
- [Timerlat tracer](/kernel/development/trace/timerlat-tracer.md): The timerlat tracer aims to help the preemptive kernel developers to find sources of wakeup latencies of real-time threads. Like cyclictest, the tracer sets a periodic timer that wakes up a thread. The thread then computes a wakeup latency…
- [Notes on Analysing Behaviour Using Events and Tracepoints](/kernel/development/trace/tracepoint-analysis.md): Tracepoints (see Documentation/trace/tracepoints.rst) can be used without creating custom kernel modules to register probe functions using the event tracing infrastructure.
- [Using the Linux Kernel Tracepoints](/kernel/development/trace/tracepoints.md): This document introduces Linux Kernel Tracepoints and their use. It provides examples of how to insert tracepoints in the kernel and connect probe functions to them and provides some examples of probe functions.
- [Uprobe-tracer: Uprobe-based Event Tracing](/kernel/development/trace/uprobetracer.md): Uprobe based trace events are similar to kprobe based trace events. To enable this feature, build your kernel with CONFIG_UPROBE_EVENTS=y.
- [user_events: User-based Event Tracing](/kernel/development/trace/user-events.md): User based trace events allow user processes to create events and trace data that can be viewed via existing tools, such as ftrace and perf. To enable this feature, build your kernel with CONFIG_USER_EVENTS=y.
- [CoreSight - ARM Hardware Trace](/kernel/development/trace/coresight/index.md): Reference for CoreSight - ARM Hardware Trace.
- [CoreSight System Configuration Manager](/kernel/development/trace/coresight/coresight-config.md): The CoreSight System Configuration manager is an API that allows the programming of the CoreSight system with pre-defined configurations that can then be easily enabled from sysfs or perf.
- [Coresight CPU Debug Module](/kernel/development/trace/coresight/coresight-cpu-debug.md): Coresight CPU debug module is defined in ARMv8-a architecture reference manual (ARM DDI 0487A.k) Chapter 'Part H: External debug', the CPU can integrate debug module and it is mainly used for two modes: self-hosted debug and external…
- [Coresight Dummy Trace Module](/kernel/development/trace/coresight/coresight-dummy.md): The Coresight dummy trace module is for the specific devices that kernel don't have permission to access or configure, e.g., CoreSight TPDMs on Qualcomm platforms. For these devices, a dummy driver is needed to register them as Coresight…
- [CoreSight Embedded Cross Trigger (CTI & CTM).](/kernel/development/trace/coresight/coresight-ect.md): The CoreSight Cross Trigger Interface (CTI) is a hardware device that takes individual input and output hardware signals known as triggers to and from devices and interconnects them via the Cross Trigger Matrix (CTM) to other devices via…
- [ETMv4 sysfs linux driver programming reference.](/kernel/development/trace/coresight/coresight-etm4x-reference.md): Supplement to existing ETMv4 driver documentation.
- [CoreSight - Perf](/kernel/development/trace/coresight/coresight-perf.md): Perf is able to locally access CoreSight trace data and store it to the output perf data files. This data can then be later decoded to give the instructions that were traced for debugging or profiling purposes. You can log such data with a…
- [The trace performance monitoring and diagnostics aggregator(TPDA)](/kernel/development/trace/coresight/coresight-tpda.md): TPDA - The trace performance monitoring and diagnostics aggregator or TPDA in short serves as an arbitration and packetization engine for the performance monitoring and diagnostics network specification. The primary use case of the TPDA is…
- [Trace performance monitoring and diagnostics monitor(TPDM)](/kernel/development/trace/coresight/coresight-tpdm.md): TPDM - The trace performance monitoring and diagnostics monitor or TPDM in short serves as data collection component for various dataset types. The primary use case of the TPDM is to collect data from different data sources and send it to…
- [Trace Buffer Extension (TRBE).](/kernel/development/trace/coresight/coresight-trbe.md): Trace Buffer Extension (TRBE) is a percpu hardware which captures in system memory, CPU traces generated from a corresponding percpu tracing unit. This gets plugged in as a coresight sink device because the corresponding trace generators…
- [Coresight - HW Assisted Tracing on ARM](/kernel/development/trace/coresight/coresight.md): Coresight is an umbrella of technologies allowing for the debugging of ARM based SoC. It includes solutions for JTAG and HW assisted tracing. This document is concerned with the latter.
- [Using Coresight for Kernel panic and Watchdog reset](/kernel/development/trace/coresight/panic.md): This documentation is about using Linux coresight trace support to debug kernel panic and watchdog reset scenarios.
- [UltraSoc - HW Assisted Tracing on SoC](/kernel/development/trace/coresight/ultrasoc-smb.md): UltraSoc SMB is a per SCCL (Super CPU Cluster) hardware. It provides a way to buffer and store CPU trace messages in a region of shared system memory. The device acts as a coresight sink device and the corresponding trace generators (ETM)…
- [Runtime Verification](/kernel/development/trace/rv/index.md): Reference for Runtime Verification.
- [Deterministic Automata Instrumentation](/kernel/development/trace/rv/da-monitor-instrumentation.md): The RV monitor file created by dot2k, with the name "$MODEL_NAME.c" includes a section dedicated to instrumentation.
- [Deterministic Automata](/kernel/development/trace/rv/deterministic-automata.md): Formally, a deterministic automaton, denoted by G, is defined as a quintuple:
- [Linear temporal logic](/kernel/development/trace/rv/linear-temporal-logic.md): Runtime verification monitor is a verification technique which checks that the kernel follows a specification. It does so by using tracepoints to monitor the kernel's execution trace, and verifying that the execution trace sastifies the…
- [Real-time application monitors](/kernel/development/trace/rv/monitor-rtapp.md): Name: rtapp
- [Scheduler monitors](/kernel/development/trace/rv/monitor-sched.md): Name: sched
- [Runtime Verification Monitor Synthesis](/kernel/development/trace/rv/monitor-synthesis.md): The starting point for the application of runtime verification (RV) techniques is the specification or modeling of the desired (or undesired) behavior of the system under scrutiny.
- [Monitor wip](/kernel/development/trace/rv/monitor-wip.md): Name: wip - wakeup in preemptive
- [Monitor wwnr](/kernel/development/trace/rv/monitor-wwnr.md): Name: wwrn - wakeup while not running
- [Runtime Verification](/kernel/development/trace/rv/runtime-verification.md): Runtime Verification (RV) is a lightweight (yet rigorous) method that complements classical exhaustive verification techniques (such as model checking and theorem proving) with a more practical approach for complex systems.
- [Symbolic MSR names in traces](/kernel/development/trace/postprocess/decode-msr-py.md): Adds symbolic MSR names to read_msr and write_msr trace entries using an MSR index header.
- [Page-allocation trace postprocessor](/kernel/development/trace/postprocess/trace-pagealloc-postprocess-pl.md): Original prototype for summarizing page-allocation trace output, including its parser limitations and command options.
- [Page-reclaim trace postprocessor](/kernel/development/trace/postprocess/trace-vmscan-postprocess-pl.md): Original prototype for summarizing page-reclaim trace output, including its parser limitations and command options.
- [Vim folding for function-graph traces](/kernel/development/trace/function-graph-fold-vim.md): Vim folding definitions for ftrace function_graph output, with usage and single-CPU trace guidance in the source.

## Writing documentation

- [How to write kernel documentation](/kernel/development/doc-guide/index.md): Reference for How to write kernel documentation.
- [Maintaining Peios kernel documentation](/kernel/development/doc-guide/maintaining-peios-documentation.md): Edit the authoritative Trail documentation and reconcile changes from upstream Linux.
- [Checking for needed translation updates](/kernel/development/doc-guide/checktransupdate.md): This script helps track the translation status of the documentation in different locales, i.e., whether the documentation is up-to-date with the English counterpart.
- [How to help improve kernel documentation](/kernel/development/doc-guide/contributing.md): Documentation is an important part of any software-development project. Good documentation helps to bring new developers in and helps established developers work more effectively. Without top-quality documentation, a lot of time is wasted…
- [Writing kernel-doc comments](/kernel/development/doc-guide/kernel-doc.md): The Linux kernel source files may contain structured documentation comments in the kernel-doc format to describe the functions, types and design of the code. It is easier to keep documentation up-to-date when it is embedded in source files.
- [Documentation subsystem maintainer entry profile](/kernel/development/doc-guide/maintainer-profile.md): The documentation "subsystem" is the central coordinating point for the kernel's documentation and associated infrastructure. It covers the hierarchy under Documentation/ (with the exception of Documentation/devicetree), various utilities…
- [Including uAPI header files](/kernel/development/doc-guide/parse-headers.md): Sometimes, it is useful to include header files and C example codes in order to describe the userspace API and to generate cross-references between the code and the documentation. Adding cross-references for userspace API files has an…
- [Using Sphinx for kernel documentation](/kernel/development/doc-guide/sphinx.md): The Linux kernel uses Sphinx to generate pretty documentation from reStructuredText files under Documentation. To build the documentation in HTML or PDF formats, use make htmldocs or make pdfdocs. The generated documentation is placed in…
- [The Linux Kernel documentation](/kernel/development/doc-guide/upstream-overview.md): This is the top level of the kernel's documentation tree. Kernel documentation, like the kernel itself, is very much a work in progress; that is especially true as we work to integrate our many scattered documents into a coherent whole.…
- [Kernel subsystem documentation](/kernel/development/doc-guide/subsystem-apis.md): These books get into the details of how specific kernel subsystems work from the point of view of a kernel developer. Much of the information here is taken directly from the kernel source, with supplemental material added as needed (or at…

## Maintainer guidance

- [Kernel Maintainer Handbook](/kernel/development/maintainer/index.md): This document is the humble beginning of a manual for kernel maintainers. There is a lot yet to go here! Please feel free to propose (and write) additions to this manual.
- [Configuring Git](/kernel/development/maintainer/configure-git.md): This chapter describes maintainer level git configuration.
- [Feature and driver maintainers](/kernel/development/maintainer/feature-and-driver-maintainers.md): The term "maintainer" spans a very wide range of levels of engagement from people handling patches and pull requests as almost a full time job to people responsible for a small feature or a driver.
- [Maintainer Entry Profile](/kernel/development/maintainer/maintainer-entry-profile.md): The Maintainer Entry Profile supplements the top-level process documents (submitting-patches, submitting drivers...) with subsystem/device-driver-local customs as well as details about the patch submission life-cycle. A contributor uses…
- [Handling messy pull-request diffstats](/kernel/development/maintainer/messy-diffstat.md): Subsystem maintainers routinely use git request-pull as part of the process of sending work upstream. Normally, the result includes a nice diffstat that shows which files will be touched and how much of each will be changed. Occasionally,…
- [Modifying Patches](/kernel/development/maintainer/modifying-patches.md): If you are a subsystem or branch maintainer, sometimes you need to slightly modify patches you receive in order to merge them, because the code is not exactly the same in your tree and the submitters'. If you stick strictly to rule (c) of…
- [Creating Pull Requests](/kernel/development/maintainer/pull-requests.md): This chapter describes how maintainers can create and submit pull requests to other maintainers. This is useful for transferring changes from one maintainers tree to another maintainers tree.
- [Rebasing and merging](/kernel/development/maintainer/rebasing-and-merging.md): Maintaining a subsystem, as a general rule, requires a familiarity with the Git source-code management system. Git is a powerful tool with a lot of features; as is often the case with such tools, there are right and wrong ways to use those…

## Development process

- [Working with the kernel development community](/kernel/development/process/index.md): So you want to be a Linux kernel developer? Welcome! While there is a lot to be learned about the kernel in a technical sense, it is also important to learn about how our community works. Reading these documents will make it much easier…
- [Introduction](/kernel/development/process/1-intro.md): The rest of this section covers the scope of the kernel development process and the kinds of frustrations that developers and their employers can encounter there. There are a great many reasons why kernel code should be merged into the…
- [How the development process works](/kernel/development/process/2-process.md): Linux kernel development in the early 1990s was a pretty loose affair, with relatively small numbers of users and developers involved. With a user base in the millions and with some 2,000 developers involved over the course of one year,…
- [Early-stage planning](/kernel/development/process/3-early-stage.md): When contemplating a Linux kernel development project, it can be tempting to jump right in and start coding. As with any significant project, though, much of the groundwork for success is best laid before the first line of code is written.…
- [Getting the code right](/kernel/development/process/4-coding.md): While there is much to be said for a solid and community-oriented design process, the proof of any kernel development project is in the resulting code. It is the code which will be examined by other developers and merged (or not) into the…
- [Posting patches](/kernel/development/process/5-posting.md): Sooner or later, the time comes when your work is ready to be presented to the community for review and, eventually, inclusion into the mainline kernel. Unsurprisingly, the kernel development community has evolved a set of conventions and…
- [Followthrough](/kernel/development/process/6-followthrough.md): At this point, you have followed the guidelines given so far and, with the addition of your own engineering skills, have posted a perfect series of patches. One of the biggest mistakes that even experienced kernel developers can make is to…
- [Advanced topics](/kernel/development/process/7-advancedtopics.md): At this point, hopefully, you have a handle on how the development process works. There is still more to learn, however! This section will cover a number of topics which can be helpful for developers wanting to become a regular part of the…
- [For more information](/kernel/development/process/8-conclusion.md): There are numerous sources of information on Linux kernel development and related topics. First among those will always be the Documentation directory found in the kernel source distribution. Start with the top-level process/howto.rst…
- [Adding a New System Call](/kernel/development/process/adding-syscalls.md): This document describes what's involved in adding a new system call to the Linux kernel, over and above the normal submission advice in Documentation/process/submitting-patches.rst <submittingpatches>.
- [Applying Patches To The Linux Kernel](/kernel/development/process/applying-patches.md): Jesper Juhl, August 2005
- [Backporting and conflict resolution](/kernel/development/process/backporting.md): Introduction
- [(How to avoid) Botching up ioctls](/kernel/development/process/botching-up-ioctls.md): From: https://blog.ffwll.ch/2013/11/botching-up-ioctls.html
- [Minimal requirements to compile the Kernel](/kernel/development/process/changes.md): This document is designed to provide a list of the minimum levels of software necessary to run the current kernel version.
- [Linux Kernel Contributor Covenant Code of Conduct Interpretation](/kernel/development/process/code-of-conduct-interpretation.md): The code_of_conduct is a general document meant to provide a set of rules for almost any open source community. Every open-source community is unique and the Linux kernel is no exception. Because of this, this document describes how we in…
- [Contributor Covenant Code of Conduct](/kernel/development/process/code-of-conduct.md): In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size,…
- [AI Coding Assistants](/kernel/development/process/coding-assistants.md): This document provides guidance for AI tools and developers using AI assistance when contributing to the Linux kernel.
- [Linux kernel coding style](/kernel/development/process/coding-style.md): This is a short document describing the preferred coding style for the linux kernel. Coding style is very personal, and I won't force my views on anybody, but this is what goes for anything that I have to be able to maintain, and I'd…
- [Linux kernel project continuity](/kernel/development/process/conclave.md): The Linux kernel development project is widely distributed, with over 100 maintainers each working to keep changes moving through their own repositories. The final step, though, is a centralized one where changes are pulled into the…
- [Linux Kernel Contribution Maturity Model](/kernel/development/process/contribution-maturity-model.md): As a part of the 2021 Linux Kernel Maintainers’ Summit, there was a discussion about the challenges in recruiting kernel maintainers as well as maintainer succession. Some of the conclusions from that discussion included that companies…
- [CVEs](/kernel/development/process/cve.md): Common Vulnerabilities and Exposure (CVE®) numbers were developed as an unambiguous way to identify, define, and catalog publicly disclosed security vulnerabilities. Over time, their usefulness has declined with regards to the kernel…
- [Deprecated Interfaces, Language Features, Attributes, and Conventions](/kernel/development/process/deprecated.md): In a perfect world, it would be possible to convert all instances of some deprecated API into the new API and entirely remove the old API in a single development cycle. However, due to the size of the kernel, the maintainership hierarchy,…
- [A guide to the Kernel Development Process](/kernel/development/process/development-process.md): The purpose of this document is to help developers (and their managers) work with the development community with a minimum of frustration. It is an attempt to document how this community works in a way which is accessible to those who are…
- [Email clients info for Linux](/kernel/development/process/email-clients.md): These days most developers use git send-email instead of regular email clients. The man page for this is quite good. On the receiving end, maintainers use git am to apply the patches.
- [Embargoed hardware issues](/kernel/development/process/embargoed-hardware-issues.md): Hardware issues which result in security problems are a different category of security bugs than pure software bugs which only affect the Linux kernel.
- [Kernel Guidelines for Tool-Generated Content](/kernel/development/process/generated-content.md): Kernel contributors have been using tooling to generate contributions for a long time. These tools can increase the volume of contributions. At the same time, reviewer and maintainer bandwidth is a scarce resource. Understanding which…
- [Handling regressions](/kernel/development/process/handling-regressions.md): We don't cause regressions -- this document describes what this "first rule of Linux kernel development" means in practice for developers. It complements Documentation/admin-guide/reporting-regressions.rst, which covers the topic from a…
- [HOWTO do Linux kernel development](/kernel/development/process/howto.md): This is the be-all, end-all document on this topic. It contains instructions on how to become a Linux kernel developer and how to learn to work with the Linux kernel development community. It tries to not contain anything related to the…
- [Index of Further Kernel Documentation](/kernel/development/process/kernel-docs.md): The need for a document like this one became apparent in the linux-kernel mailing list as the same questions, asking for pointers to information, appeared again and again.
- [Kernel Driver Statement](/kernel/development/process/kernel-driver-statement.md): We, the undersigned Linux kernel developers, consider any closed-source Linux kernel module or driver to be harmful and undesirable. We have repeatedly found them to be detrimental to Linux users, businesses, and the greater Linux…
- [Linux Kernel Enforcement Statement](/kernel/development/process/kernel-enforcement-statement.md): As developers of the Linux kernel, we have a keen interest in how our software is used and how the license for our software is enforced. Compliance with the reciprocal sharing obligations of GPL-2.0 is critical to the long-term…
- [Linux kernel licensing rules](/kernel/development/process/license-rules.md): The Linux Kernel is provided under the terms of the GNU General Public License version 2 only (GPL-2.0), as provided in LICENSES/preferred/GPL-2.0, with an explicit syscall exception described in LICENSES/exceptions/Linux-syscall-note, as…
- [Subsystem and maintainer tree specific development process notes](/kernel/development/process/maintainer-handbooks.md): The purpose of this document is to provide subsystem specific information which is supplementary to the general development process handbook Documentation/process <development_process_main>.
- [KVM x86](/kernel/development/process/maintainer-kvm-x86.md): KVM strives to be a welcoming community; contributions from newcomers are valued and encouraged. Please do not be discouraged or intimidated by the length of this document and the many rules/guidelines it contains. Everyone makes mistakes,…
- [Networking subsystem (netdev)](/kernel/development/process/maintainer-netdev.md): designate your patch to a tree - [PATCH net] or [PATCH net-next]
- [Kernel Maintainer PGP guide](/kernel/development/process/maintainer-pgp-guide.md): This document is aimed at Linux kernel developers, and especially at subsystem maintainers. It contains a subset of information discussed in the more general "Protecting Code Integrity" guide published by the Linux Foundation. Please read…
- [SoC Platforms with DTS Compliance Requirements](/kernel/development/process/maintainer-soc-clean-dts.md): SoC platforms or subarchitectures should follow all the rules from Documentation/process/maintainer-soc.rst. This document referenced in MAINTAINERS impose additional requirements listed below.
- [SoC Subsystem](/kernel/development/process/maintainer-soc.md): The SoC subsystem is a place of aggregation for SoC-specific code. The main components of the subsystem are:
- [The tip tree handbook](/kernel/development/process/maintainer-tip.md): The tip tree is a collection of several subsystems and areas of development. The tip tree is both a direct development tree and an aggregation tree for several sub-maintainer trees. The tip tree gitweb URL is:…
- [Maintainers](/kernel/development/process/maintainers.md): Reference for Maintainers.
- [Linux kernel management style](/kernel/development/process/management-style.md): This is a short document describing the preferred (or made up, depending on who you ask) management style for the linux kernel. It's meant to mirror the process/coding-style.rst <codingstyle> document to some degree, and mainly written to…
- [Programming Language](/kernel/development/process/programming-language.md): The Linux kernel is written in the C programming language c-language. More precisely, it is typically compiled with gcc gcc under -std=gnu11 gcc-c-dialect-options: the GNU dialect of ISO C11. clang clang is also supported; see…
- [Researcher Guidelines](/kernel/development/process/researcher-guidelines.md): The Linux kernel community welcomes transparent research on the Linux kernel, the activities involved in producing it, and any other byproducts of its development. Linux benefits greatly from this kind of research, and most aspects of…
- [Security bugs](/kernel/development/process/security-bugs.md): Linux kernel developers take security very seriously. As such, we'd like to know when a security bug is found so that it can be fixed and disclosed as quickly as possible.
- [The Linux Kernel Driver Interface](/kernel/development/process/stable-api-nonsense.md): (all of your questions answered and then some)
- [Everything you ever wanted to know about Linux -stable releases](/kernel/development/process/stable-kernel-rules.md): Rules on what kind of patches are accepted, and which ones are not, into the "-stable" tree:
- [Linux Kernel patch submission checklist](/kernel/development/process/submit-checklist.md): Here are some basic things that developers should do if they want to see their kernel patch submissions accepted more quickly.
- [Submitting patches: the essential guide to getting your code into the kernel](/kernel/development/process/submitting-patches.md): For a person or company who wishes to submit a change to the Linux kernel, the process can sometimes be daunting if you're not familiar with "the system." This text is a collection of suggestions which can greatly increase the chances of…
- [Why the "volatile" type class should not be used](/kernel/development/process/volatile-considered-harmful.md): C programmers have often taken volatile to mean that the variable could be changed outside of the current thread of execution; as a result, they are sometimes tempted to use it in kernel code when shared data structures are being used. In…
- [Debugging advice for Linux Kernel developers](/kernel/development/process/debugging/index.md): Depending on the issue, a different set of tools is available to track down the problem or even to realize whether there is one in the first place.
- [Debugging advice for driver development](/kernel/development/process/debugging/driver-development-debugging-guide.md): This document serves as a general starting point and lookup for debugging device drivers. While this guide focuses on debugging that requires re-compiling the module/kernel, the userspace debugging guide…
- [Debugging kernel and modules via gdb](/kernel/development/process/debugging/gdb-kernel-debugging.md): The kernel debugger kgdb, hypervisors like QEMU or JTAG-based hardware interfaces allow to debug the Linux kernel and its modules during runtime using gdb. Gdb comes with a powerful scripting interface for python. The kernel provides a…
- [Using kgdb, kdb and the kernel debugger internals](/kernel/development/process/debugging/kgdb.md): The kernel has two different debugger front ends (kdb and kgdb) which interface to the debug core. It is possible to use either of the debugger front ends and dynamically transition between them if you configure the kernel properly at…
- [Debugging and tracing in the media subsystem](/kernel/development/process/debugging/media-specific-debugging-guide.md): This document serves as a starting point and lookup for debugging device drivers in the media subsystem and to debug these drivers from userspace.
- [Userspace debugging advice](/kernel/development/process/debugging/userspace-debugging-guide.md): This document provides a brief overview of common tools to debug the Linux Kernel from userspace. For debugging advice aimed at driver developers go here </process/debugging/driver_development_debugging_guide>. For general debugging…
