perf/x86: Reset the dirty counter to prevent the leak for an RDPMC task
[linux-2.6-microblaze.git] / arch / x86 / events / perf_event.h
index 27fa85e..d6003e0 100644 (file)
@@ -229,6 +229,7 @@ struct cpu_hw_events {
         */
        struct perf_event       *events[X86_PMC_IDX_MAX]; /* in counter order */
        unsigned long           active_mask[BITS_TO_LONGS(X86_PMC_IDX_MAX)];
+       unsigned long           dirty[BITS_TO_LONGS(X86_PMC_IDX_MAX)];
        int                     enabled;
 
        int                     n_events; /* the # of events in the below arrays */