pub struct PerfEventOpts {
pub cookie: u64,
pub force_ioctl_attach: bool,
/* private fields */
}
Expand description
Options to optionally be provided when attaching to a perf event.
Fields§
Custom user-provided value accessible through bpf_get_attach_cookie
.
force_ioctl_attach: bool
Force use of the old style ioctl attachment instead of the newer BPF link method.
Trait Implementations§
Source§impl Clone for PerfEventOpts
impl Clone for PerfEventOpts
Source§fn clone(&self) -> PerfEventOpts
fn clone(&self) -> PerfEventOpts
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 moreSource§impl Debug for PerfEventOpts
impl Debug for PerfEventOpts
Source§impl Default for PerfEventOpts
impl Default for PerfEventOpts
Source§fn default() -> PerfEventOpts
fn default() -> PerfEventOpts
Returns the “default value” for a type. Read more
Source§impl From<PerfEventOpts> for bpf_perf_event_opts
impl From<PerfEventOpts> for bpf_perf_event_opts
Source§fn from(opts: PerfEventOpts) -> Self
fn from(opts: PerfEventOpts) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PerfEventOpts
impl RefUnwindSafe for PerfEventOpts
impl Send for PerfEventOpts
impl Sync for PerfEventOpts
impl Unpin for PerfEventOpts
impl UnwindSafe for PerfEventOpts
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