Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1405924rdg; Fri, 11 Aug 2023 23:17:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG1icuyS1NiHV4P1GX5EFrMcHeeeZI9r0bNUOfX5Wf/UFdg3vS+UFmGPrTsGTbGzKr4t2aA X-Received: by 2002:a05:6a21:788d:b0:10f:be0:4dce with SMTP id bf13-20020a056a21788d00b0010f0be04dcemr5620237pzc.8.1691821037478; Fri, 11 Aug 2023 23:17:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1691821037; cv=pass; d=google.com; s=arc-20160816; b=hJAKgkIXsU2uOxFASZ92yYwqeGSsJ9f2hO5Azdrf4Ke2DCYAew2ps+kNpCTTRxhhxh EixVjC/GqNx/2xyZvqvjOVfKA2bHbEQevp3TOGSQTYbvJU48+wy4/3tVnmBGD4XVIJNV Mv0DtTWFGYqcu+TFkA0rjjCvT/yF0FSSVhgII/WHo/7aojeh7KtwK/Ey15F3x1sDry4L r6Ndi3DCw4pItmJXyD0I1osPXr6cRKyg9ZNz3nLkYZuMxcaNyevNkcXF8ybHRrfehpUL 5Lhyc8GImr2WMdb4O9I+kTCfo4y8vjL04mpet1pPjWgW79azlEbcz5XivCBRtDSEYDVM MYzg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=5zxdpddPDYnYCTYxqPDtMVLBNQl4Er9cd8cpkeWaVlg=; fh=4kWcsaWwxppN+oLCbzRh/bWfY5zy8sWIdvc8FptVvPQ=; b=JeMsnFk1ETG9iHx3btJk3XE7HnKQZv8iFWIItYEXpy/cavhov+4HwhBtsFSZQmh8Xe 7GdqakuS+ebzKBollol8JYL12ut1t69qdFn2Sha0CRiafX9fuwnuMCjvTfz2KjvZVumR U5ytHXQxPv8Fl5t4NytedcQcsoQNiNrfRZ4594AAOHJjmSiUNfSm4XgvTzNagYgLd4R9 qxksH4P1ExZ4w/qWSrX7p6APN8ttERpvcjxvaneqGlG93qE4SHD976cxxSMesF5Mcg/U hyAJHY4Cj2VcX2wgN+l0oBxLqo7OVJMXEgbOguHV5LlZqZX04a886SJ22bsITYcKJ22a JSPQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector1-marvell-onmicrosoft-com header.b="Yt/WCu1e"; arc=pass (i=1 spf=pass spfdomain=marvell.com dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fi41-20020a056a0039a900b00687501ac7dasi4523998pfb.363.2023.08.11.23.17.06; Fri, 11 Aug 2023 23:17:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector1-marvell-onmicrosoft-com header.b="Yt/WCu1e"; arc=pass (i=1 spf=pass spfdomain=marvell.com dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235796AbjHLDnT (ORCPT + 99 others); Fri, 11 Aug 2023 23:43:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbjHLDnS (ORCPT ); Fri, 11 Aug 2023 23:43:18 -0400 Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B939BE53 for ; Fri, 11 Aug 2023 20:43:17 -0700 (PDT) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37BLb6rW007988; Fri, 11 Aug 2023 20:43:10 -0700 Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2048.outbound.protection.outlook.com [104.47.66.48]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3sdw2egwt3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 11 Aug 2023 20:43:09 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Lp1zY6tnbiNejObJB5psvnD7fnruNwVdT2CvddR6RI4XaoSDb6tHjP3dXKfrAgdTSu2dMVt+t7KaDckw00r3DazIMbEDpByaduybYSgYN1CF9RBX3B6fE2dAf0r/0R2MEZGN65F1gAa5LD3a3mRUS6qNHJ9Kem2L7lJQmuFJcrUHy7OUg0P3pOMn8qJ0TtsZgx6LCUwRqwQMQx+qKi/2BjeVMT6X4MKB2CPg2mJH1UiCDM4lSRB/pB3YNxt15C5yMHAmKwrngpKm8j33oYukh3rDfYRD8qViURD/TpDe1EWWR/FJgmGDDGJbB0ATVAe20bAeenwgoZiiafiJa4XQkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5zxdpddPDYnYCTYxqPDtMVLBNQl4Er9cd8cpkeWaVlg=; b=H0rdP4Yh9uNF/WvIkOEFsLtJ3w8otS0voaJv/WW53XEhHaz6lO8lAto1SYReOXNLE4VU9QV96sYy3nBCkxQ1pK+RWIkWfg/8+lX95TT4miT9Hm9kKdgVXBkK6edW727wtJXDgjBopIG2olsRn7HCgdk+AP2GKgwxF0SstyoayYYGChLimMRLr2pOjaYNUhaV6/3OLTiXSeUY0qUV3aIPn7mw+0sZKZiKOGm47SQnAwvVaQdaBtcFKCHHqPilljc9sXuPNEF8+j8yRwUAT0RFghVGCFXuHE1MdOixdJPp8GsbvgFmynla7dz4f7oro5apeNBzJqia/VtlnQ7GRiN44Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5zxdpddPDYnYCTYxqPDtMVLBNQl4Er9cd8cpkeWaVlg=; b=Yt/WCu1ePxU0dQIr3sukpu63NgOKcuX9FCjQMeRfX+Ewj8So9jNDl/0oRMzHCKpbETlcJBh9oWd7/cct3Zy8fpvnZTXv4Abw9ioA+DEIFZFxXSvem7uwY3G71YkXoXRe719GvIQm4hSuVsFUfAWyNlF4G1PJ/OLaLBmJnQKvAFg= Received: from SN1PR18MB2126.namprd18.prod.outlook.com (2603:10b6:802:29::29) by SA0PR18MB3616.namprd18.prod.outlook.com (2603:10b6:806:72::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.31; Sat, 12 Aug 2023 03:43:07 +0000 Received: from SN1PR18MB2126.namprd18.prod.outlook.com ([fe80::cb4d:3836:d818:9bae]) by SN1PR18MB2126.namprd18.prod.outlook.com ([fe80::cb4d:3836:d818:9bae%4]) with mapi id 15.20.6652.029; Sat, 12 Aug 2023 03:43:07 +0000 From: Gowthami Thiagarajan To: Mark Rutland CC: "will@kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Sunil Kovvuri Goutham , Bharat Bhushan , George Cherian , Linu Cherian Subject: RE: [EXT] Re: [PATCH 1/6] perf/marvell: Marvell PEM performance monitor support Thread-Topic: [EXT] Re: [PATCH 1/6] perf/marvell: Marvell PEM performance monitor support Thread-Index: AQHZq0r5gOjLcxepVkO38KSbGmvNAq/Pck4AgBbTomA= Date: Sat, 12 Aug 2023 03:43:07 +0000 Message-ID: References: <20230630120351.1143773-1-gthiagarajan@marvell.com> <20230630120351.1143773-2-gthiagarajan@marvell.com> In-Reply-To: Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-ref: =?us-ascii?Q?PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNcZ3RoaWFnYXJh?= =?us-ascii?Q?amFuXGFwcGRhdGFccm9hbWluZ1wwOWQ4NDliNi0zMmQzLTRhNDAtODVlZS02?= =?us-ascii?Q?Yjg0YmEyOWUzNWJcbXNnc1xtc2ctNTZkNzk4ZGUtMzhjMi0xMWVlLTljNGYt?= =?us-ascii?Q?ZWFmOGQ2YzU4YWYzXGFtZS10ZXN0XDU2ZDc5OGUwLTM4YzItMTFlZS05YzRm?= =?us-ascii?Q?LWVhZjhkNmM1OGFmM2JvZHkudHh0IiBzej0iNDYzMSIgdD0iMTMzMzYyODUz?= =?us-ascii?Q?ODM3MzAxMDkxIiBoPSIzY3diN1AyeW9mN1pxN3B5Y1lmMVFtcjR1LzQ9IiBp?= =?us-ascii?Q?ZD0iIiBibD0iMCIgYm89IjEiIGNpPSJjQUFBQUVSSFUxUlNSVUZOQ2dVQUFO?= =?us-ascii?Q?NFBBQUJqWlRRWno4elp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QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFCQUFBQUFBQUFBQUlBQUFBQUFKNEFBQUJ0QUdF?= =?us-ascii?Q?QWNnQjJBR1VBYkFCc0FGOEFkd0J2QUhJQVpBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFnQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBRUFBQUFBQUFBQUFnQUFBQUFBIi8+PC9tZXRhPg=3D=3D?= x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SN1PR18MB2126:EE_|SA0PR18MB3616:EE_ x-ms-office365-filtering-correlation-id: 40d754c8-ef31-4138-4b0e-08db9ae63df1 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: eLEduSMvU+A+DZ4gsQr3rQ7fQPJ23z752D/mlSP8I6JSAK0kQYvemiOBHSZ/Lo1rmivpUCMYRIYd2PujRrGpCcXjUbRQNk33R8iSLMinsFePbFsmg/ZpBWXkFJgglAyRnUdbfit9VvdKwgbu3HFPu2EImBfUNXb3ZlXvoZhcjpPIX8uj9j2ejWREW6lqX8dZlYeQ7AN8GWjtBLl4hSD6pnHkXxauluJcOMAq1hd+9MkxIzbNMmAiDlOz70nf4vrEJqPGyHm4fCVDqzd3+zaYT/AAuo383PLW1X0PVEfIg2kUoqLFjX4ehXYqtKhcqulTQqpeG52lDV3PTB1wCrgEj0NDgMZ7+43SJGnA+nfKIlAqHfz4t513dg4qovo8EBpPNIIlfxfUK3GHcHBs2fyVh4mK4gPxlLJk9ltS2t7CbB6sL7ta8SuPWQ1xvE3RjpGFBTehwSO3CHIinAIyevsKbNzy9Q1/xEgTLMyZrfwU3coYRT839+PAAjcQTEgJuDep3Jy34P2Xy0HoiSgJmNfSdGitw6CcW4oAbGlaxnZEyp+6N/l5a2QT2XN6o1+bfnYecI3WZl6tJjoCenSy95V5aFDNTmHRb6sFAkZC9UxOgeleeY0qXNYXLf4mw4GFZ75s x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN1PR18MB2126.namprd18.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(376002)(136003)(366004)(39860400002)(346002)(396003)(451199021)(1800799006)(186006)(64756008)(6916009)(66476007)(54906003)(66446008)(66556008)(55016003)(66946007)(41300700001)(8676002)(8936002)(316002)(33656002)(76116006)(86362001)(38100700002)(122000001)(83380400001)(26005)(38070700005)(7696005)(4326008)(107886003)(53546011)(6506007)(71200400001)(9686003)(478600001)(52536014)(5660300002)(2906002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?+yDyDFlE0DzRjTNOn/r/vBOCTscyr1HHsqoRtGZKiKOX+hqtYydezbgK/d4M?= =?us-ascii?Q?JsO71FDg41AtYFmZb3wZm1+4gAOEEnbMcpuCFzn28FlNB1hM9NgWWIrRB8kn?= =?us-ascii?Q?Yr9MW1uX/0zlQqPEF9YgwQJpx5iZz6SKhJz4X8vRN+Jl600kTGG0j6Ts6M5B?= =?us-ascii?Q?oGJRxxSCrILoiZYVdfNY3d79oKbuK3uervSAhaJfEDJ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xhtNbvQNqE9w226X0Etu4/8IOswxTb8LNb5/YvDEqF8?= =?us-ascii?Q?lPGMScfQ7ddSQqn6UW0yHSCkLTQXk3Uef+Do1V3YK3xZnk8aUjWdMSFKHPOv?= =?us-ascii?Q?AoJbWB2SBAQwqwRF+RbiW/Ul8CPXFi3+aicds6DHnN9ZqLtK9BojfY/O10LZ?= =?us-ascii?Q?WyRrIfY7GeCoqQ9iqzAlOBIY/2+/MOieSp+QfN/xfOfCvATswJvQ5rs/ZnGr?= =?us-ascii?Q?7H9fDvo/QFEOb+EYo9/qnumoWG6DHar6VLBh59zPo3VO4c6RLn20jTGDrHiU?= =?us-ascii?Q?5RuJPwohpQHnay++28BTSKS/czbttDvnjZf6vH1XqrJGpNqLC2TA2kHzrtTr?= =?us-ascii?Q?iADwgd2f+gMy9DT+O8qYfUxl4VJTXbb3wTWuEJxzlftYLhBXfs2zY5Wf1o1A?= =?us-ascii?Q?C9bi4zIW1fiRAJPXhh5uOP1dyksaYWVncY+n5DPm5MWLdkvns2MsgFNj0KnX?= =?us-ascii?Q?0qQ11QY5PJSaRrWefezF30CJtnJXoLU/eu4fQfDG?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN1PR18MB2126.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 40d754c8-ef31-4138-4b0e-08db9ae63df1 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Aug 2023 03:43:07.5034 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: RHeEc2FiA93T/pCqKWftrIh6XxPPWBQearyACULYvyW7X3j4Pf5PNoaS8tJftUO5NpLRFyx8/g8uBsxuYJfHL97bd6keu/lQnjJwLQyvh2I= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR18MB3616 X-Proofpoint-ORIG-GUID: VIKQdha-WeCNkEHO6IXfXeTifidOCNcW X-Proofpoint-GUID: VIKQdha-WeCNkEHO6IXfXeTifidOCNcW X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-12_01,2023-08-10_01,2023-05-22_02 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > -----Original Message----- > From: Mark Rutland > Sent: Friday, July 28, 2023 8:32 PM > To: Gowthami Thiagarajan > Cc: will@kernel.org; linux-arm-kernel@lists.infradead.org; linux-kernel@v= ger.kernel.org; Sunil Kovvuri > Goutham ; Bharat Bhushan ; G= eorge Cherian > ; Linu Cherian > Subject: [EXT] Re: [PATCH 1/6] perf/marvell: Marvell PEM performance moni= tor support >=20 > External Email >=20 > ---------------------------------------------------------------------- > Hi, >=20 > On Fri, Jun 30, 2023 at 05:33:46PM +0530, Gowthami Thiagarajan wrote: > > PCI Express Interface PMU includes various performance counters to moni= tor > > the data that is transmitted over the PCIe link. The counters track var= ious > > inbound and outbound transactions which includes separate counters for > > posted/non-posted/completion TLPs. Also, inbound and outbound memory re= ad > > requests along with their latencies can also be monitored. Address > > Translation Services(ATS)events such as ATS Translation, ATS Page Reque= st, > > ATS Invalidation along with their corresponding latencies are also > > supported. > > > > The performance counters are 64 bits wide. > > > > For instance, > > perf stat -e ib_tlp_pr > > tracks the inbound posted TLPs for the workload. > > > > Signed-off-by: Linu Cherian > > Signed-off-by: Gowthami Thiagarajan >=20 > This generally looks fine; I have a few comments below. >=20 > [...] >=20 > > diff --git a/drivers/perf/marvell_pem_pmu.c b/drivers/perf/marvell_pem_= pmu.c > > new file mode 100644 > > index 000000000000..fb27112aa7d4 > > --- /dev/null > > +++ b/drivers/perf/marvell_pem_pmu.c > > @@ -0,0 +1,433 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* Marvell PEM(PCIe RC) Performance Monitor Driver > > + * > > + * Copyright (C) 2023 Marvell. > > + */ >=20 > Nit: please follow the preferred coding style for comments. This should h= ave a > newline immediately after the '/*', e.g. >=20 > /* > * Marvell PEM(PCIe RC) Performance Monitor Driver > * > * Copyright (C) 2023 Marvell. > */ >=20 > Likewise for all other multi-line comments. Ack. >=20 > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > + > > +/* Each of these events maps to a free running 64 bit counter > > + * with no event control, but can be reset. > > + * > > + */ > > +enum pem_events { > > + IB_TLP_NPR, > > + IB_TLP_PR, > > + IB_TLP_CPL, >=20 > > +static u64 eventid_to_offset_table[] =3D { > > + 0x0, > > + 0x8, > > + 0x10, >=20 > I assume the event IDs are the values in the pem_events enum, so please u= se > array initalizers here to make that clear, e.g. >=20 > static u64 eventid_to_offset_table[] =3D { > [IB_TLP_NPR] =3D 0x0, > [IB_TLP_PR] =3D 0x8, > [IB_TLP_CPL] 0x10, > ... > }; >=20 > [...] Ack. Yes. IDs refer to the pem_events.=20 >=20 > > +static int pem_perf_event_init(struct perf_event *event) > > +{ > > + struct pem_pmu *pmu =3D to_pem_pmu(event->pmu); > > + struct hw_perf_event *hwc =3D &event->hw; > > + > > + if (event->attr.type !=3D event->pmu->type) > > + return -ENOENT; > > + > > + if (is_sampling_event(event)) { >=20 > Don't we also need to check for: >=20 > event->attach_state & PERF_ATTACH_TASK Ack. Will add this check. >=20 > > + dev_info(pmu->dev, "Sampling not supported!\n"); > > + return -EOPNOTSUPP; > > + } >=20 > Please delete this dev_info(). Ack. >=20 > > + > > + if (event->cpu < 0) { > > + dev_warn(pmu->dev, "Can't provide per-task data!\n"); > > + return -EOPNOTSUPP; > > + } >=20 > Likewise, please delete this dev_warn(). Ack. >=20 > > + > > + /* We must NOT create groups containing mixed PMUs */ > > + if (event->group_leader->pmu !=3D event->pmu && > > + !is_software_event(event->group_leader)) > > + return -EINVAL; > > + > > + /* Set ownership of event to one CPU, same event can not be observed > > + * on multiple cpus at same time. > > + */ >=20 > Please fix this comment style (or delete the comment). Ack. -Thanks, Gowthami >=20 > > + event->cpu =3D pmu->cpu; > > + hwc->idx =3D -1; > > + return 0; > > +} >=20 > Thanks, > Mark.