pub struct PerfProbeArgs {
pub config: PerfProbeConfig,
pub name: String,
pub offset: u64,
pub size: u32,
pub type_: PerfTypeId,
pub pid: i32,
pub cpu: i32,
pub group_fd: i32,
pub flags: PerfEventOpenFlags,
pub sample_type: Option<perf_event_sample_format>,
}Expand description
perf_event_open syscall arguments.
Fields§
§config: PerfProbeConfigConfiguration for the perf probe.
name: StringName of the perf probe.
offset: u64Offset for the perf probe.
size: u32Size of the perf probe.
type_: PerfTypeIdType of the perf probe.
pid: i32PID for the perf probe.
cpu: i32CPU for the perf probe.
group_fd: i32Group file descriptor for the perf probe.
flags: PerfEventOpenFlagsFlags for the perf probe.
sample_type: Option<perf_event_sample_format>Sample type for the perf probe.
Implementations§
Source§impl PerfProbeArgs
impl PerfProbeArgs
Sourcepub fn try_from_perf_attr<F: KernelAuxiliaryOps>(
attr: &perf_event_attr,
pid: i32,
cpu: i32,
group_fd: i32,
flags: u32,
) -> LinuxResult<Self>
pub fn try_from_perf_attr<F: KernelAuxiliaryOps>( attr: &perf_event_attr, pid: i32, cpu: i32, group_fd: i32, flags: u32, ) -> LinuxResult<Self>
Try to create a PerfProbeArgs from a perf_event_attr structure.
Trait Implementations§
Source§impl Clone for PerfProbeArgs
impl Clone for PerfProbeArgs
Source§fn clone(&self) -> PerfProbeArgs
fn clone(&self) -> PerfProbeArgs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PerfProbeArgs
impl RefUnwindSafe for PerfProbeArgs
impl Send for PerfProbeArgs
impl Sync for PerfProbeArgs
impl Unpin for PerfProbeArgs
impl UnsafeUnpin for PerfProbeArgs
impl UnwindSafe for PerfProbeArgs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more