~/talk

Printk Should Be Your Last Resort

Talkat Open Source Summit India 2025 · on Tuesday, 2025-08-05· [linux-and-operating-systems]
links:none on file
slides:none on file

Argues that printk is a last resort and shows concrete replacements: uses ftrace function_graph to map TX path and finds a 3s mailbox timeout caused by bottom halves being disabled on a uniprocessor, uses tracepoints to follow mailbox stages across PF/AF, uses fprobe to catch a page order 17 vs 13 mismatch traced to 4KB vs 64KB pages, and builds a working eBPF-based memory-leak detector (kernel eBPF + userspace C controller) that quickly finds 10 leaked blocks and one single-block leak in the dummy netdev driver.

AI-written summary · about

  1. 0:00printk limitations
  2. 1:03Tracing vs printk
  3. 3:56Trace points in kernel
  4. 6:42Trace points example
  5. 9:09Function probes (fprobes)
  6. 10:12Memory allocation with fprobes
  7. 13:44eBPF for kernel tracing
  8. 15:12Memory leak detector with eBPF
  9. 22:11BPFtrace for tracing
  10. 24:05Q&A on eBPF leaks
  11. 25:11Timing issues with tracing
  12. 26:37eBPF for subsystems
  13. 28:45Q&A on trace points
  14. 30:51kprobes for debugging
  15. 33:45Summary
~/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.