ghostscope-compiler

Crates.ioghostscope-compiler
lib.rsghostscope-compiler
version0.1.1
created_at2025-11-08 15:09:17.815601+00
updated_at2025-11-08 15:09:17.815601+00
descriptionCompiles GhostScope trace definitions into DWARF-aware eBPF programs ready for injection.
homepagehttps://github.com/swananan/ghostscope
repositoryhttps://github.com/swananan/ghostscope
max_upload_size
id1922971
size798,748
swananan (swananan)

documentation

https://github.com/swananan/ghostscope#readme

README

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-config available on PATH (or set LLVM_CONFIG_PATH)
  • The inkwell crate's llvm18-1 feature 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.

Commit count: 0

cargo fmt