Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1265708pxv; Fri, 25 Jun 2021 08:59:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrIepMtW3gNZbwMq2O5tGZCXPIoWO+YRkd54MPdwr4JaQ3i+sksXkLbBMvJAcAG7YuEvL1 X-Received: by 2002:a17:906:dbf2:: with SMTP id yd18mr11345524ejb.406.1624636773116; Fri, 25 Jun 2021 08:59:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624636773; cv=none; d=google.com; s=arc-20160816; b=jD1FevwlDl7CXUY2wViIXx25Ik2TUfLD0WTvAC2H3oRa9NpbfE48K8/1wu7Q8eaw6q pQ9unQhao3BKaNBty1hrFRLNFsDoPTd5MsLcefeYG49H090uyKFmPk4CbawmqbBI4BPk hnpuuNhATmTK7mcwauaKXvEU5X8rBajy2r0XqnKE3wfB01DEyKRPWaEnbfKBW6pF9Dqw cLyIqV1zAnynf1mWfAu++YgPGCkDGdP0D2UofCum+TuAwXHwo1zWyBOtGLds4qZejJv5 zeaNyJiCmncMV9bjd940Lmih3MKPC5hl/irP1/WCWxTRmhCHoGlcT3yHwRpzGoZfgacw oi0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=El2puS8Nwygh4vQTUF/796RnFm7U8eByU/GVHZcxGg8=; b=bHjezCvqLN+9CmHWejgbHNgWnVjJKr8cTSq+cIHvwIZhUNWNUjQUOEteVEsLYTtgxb FiaLl0aEG7MHP+xxhdB/nsf8Gli+4PTuQ6oSWIr8fryf2JQnY5GPPPUz9Ch2rlDZCTZc Qt3gHwh9Xfy1K0I3EU7OqRO3Bm6+byZfacMIBjRctKBB38t/6Ug4VVPGn61sHJFf6uXL TtqDZOZK7SFRxXvYgpf3jpcOTcxlxdKyOzxUo65w5jmq4mj1MB5vhcdvtVIsDf6bjuja KKmtxQTICt9OrDTiuloiCYeG+DREU+STVAkgb7DGyfAfYKKA76hpnIZy0XDS6qLErhNu FwjA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yl16si5896624ejb.352.2021.06.25.08.59.10; Fri, 25 Jun 2021 08:59:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229776AbhFYQAh (ORCPT + 99 others); Fri, 25 Jun 2021 12:00:37 -0400 Received: from mga05.intel.com ([192.55.52.43]:1142 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229738AbhFYQAe (ORCPT ); Fri, 25 Jun 2021 12:00:34 -0400 IronPort-SDR: Oadq8INdQ7wY0KxpzyofpGou46hRalPztVflRiaPGphrWHoRh+koMFNKVWZUdQ7/ofFuBZVxli mZ5g0aj5tbzQ== X-IronPort-AV: E=McAfee;i="6200,9189,10026"; a="293330008" X-IronPort-AV: E=Sophos;i="5.83,299,1616482800"; d="scan'208";a="293330008" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2021 08:57:22 -0700 IronPort-SDR: FeR0OuHqi27DhjFBro/VqKDNFkIg1akVclkWKu7SW+IonGjeRlugs5YKW8shTXuN4LLXldw17x i9NUWrf6pn+Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,299,1616482800"; d="scan'208";a="418440100" Received: from linux.intel.com ([10.54.29.200]) by fmsmga007.fm.intel.com with ESMTP; 25 Jun 2021 08:57:20 -0700 Received: from [10.212.190.24] (kliang2-MOBL.ccr.corp.intel.com [10.212.190.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTPS id AD4855805B5; Fri, 25 Jun 2021 08:57:19 -0700 (PDT) Subject: Re: [PATCH 2/7] perf: Create a symlink for a PMU To: Andi Kleen , Greg KH Cc: peterz@infradead.org, mingo@redhat.com, linux-kernel@vger.kernel.org, eranian@google.com, namhyung@kernel.org, acme@kernel.org, jolsa@redhat.com References: <1624497729-158864-1-git-send-email-kan.liang@linux.intel.com> <1624497729-158864-3-git-send-email-kan.liang@linux.intel.com> <1e536604-cf93-0f09-401e-2073924c5582@linux.intel.com> <29d5f315-578f-103c-9523-ae890e29c7e7@linux.intel.com> <540d8a38-da12-56c8-8306-8d3d61ae1d6b@linux.intel.com> <6f2941a4-4a32-ea09-bbc6-5a8e4836411b@linux.intel.com> From: "Liang, Kan" Message-ID: <82fe02c8-2ac6-fc53-490c-382df3e07dc4@linux.intel.com> Date: Fri, 25 Jun 2021 11:57:18 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <6f2941a4-4a32-ea09-bbc6-5a8e4836411b@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/25/2021 11:44 AM, Andi Kleen wrote: > >> We have an attribute "caps/pmu_name" for the core PMU. Maybe we should >> add it for uncore PMU as well. For example, >> >> $ cat /sys/devices/uncore_type_0_0/caps/pmu_name >> cha_0 >> >> Userspace tool can get clues about what type_0_0 is. > > It would break all the old tools, but I suppose it could work for > updated tools. > Right, users have to update their perf tool to use the new name, uncore_cha_0. > It isn't only perf that is parsing this, but some other libraries too. > They all would need to be updated too. > Yes, I will update the Documentation/ABI/ in V2 to indicate the changes. If any other libraries are broken, they may get clues from the Document. Thanks, Kan > I think I still prefer the symlink. It would just work and keep full > compatibility. > > But yes maybe there is no choice. > > -Andi > >