Message ID | tip-a1396555abff9ff9b74c2e4da13e27e81fd094b2@git.kernel.org |
---|---|
State | New |
Headers | show
Return-Path: <linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rLjKm1FZ4z9t6g for <incoming@patchwork.ozlabs.org>; Fri, 3 Jun 2016 21:58:36 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1b8nkG-0002br-Pe; Fri, 03 Jun 2016 11:58:32 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b8mje-0002Qf-0O for linux-snps-arc@bombadil.infradead.org; Fri, 03 Jun 2016 10:53:50 +0000 Received: from [2001:1868:205::12] (helo=terminus.zytor.com) by casper.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1b8mjb-00077j-JM for linux-snps-arc@lists.infradead.org; Fri, 03 Jun 2016 10:53:49 +0000 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id u53ApsvN021003; Fri, 3 Jun 2016 03:51:59 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id u53AprGA020995; Fri, 3 Jun 2016 03:51:53 -0700 Date: Fri, 3 Jun 2016 03:51:53 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Vineet Gupta <tipbot@zytor.com> Message-ID: <tip-a1396555abff9ff9b74c2e4da13e27e81fd094b2@git.kernel.org> In-Reply-To: <1462786660-2900-3-git-send-email-vgupta@synopsys.com> References: <1462786660-2900-3-git-send-email-vgupta@synopsys.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf/abi: Change the errno for sampling event not supported in hardware Git-Commit-ID: a1396555abff9ff9b74c2e4da13e27e81fd094b2 X-Mailer: tip-git-log-daemon Robot-ID: <tip-bot.git.kernel.org> Robot-Unsubscribe: Contact <mailto:hpa@kernel.org> to get blacklisted from these emails MIME-Version: 1.0 Content-Disposition: inline Precedence: bulk X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com X-Bad-Reply: References and In-Reply-To but no 'Re:' in Subject. X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160603_115347_979657_243E88D5 X-CRM114-Status: GOOD ( 12.00 ) X-Spam-Score: -1.1 (-) X-Spam-Report: SpamAssassin version 3.4.0 on casper.infradead.org summary: Content analysis details: (-1.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.8 RDNS_NONE Delivered to internal network by a host with no rDNS X-Mailman-Approved-At: Fri, 03 Jun 2016 04:58:32 -0700 X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.20 List-Id: Linux on Synopsys ARC Processors <linux-snps-arc.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-snps-arc>, <mailto:linux-snps-arc-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-snps-arc/> List-Post: <mailto:linux-snps-arc@lists.infradead.org> List-Help: <mailto:linux-snps-arc-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-snps-arc>, <mailto:linux-snps-arc-request@lists.infradead.org?subject=subscribe> Reply-To: acme@redhat.com, Vineet.Gupta1@synopsys.com, vgupta@synopsys.com, peterz@infradead.org, linux-snps-arc@lists.infradead.org, eranian@google.com, tglx@linutronix.de, vincent.weaver@maine.edu, jolsa@redhat.com, alexander.shishkin@linux.intel.com, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, hpa@zytor.com, mingo@kernel.org Cc: jolsa@redhat.com, vincent.weaver@maine.edu, peterz@infradead.org, vgupta@synopsys.com, Vineet.Gupta1@synopsys.com, linux-kernel@vger.kernel.org, eranian@google.com, acme@redhat.com, alexander.shishkin@linux.intel.com, hpa@zytor.com, tglx@linutronix.de, linux-snps-arc@lists.infradead.org, torvalds@linux-foundation.org, mingo@kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-snps-arc" <linux-snps-arc-bounces@lists.infradead.org> Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
diff --git a/kernel/events/core.c b/kernel/events/core.c index f94f164..5d48306 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -9309,7 +9309,7 @@ SYSCALL_DEFINE5(perf_event_open, if (is_sampling_event(event)) { if (event->pmu->capabilities & PERF_PMU_CAP_NO_INTERRUPT) { - err = -ENOTSUPP; + err = -EOPNOTSUPP; goto err_alloc; } }