Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1676885lql; Wed, 13 Mar 2024 05:24:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUYrbehGBH19AilVJSVZ7x/j+/TL7JvmXhwi426s9pNU86L1XBOItVxv/LndwgghWCHmK3okkAwNpBtXp7kN1XGGPIW26s1FFb6zSDaSg== X-Google-Smtp-Source: AGHT+IHOlH0JbFbJacEswihvQdMxcDWyo4a6teOoljgnunURfbz4p+yCzSFff917hcqPx5IbdKcW X-Received: by 2002:a17:902:ec8f:b0:1dd:a314:7351 with SMTP id x15-20020a170902ec8f00b001dda3147351mr10793807plg.57.1710332686751; Wed, 13 Mar 2024 05:24:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710332686; cv=pass; d=google.com; s=arc-20160816; b=NsIisy45Eq/pnSbWXt0aIoU883Sg0InHLVgr6alO5+KdhDzFQCcD1sTDj5msDz2BMb JrADIQfACdNdS4GkL2N6oX8FfZcutEHEXDNytApFPTAn0pCg12ndohCBj5ITEsmpQk1P PCy+GNqxV7wIe/ELWrnLz+lH5KSZjy/yGief02cUxqsFXFFFk3CFWIuU07HKKXqxgz3a XN5XJvyXKWRMUvabJpHw22hmfx0r5R3gViH6CitFc2jBI0tbmaCQql6od648WDnDkYOu D5QLnmXn35GuqxSqFN+HgiP6vJ8iVscm95AZHJB/CHRhZ6vzPM+Zv0Lj54s6JIy2vZmz TavQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=Hly9NUUyOcIGtKpuDSqyiCdV4vuoucFCx4ONrFHsw84=; fh=NTDzjD+EzFmiZBhxJx9+Jy2zXbdT1ofvK0bv6E0jUbc=; b=nJvvyGSXyo4sOSUkH6/bnq3+zVT5z+sJG9RRwldNqkTrZQgWslbSz2Mv0BR+f5Mlrz 8pIGXBfvJYz5rxFkb2zl7h/hGEwSNDDbBqd7XFr0l+4umJJr8cCELxWI/kmtv2jOQcNN 8IwoOcuaVrlWKOxECJo1ZeP/R7+N7jBGM4G7GPuNqQKNMXzGPcRkxBZxe+N/dw8tIGmN J27WEdEU35mi7/Og31IapoOn2AWG5TvtRc1Cv1y6yEniLqcdN8cuboEqH6L23cgOD0N8 /2LUh6ZKw1D5NJEhoxRY1+9Q1KdO/RRg3+IuqtLAe8PFlfAQ7dFvco2nR15n3uKprwXo /ZKA==; 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-101470-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101470-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id lk7-20020a17090308c700b001ddb7328cb0si1098508plb.29.2024.03.13.05.24.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 05:24:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101470-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; 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-101470-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101470-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6D0102848CB for ; Wed, 13 Mar 2024 12:24:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A01554085A; Wed, 13 Mar 2024 12:24:39 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 71ABB405C7; Wed, 13 Mar 2024 12:24:37 +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=1710332679; cv=none; b=eR/E+x4qgI1NkSfzy+GeWl456NgVCD+lqtOlEEanhLE3j8jSp62EIkl2boKW1gSSyTHrGdMO0u/Niu1qSPFFFdN/1FHzhIvcKNWOO/HL+3kYsDuqmQFmWRigovb44fzSfob7ZlDTloikDG0e52EOfGEi6c1TWnDCkdzTzBhHkYE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710332679; c=relaxed/simple; bh=ahmmwEV6FEghfLNhPpQz+s7UIijKpo3SPoJSq7yskug=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=U4yGHWPRTCNkzPdTUDPKwyNfXSrUGUlC+MJJijOrqgT/ZvWmvaJSVSQ/jhoF/di34NG6F+C1EeeAPDFmxhoaUqQ4ELmrhFiRVWlEpqCgECuSf4t6p0qNosdej/2V+l0KAuWHpMufuyJoM56gAXX+tAoPJsyRrYj3k2VcW58rb/A= 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 6F8151007; Wed, 13 Mar 2024 05:25:13 -0700 (PDT) Received: from [10.57.52.245] (unknown [10.57.52.245]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BA2D03F762; Wed, 13 Mar 2024 05:24:33 -0700 (PDT) Message-ID: Date: Wed, 13 Mar 2024 12:24:31 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 07/10] perf: Define common uncore capabilities Content-Language: en-GB To: James Clark 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, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Will Deacon References: <8496411b6ae9306b70cb90edafa4134b113a3cfe.1710257512.git.robin.murphy@arm.com> <993147ab-26b5-e497-d50f-0f500c8c81b8@arm.com> From: Robin Murphy In-Reply-To: <993147ab-26b5-e497-d50f-0f500c8c81b8@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2024-03-13 11:23 am, James Clark wrote: > > > On 12/03/2024 17:34, Robin Murphy wrote: >> 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) >> + > > The most minor of nits: missing space before |. There is another one in > another commit that triggers checkpatch but that line gets deleted anyway. Bleh, thanks for the catch. And it seems that wasn't the only thing I inexplicably managed to mess up in the rename patch either... All fixed locally now. Cheers, Robin. > >> struct perf_output_handle; >> >> #define PMU_NULL_DEV ((void *)(~0UL))