ghostscope-compiler
ghostscope-compiler turns GhostScope trace definitions into DWARF-aware eBPF programs. It parses the DSL, performs DWARF resolution, and emits IR that targets LLVM's BPF backend.
Build Requirements
- LLVM 18.x with
llvm-configavailable onPATH(or setLLVM_CONFIG_PATH) - The
inkwellcrate'sllvm18-1feature expects a shared build; consult your package manager or build from source with-DLLVM_ENABLE_PROJECTS=clang;lld
If LLVM lives in a non-standard directory, export LLVM_SYS_180_PREFIX or LLVM_CONFIG_PATH before invoking Cargo. The top-level documentation explains the full workflow: https://github.com/swananan/ghostscope#readme.