Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp625713rwd; Thu, 1 Jun 2023 04:49:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ53q/s0fCGtUaw5qpvKhr/d/AiBf5pUFSu8VmvvkmLC5nvSSRR2BFHPH6DzBO1fEzYshIkz X-Received: by 2002:a17:90a:6b46:b0:256:675f:1d49 with SMTP id x6-20020a17090a6b4600b00256675f1d49mr2007005pjl.0.1685620175698; Thu, 01 Jun 2023 04:49:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685620175; cv=none; d=google.com; s=arc-20160816; b=PogwqGpZ6ZQZyihgePhTHnS5bz+qoOavsYQ6IE2WDWb8oMxg6x491J7qmgoruRfb9c nwFblXrajuSePXN6cdnT+3rvPjYGkvsR3qGDJf9nM8uXUTTbpUzFtczbqnauGdx9kFxY 4Pa5Q2Wd9JW8KQPb8OnVXdcM6X0vHtJkUC11BhxdBRQecQFXk7qP+iwWBDGLnX9TD1RV dP5b7+gP1eTG/uh2p580hmucrNBzB3s/cAxZPWG7rzfq5K3jgs1sRKID4Wq1sMwVntkv c2g9ZVSMQoPm5ZxPrfwS2+gCWOshNZ6MrHflU/Td5t/Fez63k2y9sI6LeLZrogwLwdsG An0A== 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=Jzcx+R+c6UOqzz0gVG07uUa29kOBvr3x5e8X9TFuwcA=; b=k4R8AkpmAeUbL8B9tuYMlpy0xkV4Xs9Yya02vIpiQz0wJ7N6E2rJ3DK6S00wRae7bs 13icWXecpfBUECqoHRXTwH+oUYsM1RKdEf/ZFFG0vZ56KZNvmQDm0tL7lYzEY4IFtnEf sqadqHeqeRp1jk9VWgElEQ48QABfAaYTeEGtLTa4JZ3JColNhquNpK0e/uxH7EcKZ10P LqrQP5PDr7jXx9jOIzlWDVE0ZcR97TAf/YlEftfmrVOYd4/T60eO57WlHWwQPAfJ723e kTzpQVktovPEQtWIBvheMNb/HV79EoHPr9XZdsvwQBSV46mCMbU3rqBkOXmU5O/41IYM pTQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=oQ8d4cw3; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y15-20020a17090a134f00b0025378b5495bsi1042950pjf.33.2023.06.01.04.49.21; Thu, 01 Jun 2023 04:49:35 -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=@infradead.org header.s=desiato.20200630 header.b=oQ8d4cw3; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232230AbjFALUy (ORCPT + 99 others); Thu, 1 Jun 2023 07:20:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229589AbjFALUx (ORCPT ); Thu, 1 Jun 2023 07:20:53 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87535123; Thu, 1 Jun 2023 04:20:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Jzcx+R+c6UOqzz0gVG07uUa29kOBvr3x5e8X9TFuwcA=; b=oQ8d4cw3GAx07aySlQ39lT4A8H prkDbHMJybq15SDspPHtVe9iiG+gfjkElttDpsY8z8UlgWtby1L64wWiDvn4LCC+WTcKHkzU2uCVU Il3IG6TJVbBw9F0wcsP4EFmQr1my4e2Wh0UYpw8cam+gBKhpQJY7tpxiPeVWY1yhA82CNY6Fx9I5x mM91gUzo12SNrcaM9a68ZIINX0H2/ZLb74OaH9RebDzycs3fze5p/lWol2AQOXOyvokCXPilqkWa5 +nhi4EoTnMscy882WT5oR/Y5l8hR6D2t88nbMSI93A02rL9M7UpKAB5iPK226BszP0ZiYxjDrPS8Q i7+Eq3vg==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1q4gM0-00H940-1R; Thu, 01 Jun 2023 11:20:28 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 34D6630031F; Thu, 1 Jun 2023 13:20:27 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 2450C202BDCB6; Thu, 1 Jun 2023 13:20:27 +0200 (CEST) Date: Thu, 1 Jun 2023 13:20:27 +0200 From: Peter Zijlstra To: Thomas Richter Cc: Ian Rogers , Marc Zyngier , Oliver Upton , Ravi Bangoria , Nathan Chancellor , namhyung@kernel.org, eranian@google.com, acme@kernel.org, mark.rutland@arm.com, jolsa@kernel.org, bp@alien8.de, kan.liang@linux.intel.com, adrian.hunter@intel.com, maddy@linux.ibm.com, x86@kernel.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, sandipan.das@amd.com, ananth.narayan@amd.com, santosh.shukla@amd.com, kvmarm@lists.linux.dev Subject: Re: [PATCH v4 3/4] perf/core: Remove pmu linear searching code Message-ID: <20230601112027.GI38236@hirez.programming.kicks-ass.net> References: <86jzwtdhmk.wl-maz@kernel.org> <86h6rxd3gh.wl-maz@kernel.org> <0075d8a9-2df4-86eb-8171-8995f59904e0@linux.ibm.com> <20230601111856.GW4253@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230601111856.GW4253@hirez.programming.kicks-ass.net> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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 Thu, Jun 01, 2023 at 01:18:56PM +0200, Peter Zijlstra wrote: > On Thu, Jun 01, 2023 at 01:02:30PM +0200, Thomas Richter wrote: > > > PS: I have the feeling, it gets complicated to have multiple hardware PMUs > > per platform. > > Recently someone was poking around giving the pmu device a parent, this > would, I think, result in sysfs links, which could be used to decide > what's what. > > Core pmus would have the CPU device as their parent, while memory > controller thingies would link to the relevant node or something. > > Ofc. all that's future-work/pending. https://lkml.kernel.org/r/20230404134225.13408-1-Jonathan.Cameron%40huawei.com https://lkml.kernel.org/r/20230531110011.13963-2-Jonathan.Cameron%40huawei.com