Struct perfcnt::linux::PerfCounterBuilderLinux [] [src]

pub struct PerfCounterBuilderLinux {
    // some fields omitted
}

Methods

impl PerfCounterBuilderLinux
[src]

Instantiate a generic performance counter for hardware events as defined by the Linux interface.

Instantiate a generic performance counter for software events as defined by the Linux interface.

Instantiate a generic performance counter for software events as defined by the Linux interface.

Instantiate a H/W performance counter using a hardware event as described in Intels SDM.

Set counter group.

Sets PERF_FLAG_FD_OUTPUT

This flag re-routes the output from an event to the group leader.

Sets PERF_FLAG_PID_CGROUP

This flag activates per-container system-wide monitoring. A container is an abstraction that isolates a set of resources for finer grain control (CPUs, memory, etc.). In this mode, the event is measured only if the thread running on the monitored CPU belongs to the designated container (cgroup).

Add a sample period.

Add a sample frequency.

The counter starts out disabled.

This counter should count events of child tasks as well as the task specified.

The pinned bit specifies that the counter should always be on the CPU if at all possible. It applies only to hardware counters and only to group leaders.

The counter is exclusive i.e., when this counter's group is on the CPU, it should be the only group using the CPU's counters.

The counter excludes events that happen in user space.

The counter excludes events that happen in the kernel.

The counter excludes events that happen in the hypervisor.

The counter doesn't count when the CPU is idle.

Enables recording of exec mmap events.

The counter will save event counts on context switch for inherited tasks. This is meaningful only if the inherit field is set.

The counter is automatically enabled after a call to exec.

fork/exit notifications are included in the ring buffer.

The counter has a sampling interrupt happen when we cross the wakeup_watermark boundary. Otherwise interrupts happen after wakeup_events samples.

Sampled IP counter can have arbitrary skid.

Sampled IP counter requested to have constant skid.

Sampled IP counter requested to have 0 skid.

The counterpart of enable_mmap, but enables including data mmap events in the ring-buffer.

Sampled IP counter must have 0 skid.

Adds the 64-bit time_enabled field. This can be used to calculate estimated totals if the PMU is overcommitted and multiplexing is happening.

Adds the 64-bit time_running field. This can be used to calculate estimated totals if the PMU is overcommitted and multiplexing is happening.

Adds a 64-bit unique value that corresponds to the event group.

Allows all counter values in an event group to be read with one read.

Measure for all PIDs on the core.

Measure for a specific PID.

Pin counter to CPU.

Measure on all CPUs.

Instantiate the performance counter.

Trait Implementations

impl Default for PerfCounterBuilderLinux
[src]

Returns the "default value" for a type. Read more