pub struct TraceSpec {
pub kind: TraceKind,
pub flags: TraceFlags,
pub enable_events: u64,
pub disable_events: u64,
pub sctx: Option<ObjID>,
pub mctx: Option<ObjID>,
pub thread: Option<ObjID>,
pub cpuid: Option<u64>,
pub extra: ObjID,
}Expand description
Tracing specification. Note that events can be disabled and enabled in one spec. It is unspecified if events are disabled or enabled first.
Fields§
§kind: TraceKindThe event kind to track.
flags: TraceFlagsFlags for this specification.
enable_events: u64Events to enable.
disable_events: u64Events to disable.
sctx: Option<ObjID>Optionally restrict events to given security context.
mctx: Option<ObjID>Optionally restrict events to given memory context.
thread: Option<ObjID>Optionally restrict events to given thread.
cpuid: Option<u64>Optionally restrict events to given CPU.
extra: ObjIDExtra data passed in trace events that match this spec.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TraceSpec
impl ObjSafe for TraceSpec
impl RefUnwindSafe for TraceSpec
impl Send for TraceSpec
impl Sync for TraceSpec
impl Unpin for TraceSpec
impl UnwindSafe for TraceSpec
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