Message ID | 170133376457.398.10426693252022090421.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp239748vqy; Thu, 30 Nov 2023 00:42:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IFDXt5M+WkIZn33STdr3UHA5Py8FPpRGHnSLhX3F3HWW8x9I1xrl6EUqdDldMAykBE9L3Ci X-Received: by 2002:a17:902:d50e:b0:1cf:cd35:f823 with SMTP id b14-20020a170902d50e00b001cfcd35f823mr13243324plg.65.1701333776227; Thu, 30 Nov 2023 00:42:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701333776; cv=none; d=google.com; s=arc-20160816; b=aRYtwm7xR11JPymj8CF1m649psx+regh4wYFlVoCGNIXhfybxrcRj7xqEfoJoWhZOx OKL/UUg0oY9+QQ+LDoIavK8Ixw81kuweKkusZyRwL/tbT/cJi5SgiUYPq5TldNjqYltS ECcAcmZWUoD/04j14OEEgV/mtuTjW3Ru1VVNBLgZAcLmpslVtI5g623e7mk2n9aWeV03 T8jERtQLdbVLlaoNWstlKdCBBt5GjLjhNBK2tOGej/NMsidgsDBuDbJad2yvPKFSCIh/ CFvgxd4qz7PHRrM2VwVj2dAWslhJUeOcCN7TJm5fLMVFL6jKbCzoIyhXI042ArG1X5dY 4h1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=gcptB3mvhSIKokDXZRJrI1xRd2c85LJPwOEmETgObR0=; fh=v/i6+9fUS4hkla/iIvDgHDkFgK5uuJOIU7jd96HwBTg=; b=gcoSZATqutnuWfr7YG5tPLo3gKSeYvMMnYFIPeT+GDFXsU1rsy+YsVHUx8+xFJE1mS +Q5IHUZgFdzjaqrfRDJKoFkwp4KeiQdpJbqZnXP7ycgddsEWiQvXPRJVKKALhTdR1Svx P7NuC3HZmjQY08seyzMzroq7eQU08eO3cqSpo1RvcVdQZo6EoYifkK7pElNKwOqhtX6e 5qnLQr8NxveNfF1OclF5k8BiPCz0MGKfGZj/1Z9xzOrVJIM4sm6GnVDyle5YGXxXZMnn X0qrn5ZgTb5uLchr5KR492jvKhhljPMp9ze72nMTTkLIByDW0Dq/lGfHcMMwM+updyTQ 35MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=VB5YGGYX; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=tx5kc+z9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id y1-20020a17090322c100b001cf6a664aa8si758597plg.571.2023.11.30.00.42.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 00:42:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=VB5YGGYX; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=tx5kc+z9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 1E253802DAAF; Thu, 30 Nov 2023 00:42:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344954AbjK3Imo (ORCPT <rfc822;ruipengqi7@gmail.com> + 99 others); Thu, 30 Nov 2023 03:42:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231826AbjK3Iml (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 30 Nov 2023 03:42:41 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFF9610C2; Thu, 30 Nov 2023 00:42:47 -0800 (PST) Date: Thu, 30 Nov 2023 08:42:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1701333765; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gcptB3mvhSIKokDXZRJrI1xRd2c85LJPwOEmETgObR0=; b=VB5YGGYXw58jLYn8NfK6UocG9lVuvAfHNxadzN1Frtx5DXdgPYQ+ufjtt9bitOi+lAixxH nYUwwc6UKzpOWawyaJRSvRC27ezYZB4LzAFqED/WcB1W/2edkLrT8KFaiSxZTxlY4Bu32U NW1KBZ3ub8iE44LyxUwbXdYAXJP+g8OFwn4+OwdYTy1jNote8BU7Y4KT8RF6V/IJCIV8Rn 8ECzIu6evfLMacEV7qYgT7v0sqWph7UzIm9iTH3XVuXxht82J0YCvyQSnRJaC0o6FIf1Ty yPmwAo3rZClSwBitUwUCQEfwfXJ7f6RPC5FoHt63tXKTGoOIo8j+acGcy/2ggw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1701333765; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gcptB3mvhSIKokDXZRJrI1xRd2c85LJPwOEmETgObR0=; b=tx5kc+z9FF1xI1oKAljhc3gOHKWijljGrLmAa7PQFG3vmSRJoIUU3txYEM8Td1Mz72/cSp hl81GXFqx/ZAlMBA== From: "tip-bot2 for Namhyung Kim" <tip-bot2@linutronix.de> Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] perf/x86/amd: Reject branch stack for IBS events Cc: Namhyung Kim <namhyung@kernel.org>, Ravi Bangoria <ravi.bangoria@amd.com>, Ingo Molnar <mingo@kernel.org>, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20231130062246.290-1-ravi.bangoria@amd.com> References: <20231130062246.290-1-ravi.bangoria@amd.com> MIME-Version: 1.0 Message-ID: <170133376457.398.10426693252022090421.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 30 Nov 2023 00:42:55 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783969012520906427 X-GMAIL-MSGID: 1783977765765064459 |
Series |
[tip:,perf/core] perf/x86/amd: Reject branch stack for IBS events
|
|
Commit Message
tip-bot2 for Thomas Gleixner
Nov. 30, 2023, 8:42 a.m. UTC
The following commit has been merged into the perf/core branch of tip: Commit-ID: 0f9e0d7928d8e88d57b1482effab70edb9741ce1 Gitweb: https://git.kernel.org/tip/0f9e0d7928d8e88d57b1482effab70edb9741ce1 Author: Namhyung Kim <namhyung@kernel.org> AuthorDate: Thu, 30 Nov 2023 11:52:46 +05:30 Committer: Ingo Molnar <mingo@kernel.org> CommitterDate: Thu, 30 Nov 2023 09:34:40 +01:00 perf/x86/amd: Reject branch stack for IBS events The AMD IBS PMU doesn't handle branch stacks, so it should not accept events with brstack. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Ravi Bangoria <ravi.bangoria@amd.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20231130062246.290-1-ravi.bangoria@amd.com --- arch/x86/events/amd/ibs.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/arch/x86/events/amd/ibs.c b/arch/x86/events/amd/ibs.c index 6911c53..e91970b 100644 --- a/arch/x86/events/amd/ibs.c +++ b/arch/x86/events/amd/ibs.c @@ -287,6 +287,9 @@ static int perf_ibs_init(struct perf_event *event) if (config & ~perf_ibs->config_mask) return -EINVAL; + if (has_branch_stack(event)) + return -EOPNOTSUPP; + ret = validate_group(event); if (ret) return ret;