perf: Disable sampled events if no PMU interrupt
[deliverable/linux.git] / include / linux / perf_event.h
index af6dcf1d9e476c6f49d4bc4974c724c63354c922..267c8f37012cf5bd19fab828f25519869ad2ed50 100644 (file)
@@ -166,6 +166,11 @@ struct perf_event;
  */
 #define PERF_EVENT_TXN 0x1
 
+/**
+ * pmu::capabilities flags
+ */
+#define PERF_PMU_CAP_NO_INTERRUPT              0x01
+
 /**
  * struct pmu - generic performance monitoring unit
  */
@@ -178,6 +183,11 @@ struct pmu {
        const char                      *name;
        int                             type;
 
+       /*
+        * various common per-pmu feature flags
+        */
+       int                             capabilities;
+
        int * __percpu                  pmu_disable_count;
        struct perf_cpu_context * __percpu pmu_cpu_context;
        int                             task_ctx_nr;
This page took 0.024119 seconds and 5 git commands to generate.