pub struct PidViews {
pub proc_pid: u32,
pub host_pid: u32,
pub container_pid: Option<u32>,
pub pid_ns: Option<PidNamespaceId>,
pub nspid_chain: Option<Vec<u32>>,
pub source: PidResolveSource,
}Fields§
§proc_pid: u32PID used for /proc/<pid>/... access in GhostScope’s current userspace view.
We intentionally do not store input_pid here. In GhostScope’s supported
-p contract, users enter the PID visible in the current environment, so
input_pid and proc_pid are normally the same value. Keeping only
proc_pid avoids duplicating the same concept inside the runtime PID model.
host_pid: u32PID used by host-view runtime events and host-TGID filtering.
container_pid: Option<u32>Innermost PID namespace view when it differs from proc_pid.
pid_ns: Option<PidNamespaceId>PID namespace identifier for proc_pid when it can be resolved.
nspid_chain: Option<Vec<u32>>Raw NSpid chain as reported by /proc/<proc_pid>/status.
source: PidResolveSourceResolution source for diagnostics.
Implementations§
Source§impl PidViews
impl PidViews
pub fn compact_display(&self) -> String
pub fn has_explicit_host_mapping(&self) -> bool
pub fn is_initial_pid_namespace(&self) -> bool
pub fn pid_ns_dev(&self) -> Option<u64>
pub fn pid_ns_inode(&self) -> Option<u64>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PidViews
impl RefUnwindSafe for PidViews
impl Send for PidViews
impl Sync for PidViews
impl Unpin for PidViews
impl UnsafeUnpin for PidViews
impl UnwindSafe for PidViews
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