Message ID | 1470944843-7575-3-git-send-email-mathieu.poirier@linaro.org |
---|---|
State | Accepted |
Commit | 12b40a2393719a37ff86a0b43bece6d28a75cbfc |
Headers | show |
diff --git a/kernel/events/core.c b/kernel/events/core.c index 0662279c5729..463235ffc39c 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -6622,6 +6622,13 @@ static void perf_addr_filters_adjust(struct vm_area_struct *vma) struct perf_event_context *ctx; int ctxn; + /* + * Data tracing isn't supported yet and as such there is no need + * to keep track of anything that isn't related to executable code. + */ + if (!(vma->vm_flags & VM_EXEC)) + return; + rcu_read_lock(); for_each_task_context_nr(ctxn) { ctx = rcu_dereference(current->perf_event_ctxp[ctxn]);