Message ID | 1543230756-15319-7-git-send-email-andrew.murray@arm.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
Series | perf/core: Generalise event exclusion checking | expand |
Context | Check | Description |
---|---|---|
snowpatch_ozlabs/apply_patch | success | next/apply_patch Successfully applied |
snowpatch_ozlabs/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 7 lines checked |
diff --git a/arch/arc/kernel/perf_event.c b/arch/arc/kernel/perf_event.c index 8aec462..cf8ea6d 100644 --- a/arch/arc/kernel/perf_event.c +++ b/arch/arc/kernel/perf_event.c @@ -514,6 +514,7 @@ static int arc_pmu_device_probe(struct platform_device *pdev) .start = arc_pmu_start, .stop = arc_pmu_stop, .read = arc_pmu_read, + .capabilities = PERF_PMU_CAP_EXCLUDE, }; if (has_interrupts) {
The ARC PMU has the capability to exclude events based on context. Let's advertise that we support the PERF_PMU_CAP_EXCLUDE capability to ensure that perf doesn't prevent us from handling events where any exclusion flags are set. Signed-off-by: Andrew Murray <andrew.murray@arm.com> --- arch/arc/kernel/perf_event.c | 1 + 1 file changed, 1 insertion(+)