Struct perf_event::hooks::RealHooks

source ·
pub struct RealHooks;
Expand description

An implementation of the Hooks trait in terms of the real Linux system calls.

This type implements each methods of the Hooks trait by calling the underlying system call or ioctl. The following call is equivalent to calling clear_thread_hooks:

unsafe {
    set_thread_hooks(Box::new(RealHooks));
}

If what you want is non-intercepted access to the underlying system calls, it’s probably better to just access the perf_event_open_sys crate directly, rather than using this type.

Trait Implementations

Wrapper for perf_event ioctl perf_event_ioctls_ENABLE . Read more
Wrapper for perf_event ioctl perf_event_ioctls_DISABLE . Read more
Wrapper for perf_event ioctl perf_event_ioctls_REFRESH . Read more
Wrapper for perf_event ioctl perf_event_ioctls_RESET . Read more
Wrapper for perf_event ioctl perf_event_ioctls_PERIOD . Read more
Wrapper for perf_event ioctl perf_event_ioctls_SET_OUTPUT . Read more
Wrapper for perf_event ioctl perf_event_ioctls_SET_FILTER . Read more
Wrapper for perf_event ioctl perf_event_ioctls_ID . Read more
Wrapper for perf_event ioctl perf_event_ioctls_SET_BPF . Read more
Wrapper for perf_event ioctl perf_event_ioctls_PAUSE_OUTPUT . Read more
Wrapper for perf_event ioctl perf_event_ioctls_QUERY_BPF . Read more
Wrapper for perf_event ioctl perf_event_ioctls_MODIFY_ATTRIBUTES . Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.