Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1227870lql; Tue, 12 Mar 2024 10:42:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVpL2SOoiRortOMh7wnTuIHvMsKSOZlwVmg4x14G44x3LE1Z1RlnIHJOu+rO2HtDtDDvcuu0IY2Lm42JpgebGPhgSI6H8l2PCeWcHyHow== X-Google-Smtp-Source: AGHT+IHab+CDV5xC7ZTRdBxfg0R2YW8jqhPgpXqvElbymPI0urpcqPwh3IR+sQn4gppKYgCaxt7G X-Received: by 2002:a05:6870:d88a:b0:21f:cd9a:35ad with SMTP id oe10-20020a056870d88a00b0021fcd9a35admr11442333oac.41.1710265364002; Tue, 12 Mar 2024 10:42:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710265363; cv=pass; d=google.com; s=arc-20160816; b=teINvGDbFHIjSzkKzcrrPa64I4jQAi0iMBDGnfmjpE4n0lTQKrSC32mWULrPUJajEV FbPYQMBAYjYm9iu2JKhj//BfC3/PmTgshl3uUyl8Kh056CEV9S4TSjz7Rz8Uy6MUV3bC JxtkFNumq3h6PN5PiWo10SpurRAXBnK4yiXTEUolXre/DtKCyGSTpe0j35PVwuNDN2s1 qmmNwkYMS9rDzDOM0Tlz6Z+lBVUD60MM8g1h+ZH0uwic01RI+NVzzJO2P3iCK0c0yOM8 GUi0IOMsqqgv3SPJA6QwnsrDJKulCSQ7j0IK97NmtAGh7jyWYB4C+djA2pQ2vk8fKLU3 dJCg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=3lhReJWPOvFqijW3Fe2VIMFSnUqn+6INk4STOBQ04xA=; fh=3SlCtb7gAd2C6Wzcs3sLv5dQhSDlRzf/+NQZwZZwN+Y=; b=s7gCWQb4M1irEoguxTFxBP63Xw7Z3MeLnvyqWWYSaeDsdqpl9RIL3K2MmryPzjSUwT tZWLQhVr6GXc+TvBsSpXvcwBZYpn6PQL/FUFSsOhyXjp5naHanab7wCGqkIU6lMI9ws1 aGN5RWfqbDk2BtNtAKTO1oJW78xFfbwfuQy/u7K6UBVftRhQO7lSNbJRQTlQmgqzGP54 vjBO/muaHdpD9DKe1PzRE6mxzkXtea/+yziI2hbSffR+OFNK/bVLbHOz0LXW+7/TUQvc sy8P4jAvJKGNXkzcIbRCuHySEWwNtbky+PNaHTV3qkPs1FU7TtYDuWs511+/E63bwVEn NjxA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-100609-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100609-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b137-20020a63348f000000b005d64d951c89si7568122pga.143.2024.03.12.10.42.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 10:42:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100609-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-100609-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100609-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 256DEB24422 for ; Tue, 12 Mar 2024 17:36:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 21FE713B286; Tue, 12 Mar 2024 17:34:44 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3495F13AA38; Tue, 12 Mar 2024 17:34:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710264883; cv=none; b=lYCyDe8iZBX4TLjJsjX7jETfujluIdpW0qtakZ75nUNLs3ebDbedqCM5UZmAsn0UVr9ZPddSfGrUs+Oz9PdDEGOI6YZoUBq/js4vhaL6b4jYpo3OWNhZOurMyv5f6I58hOs3CV9RZK1ZqqktdZ6opqgkUdHz4PD1ZpyHfuOPhM4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710264883; c=relaxed/simple; bh=d9eYuC/0QjnZWpRuO8xv/IzmP7HaTLBEEZ80UNZvfK0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=p7U/gsFAvEN9jMnTT1ZS9timStV0VGVqPSQ9QCxThpGoewcg3uLLisMWD41o8nlYJch5P19P+49ZjrYZ3fc7owzseWMaLE2NEMPmptdIIlMp5HS1LHxc454mGZEeiuy+MzelVFQVDF+fglUjLjE1jvlrg8AKAW1rY/dN2vj3AAg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com 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 EEE1815BF; Tue, 12 Mar 2024 10:35:18 -0700 (PDT) Received: from e121345-lin.cambridge.arm.com (e121345-lin.cambridge.arm.com [10.1.196.40]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B3A223F762; Tue, 12 Mar 2024 10:34:39 -0700 (PDT) From: Robin Murphy To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Will Deacon Cc: Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, x86@kernel.org, linux-perf-users@vger.kernel.org, jialong.yang@shingroup.cn Subject: [PATCH 07/10] perf: Define common uncore capabilities Date: Tue, 12 Mar 2024 17:34:09 +0000 Message-Id: <8496411b6ae9306b70cb90edafa4134b113a3cfe.1710257512.git.robin.murphy@arm.com> X-Mailer: git-send-email 2.39.2.101.g768bb238c484.dirty In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Nearly all uncore/system PMUs share a common set of capbilities, so let's wrap those up in a single macro for ease of use. Signed-off-by: Robin Murphy --- include/linux/perf_event.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index b1fd832ed8bf..5d5db122005b 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h @@ -293,6 +293,9 @@ struct perf_event_pmu_context; #define PERF_PMU_CAP_EXTENDED_HW_TYPE 0x0100 #define PERF_PMU_CAP_NO_COMMON_EVENTS 0x0200 +#define PERF_PMU_UNCORE_CAPS \ +(PERF_PMU_CAP_NO_SAMPLING| PERF_PMU_CAP_NO_EXCLUDE | PERF_PMU_CAP_NO_COMMON_EVENTS) + struct perf_output_handle; #define PMU_NULL_DEV ((void *)(~0UL)) -- 2.39.2.101.g768bb238c484.dirty