From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0CF02ECAAD5 for ; Mon, 5 Sep 2022 05:43:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235392AbiIEFnE (ORCPT ); Mon, 5 Sep 2022 01:43:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231744AbiIEFnB (ORCPT ); Mon, 5 Sep 2022 01:43:01 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 755B22F02F; Sun, 4 Sep 2022 22:43:00 -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 415D9D6E; Sun, 4 Sep 2022 22:43:06 -0700 (PDT) Received: from a077893.blr.arm.com (unknown [10.162.40.17]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E89463F73D; Sun, 4 Sep 2022 22:43:23 -0700 (PDT) From: Anshuman Khandual To: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, peterz@infradead.org Cc: Anshuman Khandual , James Clark , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-arm-kernel@lists.infradead.org, x86@kernel.org Subject: [PATCH V2 0/4] perf/core: Assert PERF_EVENT_FLAG_ARCH is followed Date: Mon, 5 Sep 2022 11:12:35 +0530 Message-Id: <20220905054239.324029-1-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series ensures that PERF_EVENT_FLAG_ARCH mask is followed correctly while defining all the platform specific hardware event flags. But first this expands PERF_EVENT_FLAG_ARCH with another four bits, to accommodate some x86 platform event flags which were going beyond the existing mask. This series applies on v6.0-rc4. Changes in V2: - Added first patch to expand PERF_EVENT_FLAG_ARCH - Converted all BUILD_BUG_ON() into static_assert() Changes in V1: https://lore.kernel.org/all/20220829065507.177781-1-anshuman.khandual@arm.com/ Cc: James Clark Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Mark Rutland Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-arm-kernel@lists.infradead.org Cc: linux-perf-users@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: x86@kernel.org Anshuman Khandual (4): perf/core: Expand PERF_EVENT_FLAG_ARCH perf/core: Assert PERF_EVENT_FLAG_ARCH does not overlap with generic flags arm64/perf: Assert all platform event flags are within PERF_EVENT_FLAG_ARCH x86/perf: Assert all platform event flags are within PERF_EVENT_FLAG_ARCH arch/x86/events/perf_event.h | 20 ++++++++++++++++++++ drivers/perf/arm_spe_pmu.c | 4 +++- include/linux/perf/arm_pmu.h | 9 +++++---- include/linux/perf_event.h | 4 +++- 4 files changed, 31 insertions(+), 6 deletions(-) -- 2.25.1