Skip to main content

observe

Function observe 

Source
pub fn observe(
    accesses: &Accesses,
    ignore: &PathPatterns,
    track: &PathPatterns,
    states: &FileStates,
    tracer: &dyn Tracer,
) -> Observed
Expand description

Record the state of every path in accesses, concurrently on the worker pool of states, leaving out and counting the paths that ignore matches, and hashing the /proc and /sys paths that track matches. Hashes go through states, and the extended attributes of the paths whose attributes were read or listed come from the attribute query of tracer.