How shawnzhong/depsurf works
Project type and purpose
• DepSurf is a research‐oriented data‐analysis tool (not a web service or a multi-tiered product). It consists of a core Python library plus Jupyter notebooks that drive a data‐processing pipeline to analyze eBPF–kernel dependency mismatches.
• The README confirms its purpose: ingest Linux kernel images and eBPF programs, compute dependency “surfaces,” diff across versions, and produce tables/plots for a EuroSys paper.
File structure
• Top level:
• depsurf/ – the core library, subdivided into:
– btf/: type info processing
– diff/: computing dependency‐surface differences
– funcs/: extracting function metadata
– linux/: loading & analyzing kernel images
– other modules: dep.py, prep.py, report.py, issues.py
• data/ – data artifacts:
– dataset/: precomputed kernel dependency sets
– software/: sample eBPF programs
– website/: static site content
• utils/ – helper routines for notebooks (plotting, LaTeX, paths)
• Jupyter notebooks (00_*.ipynb…52_summary.ipynb) that sequentially:
1. Install dependencies
2. Download kernels
3. Build dataset
4. Compute diffs & stats
5. Generate plots/tables
• archive/ – legacy code & experimental tools (can be shown as a side/optional module)
Key insights from README
• The sequence of notebooks defines the pipeline stages.
• The library modules map directly to pipeline functionality: BTF parsing, diff logic, function extraction, kernel‐image handling, reporting.
• External dependencies: Python 3.11+, Jupyter Lab, uv (for environment), Linux kernels (23 GB+), Git submodules.