pub struct ProcessSysmon { /* private fields */ }Expand description
Process sysmon — userspace controller that listens for process lifecycle events and performs incremental prefill/cleanup of offsets.
Note: The low-level event source (tracepoints via eBPF or kernel proc connector) is pluggable. This initial implementation provides the public API and a background loop stub; the event source integration will be wired subsequently.
Implementations§
Source§impl ProcessSysmon
impl ProcessSysmon
Sourcepub fn new(mgr: Arc<Mutex<ProcessManager>>, cfg: SysmonConfig) -> Self
pub fn new(mgr: Arc<Mutex<ProcessManager>>, cfg: SysmonConfig) -> Self
Create a new sysmon instance with shared ProcessManager and config.
Sourcepub fn start(&mut self)
pub fn start(&mut self)
Start background monitoring thread and return immediately.
In the next iteration we will attach eBPF tracepoints (sched_process_exec/exit/fork) and stream events into this channel. For now, we ensure the pinned offsets map exists and keep a placeholder loop that can be extended to consume a real source.
Sourcepub fn recv_timeout(&self, timeout: Duration) -> Option<SysEvent>
pub fn recv_timeout(&self, timeout: Duration) -> Option<SysEvent>
Blocking poll (with timeout) for the next system event.