ghostscope_platform/lib.rs
1/// Platform-specific utilities for the GhostScope eBPF debugging tool
2///
3/// This crate provides platform-specific abstractions for:
4/// - Register mappings between DWARF and eBPF pt_regs
5/// - Calling convention analysis and parameter location detection
6/// - Function prologue analysis for accurate parameter access
7/// - Type definitions for cross-crate compatibility
8pub mod calling_convention;
9pub mod register_mapping;
10pub mod types;
11
12// Re-export key types and traits for convenience
13pub use calling_convention::{get_parameter_register_in_context, CallingConvention, X86_64SystemV};
14pub use register_mapping::{
15 dwarf_reg_to_name, dwarf_reg_to_name_x86_64, dwarf_reg_to_pt_regs_byte_offset,
16 dwarf_reg_to_pt_regs_byte_offset_x86_64, pt_regs_indices,
17};
18pub use types::{CodeReader, PlatformError, SourceLocation};