Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp422429pxv; Thu, 24 Jun 2021 10:51:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhMkI6vYTtqqXaJORbxpbvb3BdjUsF0qEA8iQgFFAIIjDkAdWdQKp2QP389PaetIl1dOlG X-Received: by 2002:a6b:d61a:: with SMTP id w26mr5191226ioa.204.1624557093283; Thu, 24 Jun 2021 10:51:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624557093; cv=none; d=google.com; s=arc-20160816; b=Ihu99j93+9V8YLAwddF30oLhlVE7l3RO4T8vYfEneedmVn/CqK44pILhSbTq1M1h1A QS/YRkxYGtjU+26h+ugcyFtkF1UXS0hBOljnkxyes7VsI6Tp3JgNfWEGn+zmBv7+h0B4 ykGxGT0EIHJO1BGqJpez/0jF/wtEY5Qb2P1bNSqSvHBONXCg6zWkCD123WLxLhQXT0pj Y4r/nWcaZo3Br4yvnr10ZHM23HgM7IKnRHmLzJGZxfGCcrg2m/qzZe5MG5SPmOj+fa9q 3R97OcJQtMnqaNTjuKwKp5YgYO7WnSOSE3ks+4PDu3PUKDb76YHZZdFr36Zy9AUGbx4d m4Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=hITrScduJSa5/k/COrYV8/9+6aytDDsY7sc47hQ/bkc=; b=Di4JJoD8DptfCFftj1qnrxs6QMmgpQZo6Rp49xTkvxJOU0Z2B9CnK3HWBJvVYk7C1G IT8F1rIoLg3mB8CNXfyNeLuPL+JyP1xjPx068+XIJbGGHH6P0LWOYaIc0oZYVtC9I9zw AHQ9NvKizgFhbADOggJJ7fXq4K6/nmccsOtWEAFIs5tSN6ojjuWFFHXUIf4V9o34xTmI N2XhwwSatmGWIEX/3UMNFzGfkcpFuu3xS91SlN8RjGvzPD0qAjFN87jr3G8JaAKxKHEP i0bQOShJvcKLhMzgiV5x19NwvNB3YkuA1vwO8JEVRnwOfBQmspB80EToRR3/Kk0w1/Uq au3Q== 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 m4si3662106iln.52.2021.06.24.10.51.20; Thu, 24 Jun 2021 10:51: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 S232429AbhFXRwE (ORCPT + 99 others); Thu, 24 Jun 2021 13:52:04 -0400 Received: from mga11.intel.com ([192.55.52.93]:5641 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231407AbhFXRwD (ORCPT ); Thu, 24 Jun 2021 13:52:03 -0400 IronPort-SDR: vk4NrxwoQKmi6tjevlZMKVmfs25YFhSgyx9wXStqpasdDnIXkSDfY+cDsAyynB/QVfGDNZ09IB nyzxhFXM4Dwg== X-IronPort-AV: E=McAfee;i="6200,9189,10025"; a="204519317" X-IronPort-AV: E=Sophos;i="5.83,296,1616482800"; d="scan'208";a="204519317" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2021 10:49:44 -0700 IronPort-SDR: SfVF8QNFENIjP2+AkMOtwdg4oRmtBGnPnJo5206IEx8McrFWCf9qUXCkpCprZV9Typ+y0nZ2Xv tto7YZe6Zgiw== X-IronPort-AV: E=Sophos;i="5.83,296,1616482800"; d="scan'208";a="406720618" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.209.74.185]) ([10.209.74.185]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2021 10:49:43 -0700 Subject: Re: [PATCH 2/7] perf: Create a symlink for a PMU To: Greg KH , "Liang, Kan" 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> <33bccec9-c4c4-d52b-9ee4-9a09e7353812@linux.intel.com> From: Andi Kleen Message-ID: <1d77c148-7ea6-4631-d799-e8ec3d31f347@linux.intel.com> Date: Thu, 24 Jun 2021 10:49:42 -0700 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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > That is not how sysfs and the driver model works, sorry. You don't get > to keep both names, otherwise sysfs would be even more of a mess than it > currently is. What happens if you need "another" name in the future? > When do you stop I don't see any scenario where we would ever need more than a single symlink. I believe there is already precedent for this elsewhere. > > this isn't ok, please do it right. I don't see what exactly are you proposing. Are you proposing to break every perf script on a kernel update? Doesn't seem acceptable to me. Or move the compatibility into the perf tool? That would require the users to both update the perf tool and the kernel. I suppose it would be possible, but it would be totally against the standard perf abstraction design. Besides there are other consumers of this than just the perf tool, so it could possibly have a wide impact. -Andi