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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4AECEC54791 for ; Wed, 13 Mar 2024 11:23:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hjmUj8YYkUqJHa4vdhrv9R8yrmir1Q47aKjxYuLhJJ4=; b=qXhpeUTShfGROl 3WhWO8DnOhEGn4R5bqtyUyIhZRTDV5rNXLcCPubSGIrH0zGxQ10PJhQn9jgb4QxTEsa1wxvGvyQ+c 7UME3t5kFIJMZYFKvVGakTMssVYwWpLm5KKjUhR3hD5vkJvceaMTJsl2f55tJPfDfNfs4CnDfSwyV p4hWDm9ytkUOvH3VcJ+KGYtOgx+1ZirucWMsMJSlSY/5+AI2Zqxi6Rhl2zw+GiPa8SQ93PHr5K+tV B17IZdNluxrXLbj44Zny+Xukr0A/KPd5ZUc/fStj5SAKfYs2uzhFL/fzou277DAh0XFOl4ut+LPFl AY7PIjvJlrjcygitpvrg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkMhc-00000009uBS-399F; Wed, 13 Mar 2024 11:23:20 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkMhZ-00000009uAZ-3zBl for linux-arm-kernel@lists.infradead.org; Wed, 13 Mar 2024 11:23:19 +0000 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240313_042318_308828_07215738 X-CRM114-Status: GOOD ( 14.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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)) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel