Skip to main content

Crate ghostscope_dwarf

Crate ghostscope_dwarf 

Source
Expand description

Ghostscope DWARF Analysis Library

High-performance DWARF analysis library with on-demand loading architecture inspired by GDB’s cooked index system.

Modules§

constants
Constant definitions.

Structs§

AddressExpr
Address expression that can be evaluated by a later lowering layer.
AddressQueryResult
Rich query result for a single address within a module.
AddressSpaceInfo
AnalyzerStats
Statistics for debugging and monitoring
CIntegerComparisonPlan
CIntegerComparisonType
CallerFrameRecovery
Caller-frame recovery rules materialized as planned expression ops.
CompactUnwindRow
CompactUnwindStats
CompactUnwindTable
A compact, row-oriented unwind table derived from DWARF CFI.
CuId
Stable identifier for a compilation unit within a loaded module.
DieRef
Stable reference to a DIE within a loaded module.
DwAte
The encodings of the constants used in the DW_AT_encoding attribute.
DwarfAnalyzer
DWARF analyzer - unified entry point for all DWARF analysis
EntryValueCase
One caller-side case for recovering a callee’s DW_OP_entry_value.
EnumVariant
Enum variant information
ExecutableFileInfo
Executable file information (for “info file” command)
ExplicitDebugFile
A user-provided debug file bound to one loaded module.
FunctionId
Stable identifier for a function DIE.
FunctionInfo
Function information
FunctionParameter
FunctionQueryResult
Rich query result for a function lookup across modules.
GlobalVariableInfo
Lightweight global variable metadata resolved from DWARF/ELF
IndexableElementLayout
InlineContextId
Stable identifier for an inline context inside a concrete function.
InlineFrame
LoadedModuleRuntimeInfo
Runtime mapping metadata for a loaded module.
MainExecutableInfo
Main executable information
MemberLayout
ModuleAddress
Module address pair - combines module path with address offset
ModuleId
Stable identifier for a loaded module within one DwarfAnalyzer.
ModuleLoadingStats
Statistics for a loaded module
ModuleStats
Module statistics compatible with ghostscope-binary
PcContext
PcLineInfo
PcRange
PieceLocation
PlannedAddress
RuntimeCapabilities
Capabilities available to a future BPF lowering pass.
RuntimeComputedExpr
Runtime expression selected by DWARF semantic planning.
ScopeId
Stable identifier for a lexical scope DIE.
SectionInfo
Section information for executable files
SharedLibraryInfo
Shared library information (compatible with ghostscope-ui)
SimpleFileInfo
Simple file information compatible with ghostscope-binary
SourceLineAddressSearch
SourceLineQuerySearch
SourceLocation
Source location information (address-based, not pc-based)
StructMember
Struct/union member information
TypeId
Stable identifier for a type DIE.
TypeLookupAmbiguity
UnwindDiagnostic
VariableAccessPath
VariableId
Stable identifier for a variable declaration DIE.
VariableLoweringPlan
VariableMaterializationPlan
VariablePlan
VariableQueryDiagnostic
Diagnostic produced while answering a PC-sensitive variable query.
VariableReadPlan
Owned, PC-sensitive variable read plan before runtime-specific lowering.
VisibleVariable
Owned semantic view returned by PC-context variable queries.
VisibleVariablesResult
Visible variables plus non-fatal diagnostics from best-effort discovery.

Enums§

AddressOrigin
AmbiguityReason
Reason a query could not pick one unambiguous semantic interpretation.
Availability
Whether a semantic result is usable at the requested PC.
CfaResult
CFA (Canonical Frame Address) computation for stack variables
CfaRulePlan
DebugInfoSource
Where DWARF debug information for a loaded module came from.
DwarfError
Error types for the library
HelperMode
User-memory helper strategy selected by a lowering plan.
LvalueAddressPlan
MemoryAccessSize
Memory access size for bpf_probe_read_user
ModuleDefaultPolicy
ModuleLoadingEvent
Events emitted during module loading process
PlanExprOp
Stack-machine expression op selected by DWARF lowering.
PlannedAddressKind
PlannedValue
Provenance
Where a semantic answer came from.
RegisterRecoveryPlan
RuntimeComputedKind
RuntimeRequirement
Runtime feature required before a semantic plan can be lowered safely.
SectionType
Program section classification for global/static variables
TargetArch
TypeInfo
Type information with full fidelity from DWARF debugging data
TypeKind
Variable type kind - used by compiler and streaming parser for runtime classification
TypeLayoutError
TypeQualifier
Type qualifiers
UnsupportedReason
DWARF or semantic shapes the current engine cannot represent yet.
UnwindDiagnosticKind
VariableAccessSegment
VariableLocation
PC-sensitive variable location before BPF lowering.
VariableLoweringKind
VariableMaterialization
VerifierRisk
Coarse verifier risk surfaced before backend codegen.

Functions§

c_integer_comparison_type
indexable_element_layout
is_c_aggregate_type
is_c_pointer_or_array_type
is_c_signed_integer_type
member_layout
strip_type_aliases
usual_c_arithmetic_comparison_plan

Type Aliases§

Result
Result type used throughout the library
TypeCache
Type cache for performance optimization