perf/core: Limit matching exclusive events to one PMU
[deliverable/linux.git] / kernel / events / core.c
index a54f2c2cdb20735f67e48738c02ef2d85afa5019..fc9bb22252913acd34cf35be26fe5777a43c4506 100644 (file)
@@ -3929,7 +3929,7 @@ static void exclusive_event_destroy(struct perf_event *event)
 
 static bool exclusive_event_match(struct perf_event *e1, struct perf_event *e2)
 {
-       if ((e1->pmu->capabilities & PERF_PMU_CAP_EXCLUSIVE) &&
+       if ((e1->pmu == e2->pmu) &&
            (e1->cpu == e2->cpu ||
             e1->cpu == -1 ||
             e2->cpu == -1))
This page took 0.024422 seconds and 5 git commands to generate.