Enum nc::types::perf_event_read_format_t[][src]

#[repr(u8)]
pub enum perf_event_read_format_t {
    PERF_FORMAT_TOTAL_TIME_ENABLED,
    PERF_FORMAT_TOTAL_TIME_RUNNING,
    PERF_FORMAT_ID,
    PERF_FORMAT_GROUP,
    PERF_FORMAT_MAX,
}
Expand description

The format of the data returned by read() on a perf event fd as specified by attr.read_format:

struct read_format {
  { u64 value;
    { u64 time_enabled; } && PERF_FORMAT_TOTAL_TIME_ENABLED
    { u64 time_running; } && PERF_FORMAT_TOTAL_TIME_RUNNING
    { u64 id; } && PERF_FORMAT_ID
  } && !PERF_FORMAT_GROUP

  { u64 nr;
    { u64 time_enabled; } && PERF_FORMAT_TOTAL_TIME_ENABLED
    { u64 time_running; } && PERF_FORMAT_TOTAL_TIME_RUNNING
    { u64 value;
      { u64 id; } && PERF_FORMAT_ID
    } cntr[nr];
  } && PERF_FORMAT_GROUP
};

Variants

PERF_FORMAT_TOTAL_TIME_ENABLED

PERF_FORMAT_TOTAL_TIME_RUNNING

PERF_FORMAT_ID

PERF_FORMAT_GROUP

PERF_FORMAT_MAX

non-ABI

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

Performs the conversion.

Performs the conversion.

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.