pub struct UProbeConfig {
pub trace_pattern: TracePattern,
pub binary_path: String,
pub function_name: Option<String>,
pub function_address: Option<u64>,
pub uprobe_offset: Option<u64>,
pub target_pid: Option<u32>,
pub ebpf_bytecode: Vec<u8>,
pub ebpf_function_name: String,
pub assigned_trace_id: u32,
pub trace_context: TraceContext,
pub resolved_address_index: Option<usize>,
}Expand description
Complete uprobe configuration ready for attachment
Fields§
§trace_pattern: TracePatternThe trace pattern this uprobe corresponds to
binary_path: StringTarget binary path
function_name: Option<String>Function name (for FunctionName patterns)
function_address: Option<u64>Resolved function address in the binary
uprobe_offset: Option<u64>Calculated uprobe offset (for aya uprobe attachment)
target_pid: Option<u32>Process ID to attach to (None means attach to all instances)
ebpf_bytecode: Vec<u8>eBPF bytecode for this uprobe
ebpf_function_name: StringeBPF function name for this uprobe (e.g., “ghostscope_main_0”, “ghostscope_printf_1”)
assigned_trace_id: u32Trace ID assigned by compiler (starts from starting_trace_id and increments)
trace_context: TraceContextTrace context containing all strings, types, and variable names used in this uprobe
resolved_address_index: Option<usize>Global 1-based index of this address within the resolved target list (if applicable)
Trait Implementations§
Source§impl Clone for UProbeConfig
impl Clone for UProbeConfig
Source§fn clone(&self) -> UProbeConfig
fn clone(&self) -> UProbeConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for UProbeConfig
impl RefUnwindSafe for UProbeConfig
impl Send for UProbeConfig
impl Sync for UProbeConfig
impl Unpin for UProbeConfig
impl UnwindSafe for UProbeConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more