perf_event_read_format

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
};

Values

ValueMeaning
PERF_FORMAT_TOTAL_TIME_ENABLED1U << 0
PERF_FORMAT_TOTAL_TIME_RUNNING1U << 1
PERF_FORMAT_ID1U << 2
PERF_FORMAT_GROUP1U << 3
PERF_FORMAT_MAX1U << 4

non-ABI

Meta