Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1642839lql; Wed, 13 Mar 2024 04:23:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUtmB/83zzZzfXO9KSRbK7Dus6nArfL49rxupqqaICQij3oKq+BjYLTgx7/7jzIY0LlnHf1E8BmABg7O00zkCB41y/GgitYd57i5/aK5w== X-Google-Smtp-Source: AGHT+IFoWU+yc8xjmbTKwZp7Mv684XxGdHavvTKwApv71KDLhIxAs0dx/33SZ1MJITh0g5UMI5+K X-Received: by 2002:a50:a694:0:b0:568:32f7:6c53 with SMTP id e20-20020a50a694000000b0056832f76c53mr5108258edc.3.1710329006421; Wed, 13 Mar 2024 04:23:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710329006; cv=pass; d=google.com; s=arc-20160816; b=y9ynyNGnN9EoFPxvxpdq/xjTob289yJvIGt8Ic1YhV+idAcH/O8SkMyvIOoAx1ZLrh WbAY0JfaL0Z3NEj/5F6KXoLNd7nE0GNUYJrk237nWGOmZi6i+N9XumOjJuf0HTnG+3L5 1zQGz3Zzzw+7dMbUQxNXYrFOtIlj1Tav/R+5pe+3k2QDASEF4BwBx50vmzS1d78jitUe TZreGLlhq1zKXEhDfj0Ij4h88X0s3rm2nFFsp4TvjTTZwlPL7ayyaR/s+UvRVc33mCJ9 jBLYjUhoF8KXK8iIKx1E/q47JwFq9g5s/xQ5KZ4t+Se55PHy5fodjL8filgTFz1uJ9Ek d71w== 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=WS/kf4x2sL+D0mIATF77iGrSONbkt+x7nrBV+I2v930=; fh=DTatXDGMKcgRkwRApyg5UhbusKti4JW7s3Q/7ynVJUk=; b=rSYR+nBYxes2o6Vsnz9UVlPUBqXXe/S3lAI+EmTzcst1DjuYJiL+dB6KPZu9xOL3bB 4EtTZlViycDr9aCAmLehIepJoY2vPFzaVvRmXjorTp/VIa8hecv+KfRANmmGf9JSCcy5 m/PWYUcI939CVs8AfRNVSjUN36A3RUiYMEUXT7XAqg+sR0cRC3+I/ZLDZPic7vs3tIYn 6LpZVzJucyaWagaoW94PBuTHLbfKLQisftzIOZepPV87HSQybkelkXfGyZnZqK+yj8Gc OxXK+waowMwrpxVNL2R9bcDj/YRE/CEg9iQWZYmeXsFqtoWrYzVJI7xKeMPxPEZyaCZt hwYQ==; 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-101432-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101432-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id eb13-20020a0564020d0d00b0056727725610si4568916edb.319.2024.03.13.04.23.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 04:23:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101432-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; 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-101432-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101432-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 222E21F22792 for ; Wed, 13 Mar 2024 11:23:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9279C3F8D4; Wed, 13 Mar 2024 11:23:16 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 92FAB3F9C3; Wed, 13 Mar 2024 11:23:14 +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=1710328996; cv=none; b=mCiu9fi3kTeYW81+RgpsSVufcH6ryy2nOT7WRZOJ4z6LzGBknWfBbIR0DSt1yx8v+m4cWLepQ6RdIMTeNbMT+Aa0GbCOyLT8OF7kDk+Ple+dRveNvf6XDTSUESFEpzs5uoqK6QDomkB3CnF7rGOPc1UUBth3wkTKgi39ORLDxD4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710328996; c=relaxed/simple; bh=1Ev87VJ8nP2uhWp4ncTlPvCTV/CBHhnDETcFmqJdwlg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=L4kOgCQk+r+IB25nTxktskt0nZ80HyW7F7/nSNqZWKFqvYQNh+wX/2KdJEShSZ7hWkdcR4oCH5M/MnMcjX956aYjf+uonsSjLgaP39IpVvpLBwMQw5NvBBWYJ6+gp3BdwKEKa2BOBL/TBIpNF+7RVGDIYuiAJXu+ruG5uj6aiP0= 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 A8E211007; Wed, 13 Mar 2024 04:23:50 -0700 (PDT) Received: from [192.168.1.100] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8DB763F73F; Wed, 13 Mar 2024 04:23:10 -0700 (PDT) Message-ID: <993147ab-26b5-e497-d50f-0f500c8c81b8@arm.com> Date: Wed, 13 Mar 2024 11:23:09 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH 07/10] perf: Define common uncore capabilities Content-Language: en-US To: Robin Murphy 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> From: James Clark In-Reply-To: <8496411b6ae9306b70cb90edafa4134b113a3cfe.1710257512.git.robin.murphy@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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. > struct perf_output_handle; > > #define PMU_NULL_DEV ((void *)(~0UL))