Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp913615imw; Wed, 13 Jul 2022 10:11:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1symak9Iq8R+6Vrq9DFG4CMEsABgInig/Vam5RZUxGMRgicD1Q6iL/DPpOrTdsWkezGxJin X-Received: by 2002:a17:907:6e0f:b0:72e:d066:dfe5 with SMTP id sd15-20020a1709076e0f00b0072ed066dfe5mr852106ejc.558.1657732313755; Wed, 13 Jul 2022 10:11:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657732313; cv=none; d=google.com; s=arc-20160816; b=GdMV7JGbhchribMhMtk+WqkjJQwytSgtGHX7Ht7VXPMDLkqeEyML+x+P7rQgCn9TkJ TmbsNf+g0BlVyVda7L+Po7VOTPPwNRKQmNMz9zeptKy7f2wVDNkURZdagu+58nmzRhtj vyp+uv7ZhxnTkhyos0DAIT0Zet51muTGPy/Qbq+QZCPkR+ahDuhMcpmiNtgPRbWyKpoX uXJBB+NxFHEBmZ56vigd4Oz58tfIsIBt4juoz3pWNuUe4Qbe1HVf2vL5m4cF5WhkxLyO ryGWrayOYMEXhcwZsSgN6IAIa1vWp9zxhXFpOsSla1HNlYpyDO1gGfox6qfgDk4a0sth letg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=pSMeV0UO1e5jzes+Zd0PBMgQ79wPyLQn2ffBVo4YcO4=; b=c/xw+v6DLZJPBbGyIVESqemcX++9cOCfyRypF4XRSZ2mFTIRKxowT2ra05mWpT5ymM Dxjsf23qIbt56N19az/rAJ486GZZ9cv/jI+zlFRLuaDSsg2q8d7+QdleBZsscl6onLo9 xtjg935jLczSJgrfjFZTRegCFwMBy2BUK0NfSJ8ISkA9GS1tvcBhyQaeq3JdftFVuIcS m0oUOZ2oXMMRSmK54Y4B5G85as4CTjg11HTQfK8Y06GaQHoVu0QoYbj4c6nqAAtS2quk yQrrdcHahiIgr6mIfuqbZ/teEKfzFRie8AoOEqoQ6Tgj2GFoeMNxYHVeGfSzYVsO+ZW0 XOTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K2cWE3mb; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa24-20020a1709076d1800b0072b69650f7esi10787599ejc.719.2022.07.13.10.11.26; Wed, 13 Jul 2022 10:11:53 -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=@linaro.org header.s=google header.b=K2cWE3mb; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237093AbiGMQ0w (ORCPT + 99 others); Wed, 13 Jul 2022 12:26:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235889AbiGMQ0t (ORCPT ); Wed, 13 Jul 2022 12:26:49 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB172202 for ; Wed, 13 Jul 2022 09:26:47 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id ez10so20749462ejc.13 for ; Wed, 13 Jul 2022 09:26:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pSMeV0UO1e5jzes+Zd0PBMgQ79wPyLQn2ffBVo4YcO4=; b=K2cWE3mbwrzYGunognoSm8OrYifu+6ElD6U/XIbW8YDOXvcdIiYXlFGspU0RhyB3c/ gAg1SL2SYFzad5aK/gR4awmdZZRZ/Ppr8+f+ywt8oKJMZx+h9z+JnFGiNeaGxp8s0rZi Artyn/ma+VM3eSDMZ2jA93/fK7RUyew81I4U0lGHPyTxWQBqLAwB0R8+8EWeWivTTtaF 90q2Cy3K9lHKCMsCARkyTXa8TpWmJVJRA4mVTWarnacvxLiaQ4zfdEN05j0ZfaullAhP wZhgTc5fKKJjrahwtar3zwB/UdPRwbridAHwVA4s+6lM1HOy8Fc2n3IYNrg+uL6i13q6 xoRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pSMeV0UO1e5jzes+Zd0PBMgQ79wPyLQn2ffBVo4YcO4=; b=6pyMHuws617JtzezN/EogfFbQ0QqWqXerOPaHAndNCWK+lbn4cTgjvgfuwzW0udeux 0I93Ju3YdYnp7i9gny4seHKJp3z+aqab3jbwxFvkCgzJbDwA9AMwjxmwu7fZDIdSYcPU xtmT9z1WnCCXpGukH8NZYRsoOt7AOchtNZOqlKU9WrpObOIuggmjQnAVDnvjnUOzF+jp QBkBmYeWgEWCzOvfBMoIF+A1Gec5FtsRXUDW47q/iJVIeZQqpQHs8XqaAcFyBSClsDqe e+EsEui3thdy5EUuTEzfZQqKhliME5WSjcjHL1b0Fqr8oPyOenKflZ6hFN/c0niGHnzt kFPA== X-Gm-Message-State: AJIora9q1/OosCa4MmuY//puG0CkGYMjr1mTVgKwZtcWJ0+B4kDkGo+x 3VCpnwYK43ToqX5tcBOvCmcbChybTiYmgYPSRig+FA== X-Received: by 2002:a17:906:5a68:b0:72b:3e88:fec1 with SMTP id my40-20020a1709065a6800b0072b3e88fec1mr4281064ejc.741.1657729606404; Wed, 13 Jul 2022 09:26:46 -0700 (PDT) MIME-Version: 1.0 References: <20220621055035.31766-1-bwicaksono@nvidia.com> <20220621055035.31766-2-bwicaksono@nvidia.com> <73dafe08-d1f1-90b6-995e-7d38e9e1dce7@arm.com> <20220712163638.GA2945984@p14s> <632f5c80-2be3-ace5-6b0d-ee0c9e5560ff@arm.com> In-Reply-To: <632f5c80-2be3-ace5-6b0d-ee0c9e5560ff@arm.com> From: Mathieu Poirier Date: Wed, 13 Jul 2022 10:26:34 -0600 Message-ID: Subject: Re: [RESEND PATCH v3 1/2] perf: coresight_pmu: Add support for ARM CoreSight PMU driver To: Robin Murphy Cc: Besar Wicaksono , Suzuki K Poulose , "catalin.marinas@arm.com" , "will@kernel.org" , "mark.rutland@arm.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-tegra@vger.kernel.org" , "sudeep.holla@arm.com" , "thanu.rangarajan@arm.com" , "Michael.Williams@arm.com" , Thierry Reding , Jonathan Hunter , Vikram Sethi , "mike.leach@linaro.org" , "leo.yan@linaro.org" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Tue, 12 Jul 2022 at 14:13, Robin Murphy wrote: > > On 2022-07-12 17:36, Mathieu Poirier wrote: > [...] > >>> If we have decied to call this arm_system_pmu, (which I am perfectly > >>> happy with), could we please stick to that name for functions that we > >>> export ? > >>> > >>> e.g, > >>> s/coresight_pmu_sysfs_event_show/arm_system_pmu_event_show()/ > >>> > >> > >> Just want to confirm, is it just the public functions or do we need to replace > >> all that has "coresight" naming ? Including the static functions, structs, filename. > > > > I think all references to "coresight" should be changed to "arm_system_pmu", > > including filenames. That way there is no doubt this IP block is not > > related, and does not interoperate, with the any of the "coresight" IP blocks > > already supported[1] in the kernel. > > > > I have looked at the documentation[2] in the cover letter and I agree > > with an earlier comment from Sudeep that this IP has very little to do with any > > of the other CoreSight IP blocks found in the CoreSight framework[1]. Using the > > "coresight" naming convention in this driver would be _extremely_ confusing, > > especially when it comes to exported functions. > > But conversely, how is it not confusing to make up completely different > names for things than what they're actually called? The CoreSight > Performance Monitoring Unit is a part of the Arm CoreSight architecture, > it says it right there on page 1. What if I instinctively associate the > name Mathieu with someone more familiar to me, so to avoid confusion I'd > prefer to call you Steve? Is that OK? > Not sure how the above helps moving the conversation forward. > As it happens, Steve, I do actually agree with you that "coresight_" is > a bad prefix here, but only for the reason that it's too general. TBH I > think that's true of the existing Linux subsystem too, but that damage > is already done, and I'd concur that there's little value in trying to > unpick that now, despite the clear existence of products like CoreSight > DAP and CoreSight ELA which don't have all that much to do with program > trace either. > Happy to see that we are in complete agreement. > However, hindsight and inertia are hardly good reasons to double down on > poor decisions, so if I was going to vote for anything here it would be > "cspmu_", which is about as > obviously-related-to-the-thing-it-actually-is as we can get while also > being pleasantly concise. > > [ And no, this isn't bikeshedding. Naming things right is *important* ] > > Cheers, > Robin. > > > > > Thanks, > > Steve > > > > [1]. drivers/hwtracing/coresight/ > > [2]. https://developer.arm.com/documentation/ihi0091/latest