- Rust 1.88.0 (enforced via
rust-toolchain.toml) - LLVM 18 (including Polly library:
libpolly-18-dev) - Linux kernel 4.4+
cargo buildsudo cargo testGhostScope provides a standalone dwarf-tool for testing and debugging DWARF parsing:
cargo build -p dwarf-tool# Enable saving intermediate files
cargo run -- --save-llvm-ir --save-ebpf --save-ast
# Files saved as: gs_{pid}_{exec}_{func}_{index}.{ext}
ls gs_*.ll # LLVM IR files
ls gs_*.ebpf # eBPF bytecode
ls gs_*.ast # AST dumps- Follow standard Rust naming conventions
- Use
cargo fmtbefore committing - Run
cargo clippyfor linting