~/talk

"How to write your first kernel selftest"

links:none on file
slides:none on file

Short primer that explains what kernel selftests are, how to build and run them, and how to add one upstream. Describes tests as small userspace C or shell programs (some use modules), explains build with make install, running and filtering with run_kselftest which emits TAP, and the tiny Makefile pattern plus lib.mk. Notes kernel has 300+ syscalls with many untested cases, shows real 20-line examples that caught behavior changes, and points to get_maintainer.pl and the kselftest mailing list for submission and help.

AI-written summary · about

  1. 0:00Introduction
  2. 1:12What are kernel selftests
  3. 3:03Where are they kept
  4. 4:09Why kernel selftests
  5. 4:58Benefits
  6. 6:40Build
  7. 8:10Run
  8. 9:32Run all tests
  9. 10:43Simple selftest
  10. 12:37Another small test
  11. 15:37What needs testing
  12. 17:37Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.