~/talk

Dynamic tracing within a busybox environment

Talkat Embedded Fest 2021 Online · on Friday, 2021-12-03· [security]
links:none on file
slides:none on file

Shows how to do kernel-level dynamic tracing on a constrained busybox system using only echo and cat to control tracefs and ftrace, plus small shell scripts. Demonstrates using set_event_pid and set_ftrace_pid, tracers, event groups and synthetic events to correlate enter/exit data, and eprobes to dereference user strings. Examples: ls generates ~15,000 function events with no loss; ring buffer counters show lost events when overflowed; dropbear wakes four times matching four TCP packets. Host-side libtrace tools and a tar-ish copy trick complete the workflow.

AI-written summary · about

  1. 0:00Intro
  2. 2:48Pseudo file systems
  3. 4:03Ftrace files
  4. 5:03Tracers
  5. 5:25Busybox tracers
  6. 7:42Events
  7. 8:19Scheduling tasks
  8. 9:49Enabling tracing
  9. 10:28Do trace task
  10. 11:47Do trace function
  11. 11:57Do trace tasks
  12. 12:19Event fork
  13. 13:59Parent tracing
  14. 14:26System calls
  15. 14:36System calls walkthrough
  16. 15:20Clearing trace events
  17. 16:11No trace pid
  18. 17:26Parent child tracing
  19. 18:19Interrupt fields
  20. 19:48Repeat in trace
  21. 20:00Stack trace trigger
  22. 20:13Stack trace explanation
  23. 21:08Function tracer explanation
  24. 21:24Wakeup events
  25. 22:00More information
  26. 22:30Event Probes
  27. 23:06Event Probe Example
  28. 24:09Event Probe Group
  29. 24:20File Names
  30. 24:32Exec
  31. 24:44Fault
  32. 25:56Example
  33. 26:33Synthetic events
  34. 27:04How does synthetic events work
  35. 29:48Faulted file
  36. 30:24Complex
  37. 30:36Userspace
  38. 33:15Tracing Directory
  39. 34:45Hack
  40. 36:00Shell script
~/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.