]> 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 15a82ff0aefe8be73ffe262cd76d7c7ce3ff7a00..2ddae518dce64a54b73c175ee40721d04f5032ad 100644 (file)
@@ -30,6 +30,7 @@ struct perf_guest_info_callbacks {
        int                             (*is_in_guest)(void);
        int                             (*is_user_mode)(void);
        unsigned long                   (*get_guest_ip)(void);
+       void                            (*handle_intel_pt_intr)(void);
 };
 
 #ifdef CONFIG_HAVE_HW_BREAKPOINT
@@ -254,6 +255,7 @@ struct pmu {
        struct module                   *module;
        struct device                   *dev;
        const struct attribute_group    **attr_groups;
+       const struct attribute_group    **attr_update;
        const char                      *name;
        int                             type;
 
@@ -747,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;