]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/linux/perf_event.h
perf/cgroups: Don't rotate events for cgroups unnecessarily
[linux.git] / include / linux / perf_event.h
index 3dc01cf98e1647cf3dcf8b93a9a9474a4e3ca631..2ddae518dce64a54b73c175ee40721d04f5032ad 100644 (file)
@@ -749,6 +749,11 @@ struct perf_event_context {
        int                             nr_stat;
        int                             nr_freq;
        int                             rotate_disable;
+       /*
+        * Set when nr_events != nr_active, except tolerant to events not
+        * necessary to be active due to scheduling constraints, such as cgroups.
+        */
+       int                             rotate_necessary;
        refcount_t                      refcount;
        struct task_struct              *task;