Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3143899rwo; Mon, 24 Jul 2023 06:59:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlEJRNYyCza5E7zInr29suJAo2JUeKVV1XgMCzbXOtRxPBH5YLaEsUJOB5I0Q6mcmm2SQyy8 X-Received: by 2002:a05:6402:148a:b0:522:3aae:c69b with SMTP id e10-20020a056402148a00b005223aaec69bmr1181389edv.20.1690207165039; Mon, 24 Jul 2023 06:59:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690207165; cv=none; d=google.com; s=arc-20160816; b=KzfGHAkzF/BZl/+x2rWc47Q9fBUafj57aqOtKZqUHWolhkwJ9GTUKBWHyETY/5rYQV kse62o/7P3kpe9jtGv1mgbU3LQODYQvWzFrFsOeRYclVvvm5iGw3Ub2LokYmO6nxRIMY 3Pq/VCo7CR5Cw+8sbyGkhAvkRvGBLtk8T+92f7jh2bQtWvoWJ4Q15m3oNmBtgFAi4Bwf mScl68NhjX8/1pmr2egKWa+cMMTyCmhCfS1wC4d22Y4js6zqg1SiyWixkCGWfGui6u65 Lx5rM1dQnFf4VtB8CMWobmEMDNlMQcA/3l0XsDhEW2mS6orOO1xso2eriVVi1rBR4b9D yrcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=jnfCDfTM96H4/uMGJgZhOpuMcWq+H1zzQ2IM2d5hr3I=; fh=whuqqPDMCuf3pVIxi4ys9+C5pEOkF8a7QCuVDNap2s8=; b=koG6b2es/299w2/4bxv7N4AMcU63hu3LQLEX3OgCJ5oV6f/7t43hQbOJ+cFPtJ+l4p I/BqeojemKTcSOEdTmlKw2eNHYQNV3mB4Nd6zchbVlWOR1h6eIPHsL5NRWapvWi52hFM YvY3nA9YAsLrD95cREXAnVWzP3njk0jcVfIUj1ZplgwCDuJH8/KtKRnmhSujzz3zm2U0 BbqxTV2I2hFp1kYTZEkzqjwSzvA/EQuotyl2wTt8ktwhazjTIHkfMnf5XHfDpyYYsZ7F kW/cHgY80P7m96vQDF8iK9a+1ynNu8/PDzf4p72/E6Lvk581x/C6pLaHLlbkcjdqFZEl jUUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i17-20020a056402055100b0051dd2d2cfb8si4287688edx.644.2023.07.24.06.59.00; Mon, 24 Jul 2023 06:59:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231341AbjGXNs7 (ORCPT + 99 others); Mon, 24 Jul 2023 09:48:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231211AbjGXNsR (ORCPT ); Mon, 24 Jul 2023 09:48:17 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 50C2E3C17; Mon, 24 Jul 2023 06:45:57 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C35A115DB; Mon, 24 Jul 2023 06:46:08 -0700 (PDT) Received: from e127643.broadband (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id DC5A93F67D; Mon, 24 Jul 2023 06:45:22 -0700 (PDT) From: James Clark To: linux-perf-users@vger.kernel.org, irogers@google.com, anshuman.khandual@arm.com, will@kernel.org Cc: James Clark , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Thomas Gleixner , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Kan Liang , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 4/4] perf: Remove unused PERF_PMU_CAP_HETEROGENEOUS_CPUS capability Date: Mon, 24 Jul 2023 14:44:59 +0100 Message-Id: <20230724134500.970496-5-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230724134500.970496-1-james.clark@arm.com> References: <20230724134500.970496-1-james.clark@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,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: X-Mailing-List: linux-kernel@vger.kernel.org Since commit bd2756811766 ("perf: Rewrite core context handling") the relationship between perf_event_context and PMUs has changed so that the error scenario that PERF_PMU_CAP_HETEROGENEOUS_CPUS originally silenced no longer exists. Remove the capability to avoid confusion that it actually influences any perf core behavior and shift down the following capability bits to fill in the unused space. This change should be a no-op. Acked-by: Ian Rogers Signed-off-by: James Clark --- include/linux/perf_event.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 2166a69e3bf2..c617badd1e76 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h @@ -288,10 +288,9 @@ struct perf_event_pmu_context; #define PERF_PMU_CAP_EXTENDED_REGS 0x0008 #define PERF_PMU_CAP_EXCLUSIVE 0x0010 #define PERF_PMU_CAP_ITRACE 0x0020 -#define PERF_PMU_CAP_HETEROGENEOUS_CPUS 0x0040 -#define PERF_PMU_CAP_NO_EXCLUDE 0x0080 -#define PERF_PMU_CAP_AUX_OUTPUT 0x0100 -#define PERF_PMU_CAP_EXTENDED_HW_TYPE 0x0200 +#define PERF_PMU_CAP_NO_EXCLUDE 0x0040 +#define PERF_PMU_CAP_AUX_OUTPUT 0x0080 +#define PERF_PMU_CAP_EXTENDED_HW_TYPE 0x0100 struct perf_output_handle; -- 2.34.1