~/talk

Using Python to make sense of system traces

Talkat PyCon Canada 2017 · 2017-11-18..11-21· [linux-and-operating-systems]
slides:none on file

Shows how LTTng traces capture both Python user‑space events and Linux kernel syscalls, using a simple HTTP server instrumented with the LTTng UST Python agent. Demonstrates building analyses with Babeltrace 2 Python bindings, assembling a plugin that correlates function entry/return, bytecode events and syscalls on one timeline, and extracting timing/error metrics. Covers live mode, CTF traces, a flight‑recorder snapshot workflow for production capture, and an example of compiling CPython with function instrumentation; the tools work and reveal where time and errors occur.

AI-written summary · about

  1. 0:00Introduction
  2. 0:40Overview
  3. 1:00Tracers vs Loggers
  4. 2:10Lowlevel events
  5. 3:01Binary formats
  6. 3:21LTT Network
  7. 4:47unify tracers
  8. 5:21userspace tracing
  9. 6:07Python to entry
  10. 6:42Python simple HTTP request handler
  11. 10:37Python bindings
  12. 11:15Python benefits
  13. 12:08Kernelspace tools
  14. 12:58Starting a new tool
  15. 13:30What is babeltrace
  16. 14:11Using babeltrace in Python
  17. 14:55Implementing babeltrace
  18. 20:31Viewing the code
  19. 23:07Debugging the code
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.