perf_counter: Add PERF_EVENT_READ
[linux-2.6.git] / include / linux / perf_counter.h
index bcbf1c4..6a384f0 100644 (file)
@@ -335,6 +335,18 @@ enum perf_event_type {
        PERF_EVENT_FORK                 = 7,
 
        /*
+        * struct {
+        *      struct perf_event_header        header;
+        *      u32                             pid, tid;
+        *      u64                             value;
+        *      { u64           time_enabled;   } && PERF_FORMAT_ENABLED
+        *      { u64           time_running;   } && PERF_FORMAT_RUNNING
+        *      { u64           parent_id;      } && PERF_FORMAT_ID
+        * };
+        */
+       PERF_EVENT_READ                 = 8,
+
+       /*
         * When header.misc & PERF_EVENT_MISC_OVERFLOW the event_type field
         * will be PERF_SAMPLE_*
         *