pub struct Recording {
pub program: PathBuf,
pub directory: PathBuf,
pub seccomp: bool,
/* private fields */
}Expand description
An external syscall recorder wrapping each command, with separate trace files.
Fields§
§program: PathBufThe recorder’s program: strace, or qk itself, whose helper loads the eBPF recorder.
directory: PathBuf§seccomp: boolWhether strace filters the traced calls in the kernel, with seccomp, so untraced calls run at full speed. strace 5.3 and later can.
Implementations§
Source§impl Recording
impl Recording
Sourcepub fn probe(directory: &Path) -> Result<Self>
pub fn probe(directory: &Path) -> Result<Self>
The recorder QK_RECORDER picks: by default eBPF, where its helper
can load it, else strace on PATH, checked to record child
processes, with seccomp filtering where it supports it. Its trial
traces go in directory.
Sourcepub fn backend(&self) -> &'static str
pub fn backend(&self) -> &'static str
The same settings, with traces in directory.
The recorder’s name, as reports give it: ebpf or strace.
pub fn in_directory(&self, directory: PathBuf) -> Self
Sourcepub fn resolving(self) -> Self
pub fn resolving(self) -> Self
The same, recording an opened file’s path with what its links lead to, as a report of what a task read shows it. strace always does.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Recording
impl RefUnwindSafe for Recording
impl Send for Recording
impl Sync for Recording
impl Unpin for Recording
impl UnsafeUnpin for Recording
impl UnwindSafe for Recording
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