Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6024960rwl; Tue, 4 Apr 2023 06:59:31 -0700 (PDT) X-Google-Smtp-Source: AKy350Z+PBl1+VKy8fjwOVFdYkyhadWYGr+S2zHEqh7EbgBg0I3lIZ7jvEZp8RpJXMAG0Kp7CKm1 X-Received: by 2002:a17:907:d10:b0:925:6bcb:4796 with SMTP id gn16-20020a1709070d1000b009256bcb4796mr24737431ejc.38.1680616771752; Tue, 04 Apr 2023 06:59:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680616771; cv=none; d=google.com; s=arc-20160816; b=Ssm3WiDUHcJz1O8/qLDdvWf5y+KMwVd40w2dti3dwJnAoBFJyfwah0VUsPgZowxWPs 0NwrFJu1p0Fvhj39SvxfMwJ/NfhAKwI7eaTng2T81vDdLfJ0MQzvIXrr3HAPRxOugx8j UvjSNHbpNYj8IyKsqhyhwZK8iODLDR/GdLUsbTQB9jEPVCF8wN2zrT+0OcxyGvRbSIed P30YJOTIWfkqPxQ4ar22btf0x6fOBkv5efXTIjfgIsQH8cVNoqI67dLtw22RUrhset3e GEcfg8vWZHOnH+Tgo+58OTMfmELs0HvmIt8h6JZP8s6hEtAjC124tkCyVJXm8PGgIr56 nyqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JpL3kJ12kX2Eswpcu9hGlosNHIiL9tQTjPjoFFKjStM=; b=Ucq47wJ8BItfKJtpuuE52TM+4jrrXqrAfg70lC8ExkrNJwX5xAoOsv7QBZoho2WL9/ KScDEpfOVjJ8dTjryLE55sbzJuWfAcTiEVnDB7P8vUXw6JvPnf/No1ruDrfJrPE2Nz3A h02OP8qtW3zXDw+91wMtn/unxsEpDamSx+h0j3eXfvfGRxp/EXEJxQ0pdYzwAgV4fYLl TwGX2sl54PHE6hWXd1hE6c4eLtbYaXtwLXfIxKWNZftpR9w+z5zi1pM6GlnY10iU6M2C LdEVdSyzF9Vg5GcJoA2e/SsOve2UQQUqgO1zw7xYScGnEoN9Jz+HS8SSJyfpUpkN6V5c rH8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fZw4cbD5; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e3-20020a170906044300b009341587edabsi3246078eja.89.2023.04.04.06.59.07; Tue, 04 Apr 2023 06:59:31 -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=@linuxfoundation.org header.s=korg header.b=fZw4cbD5; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235390AbjDDNvR (ORCPT + 99 others); Tue, 4 Apr 2023 09:51:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235288AbjDDNvN (ORCPT ); Tue, 4 Apr 2023 09:51:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A867A44B2; Tue, 4 Apr 2023 06:51:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 34A7E63440; Tue, 4 Apr 2023 13:51:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 170C9C4339B; Tue, 4 Apr 2023 13:51:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1680616270; bh=M01kLJmuFwVJVH5Fd0jHURY66CemX7oncliKZevP7g0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fZw4cbD5umDKL/ZgCvOKS5mpwCGR1BQ72STMVfgjCvL67KREjRVIEZmqVvDB8kqED bGD9pkjFw8YLyi8S10/+HeO11YvX1wNqbgoqIA2MhWfZYy+uphB+8exKR4ZUng1kj7 dIOuCdpMDWX3ARB9MwpySfrJKcHrjLWNdsjdNd/8= Date: Tue, 4 Apr 2023 15:51:07 +0200 From: Greg KH To: Jonathan Cameron Cc: Mark Rutland , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Will Deacon , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxarm@huawei.com, Dan Williams , Shaokun Zhang , Yicong Yang , Jiucheng Xu , Khuong Dinh , Robert Richter , Atish Patra , Anup Patel , Andy Gross , Bjorn Andersson , Frank Li , Shuai Xue , Vineet Gupta , Shawn Guo , Fenghua Yu , Dave Jiang , Wu Hao , Tom Rix , linux-fpga@vger.kernel.org, Suzuki K Poulose , Liang Kan Subject: Re: [PATCH 00/32] Add parents to struct pmu -> dev Message-ID: <2023040447-music-purgatory-1985@gregkh> References: <20230404134225.13408-1-Jonathan.Cameron@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230404134225.13408-1-Jonathan.Cameron@huawei.com> X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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, Apr 04, 2023 at 02:41:53PM +0100, Jonathan Cameron wrote: > These are the low hanging fruit following GregKH's feedback that > all the devices registered via perf_pmu_register() should have parents. > > Note that this causes potential ABI breakage. > > It may fall in the category of it isn't breakage if no one notices > but I can't be certain of that. Whilst it is arguable that > no one should be been accessing PMUs except via the event_source > bus, there was documentation suggesting /sys/devices/ for particular > PMUs (because it was a shorter path?) devices can always move around /sys/devices/ as there is not a guarantee that they will ever be in the same place. That's what /sys/class/ is used to find (and /sys/bus/ in some cases.) And even then, the naming scheme is variable, and can and will change (i.e. bus ids), so that too is not required to stay the same. thanks for doing this work, I'll add it to my review queue... greg k-h