From patchwork Fri Jul 15 22:25:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 72154 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp23931qga; Fri, 15 Jul 2016 15:26:19 -0700 (PDT) X-Received: by 10.98.78.138 with SMTP id c132mr25389341pfb.67.1468621576744; Fri, 15 Jul 2016 15:26:16 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r73si2434819pfi.287.2016.07.15.15.26.16; Fri, 15 Jul 2016 15:26:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751884AbcGOWZz (ORCPT + 29 others); Fri, 15 Jul 2016 18:25:55 -0400 Received: from mail-io0-f179.google.com ([209.85.223.179]:33167 "EHLO mail-io0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751325AbcGOWZr (ORCPT ); Fri, 15 Jul 2016 18:25:47 -0400 Received: by mail-io0-f179.google.com with SMTP id 38so116470038iol.0 for ; Fri, 15 Jul 2016 15:25:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=n7IefVVmWkSkwkZYZy+aG5APw3NqPxzpHUtDSCWfDdY=; b=b3OO3fgzl6exBQKx9/SEi9qgDFgoFGvV/Bmsi0RIcmFLszANo8/pWGzMIJ8IG6VXIz ApQd1uV4zFKSD16Hoho7heGjxbY+jV2cj1RwSW/NB08X5UeyRuht7eBLer7GNPovgg8F wYKG8ymXG7TG1bHuP718bzmyQpUKwX8JC9S9A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=n7IefVVmWkSkwkZYZy+aG5APw3NqPxzpHUtDSCWfDdY=; b=a7osJVNePLClJB55tuzi0zqsgnKSxzKLW53Mr3t9JYoF9CAZcU9UqLmHB8lYbJz+wm EsRdUQRRYCAO1FYQiutBa5iftvW18yCRMQNCApcdERtck34nWGRwiqozWwf58m5uThtQ CbtyJIxB0+gTavLTrSE9Ih8LH+39aXu5IdwHwjra6ZQaZdZSjjPYKuVjxHSapf7aSGto hoJqwiDoFeDe4azKSziyblD8bYXAteFfaOKzcJvUqM2FPuYyID7c/RsikIhel5DYtj7a QtvoB2EAPo+CJp5QwhO48SkEc55gTNKD9vWBqt59HZxVLeYiub0fMwQwcE6ChHCYZ3/l hUMg== X-Gm-Message-State: ALyK8tI8J4Rmlfm0ojWouZWgYhNsqXlLw/DhiqpIYaeVFl+2+SXj6aoAT+VLQ1aRIeeVFcuu X-Received: by 10.107.19.8 with SMTP id b8mr24109102ioj.9.1468621546243; Fri, 15 Jul 2016 15:25:46 -0700 (PDT) Received: from t430.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id d15sm302758itb.12.2016.07.15.15.25.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 15 Jul 2016 15:25:45 -0700 (PDT) From: Mathieu Poirier To: alexander.shishkin@linux.intel.com Cc: peterz@infradead.org, mingo@redhat.com, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] perf/core: enabling mapping of the stop filters Date: Fri, 15 Jul 2016 16:25:41 -0600 Message-Id: <1468621541-31024-4-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1468621541-31024-1-git-send-email-mathieu.poirier@linaro.org> References: <1468621541-31024-1-git-send-email-mathieu.poirier@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At this time function perf_addr_filter_needs_mmap() will _not_ return true on a user space 'stop' filter. But stop filters needs exactly the same kind of mapping that range and start filters get. Signed-off-by: Mathieu Poirier --- kernel/events/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/kernel/events/core.c b/kernel/events/core.c index b9aa8f0ff070..b0bf00c728c2 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -6498,7 +6498,7 @@ got_name: */ static bool perf_addr_filter_needs_mmap(struct perf_addr_filter *filter) { - return filter->filter && filter->inode; + return filter->inode; } /*