~/talk

Linux Tracing Techniques

links:none on file
slides:none on file

strace uses the ptrace backend to record every system call name, arguments and return values and demonstrates that a tiny hello world collapses to write and exit_group calls; useful options shown are -f -v -e -p -c to follow forks, expand args, filter syscalls, attach to PIDs and show counts/timings. ftrace exposes kernel function tracing via tracefs, function_graph prints entry/exit with durations, and dynamic probes come from kprobes/uprobes and trace_event macros for custom kernel events.

AI-written summary · about

  1. 0:00Intro
  2. 0:58Agenda
  3. 1:22What is tracing
  4. 4:03System calls
  5. 6:45Understanding strace
  6. 9:46Simple example: strace at command line
  7. 14:31Tracing child process
  8. 20:40Filtering the strace by category
  9. 23:43Obtaining system call summary
  10. 26:29How does Ftrace works
  11. 28:39Ftrace - what can be traced
  12. 30:32Enabling events
  13. 32:29Event formats
  14. 33:48Events calling
  15. 36:23Function tracer
  16. 37:13Function graph tracer
  17. 38:00Setting filters
  18. 38:49Tracers vs Events
~/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.