pub struct DynamicPmu {
pub ty: u32,
pub config: u64,
pub config1: u64,
pub config2: u64,
pub config3: u64,
}
Expand description
Dynamic PMU event
Fields§
§ty: u32
The type value to use can be found in the sysfs filesystem: there is a subdirectory per
PMU instance under /sys/bus/event_source/devices
. In each subdirectory there is a
type file whose content is an integer that can be used in the this field.
For instance, /sys/bus/event_source/devices/cpu/type
contains the value for
the core CPU PMU, which is usually 4.
config: u64
Event config.
config1: u64
Event config1.
config2: u64
Event config2.
config3: u64
Event config3.
Since linux-6.3
: https://github.com/torvalds/linux/commit/09519ec3b19e4144b5f6e269c54fbb9c294a9fcb
Trait Implementations§
Source§impl Clone for DynamicPmu
impl Clone for DynamicPmu
Source§fn clone(&self) -> DynamicPmu
fn clone(&self) -> DynamicPmu
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 DynamicPmu
impl Debug for DynamicPmu
Source§impl TryFrom<&DynamicPmu> for Event
impl TryFrom<&DynamicPmu> for Event
Source§impl TryFrom<DynamicPmu> for Event
impl TryFrom<DynamicPmu> for Event
Source§impl TryFrom<Kprobe> for DynamicPmu
impl TryFrom<Kprobe> for DynamicPmu
Source§impl TryFrom<Kretprobe> for DynamicPmu
impl TryFrom<Kretprobe> for DynamicPmu
Source§impl TryFrom<Uprobe> for DynamicPmu
impl TryFrom<Uprobe> for DynamicPmu
Auto Trait Implementations§
impl Freeze for DynamicPmu
impl RefUnwindSafe for DynamicPmu
impl Send for DynamicPmu
impl Sync for DynamicPmu
impl Unpin for DynamicPmu
impl UnwindSafe for DynamicPmu
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