Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp603046lqt; Thu, 6 Jun 2024 12:30:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW++spg/aRuSq1qNXEIQFKErVC19WqJc6key5Oor0mvPLYW7zAkYvRtiZsZzJBBoTQAC1PuyuNPEPU4TBOCtlobgmksImClTPSVZ6Uumw== X-Google-Smtp-Source: AGHT+IGfv2SmnRkUqi0nPP3S+6qx4uA+A1YB8kJRSfjkBb7vkYpbcDd9xomF4UB8nq1RfqW9FpGV X-Received: by 2002:a17:902:dac3:b0:1f3:4d2:7025 with SMTP id d9443c01a7336-1f6d039ceb4mr6891675ad.49.1717702259036; Thu, 06 Jun 2024 12:30:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717702259; cv=pass; d=google.com; s=arc-20160816; b=lJQuZfRp0j/jOd5i3nRNypPQAovfMt6BffJiGaU+Vjh/T9zcJrq4bzq0u+uLm5NYeK +9giEy3mv+7/zEFmNEJ89/ByuFZV72yfoK09prOKo0RN7WcD03HgPdnX+MFdYNsznuWq cFoVTB3l4zI4AJLSmRPqFFELP6LSGw7UZkOZpl8lSGcIKfxkXWeDUYiskYRe+98Hx3o8 Sb3/aQldIkCBfak/Ap5C2nQlDy6RSc5YoQ6b/Og++GGOB5mWLA3L9lodW16TIvxR92+r eQteq9K1SqVVY4tSKFJLXDo5xuk1OJJX+wUPxW7PcCZ0sOHYc9U3kEUvNsNDwOoIXEDt ilxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=GlfJeshpJmQyl0K2RIKNCeUSlNhcKir4tkM4FU1Mi4E=; fh=DKJw8aAO1ZuFnMaC5qRz4c2b/Pl8lO01N/7kfBjdatk=; b=qZC7ng32mp6ZVOKpv9EqXPZbsBEGu5z2mNciH9zpLZV3bp0QetxFkva6CUnxGiWmcG QDMuXY8BmMZZl060Sbu8j4ysrSX1Ryro72D4ZDXcBXVcuVnMFpP/Ih5iA6inA3Q1I92b 4I51lzblXsD/PiUtVsoiCvpZu1NFxdUQyVKJo1JvGUtPIKAyZ01YCrdCFwibAAhBQAlT BpX2lPXMdwLBVpx2+SY+VGI43x1JWLvH0ER7gknviPWgA53443b3AG73gA8VtJm6JXV8 TtWWXFq88Pj5VZKH2+/XP35WskshYHPvm9ESd4cPpnEVnZMceX7mXCnARs/1yLJYVPNW xQEA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MUPxSoSc; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-204867-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204867-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd76f6c6si16106015ad.184.2024.06.06.12.30.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 12:30:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204867-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MUPxSoSc; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-204867-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204867-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E31F0B23C59 for ; Thu, 6 Jun 2024 18:15:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 21335199385; Thu, 6 Jun 2024 18:15:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="MUPxSoSc" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C8031199E9A; Thu, 6 Jun 2024 18:15:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717697705; cv=none; b=FEyN4OmEc2YHMY1RhjoYRUDk/7wz/ae8SFRSJT+Plie7NILxffbTZXRxLtGdzkEseOTvcclng6otDRVVbE+m1ywMh51ocXBxa5pjvW4+BeTpsjB/QzjYI7wp4AsG/7argxuNh9R3/51Z8Th1JYoenysOjCWKF2XCePe+QQykZxo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717697705; c=relaxed/simple; bh=egWboMGOoCOOUrz/f57Ri2iKR67Rqvxoy2IOaJTVpvk=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=Hjwb12C6x1ZLbj6f1aod9JGRoCj47G04YuKq+p2Kqyac5X/QEojTbTLjyFMCiaDav4HCPcoKHAa9ZhJZxKAnWPntoqFQWBbMKGVjxQEgi+ScfK2a6ToYm64sxT14OzW1/eLASaHnCUAjDRlXpJ/6DdxabyYJplL8JQX+nGWhKVI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=MUPxSoSc; arc=none smtp.client-ip=192.198.163.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717697704; x=1749233704; h=message-id:date:mime-version:subject:to:references:from: in-reply-to:content-transfer-encoding; bh=egWboMGOoCOOUrz/f57Ri2iKR67Rqvxoy2IOaJTVpvk=; b=MUPxSoSckSYaIpJkZsH8GAIuRvdmIiRbZiktThf7dDryN6u0/xsjxTYL bi6tc4R+UsEu2Nr/KAgLXP6c0aJtbGtFF5Nq5gMrL7vubUgXNfwxYZTlU v5epRwEy2DYd94/IBqM8eMDw0mmUkvFNSNqsJEl+0+F/bSzPTXGbDZkMB HQjRgdIaqIhHbzU6LIg8BjBos2P9PSGYQovvSrWtoqqCR/236YbWP8hNz cGSWtywHmuCNvIkC83SQPbpggN4gE5QxFtiamWgH5vQUGNupHcU2iWVBH Wbil1WgkzV+jiapM1ZHy+IgDAId2vTjwvxba78G0Ng8EnxdHtu5mtsCmH A==; X-CSE-ConnectionGUID: PHpZ7/iwQ1+ZpTLC9gItRg== X-CSE-MsgGUID: QDJvq7n7QtCBc0WvFcQGjw== X-IronPort-AV: E=McAfee;i="6600,9927,11095"; a="25788597" X-IronPort-AV: E=Sophos;i="6.08,219,1712646000"; d="scan'208";a="25788597" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2024 11:15:03 -0700 X-CSE-ConnectionGUID: DBIHofN/TLK3Lj2QHtHp0g== X-CSE-MsgGUID: FtCukTPlSLqRoPn9CsJerw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,219,1712646000"; d="scan'208";a="37978935" Received: from linux.intel.com ([10.54.29.200]) by orviesa010.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2024 11:15:02 -0700 Received: from [10.212.72.92] (kliang2-mobl1.ccr.corp.intel.com [10.212.72.92]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by linux.intel.com (Postfix) with ESMTPS id 6EA6E20B5703; Thu, 6 Jun 2024 11:15:00 -0700 (PDT) Message-ID: Date: Thu, 6 Jun 2024 14:14:59 -0400 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH v2] perf Documentation: Describe the PMU naming convention To: Ian Rogers , Randy Dunlap , Tuan Phan , Robin Murphy , Thomas Richter , Bhaskara Budiredla , Bharat Bhushan , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , James Clark , Ravi Bangoria , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Will Deacon , Stephane Eranian References: <20240606044959.335715-1-irogers@google.com> Content-Language: en-US From: "Liang, Kan" In-Reply-To: <20240606044959.335715-1-irogers@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2024-06-06 12:49 a.m., Ian Rogers wrote: > It is an existing convention to use suffixes with PMU names. Try to > capture that convention so that future PMU devices may adhere to it. > > The name of the file and date within the file try to follow existing > conventions, particularly sysfs-bus-event_source-devices-events. > > Signed-off-by: Ian Rogers > Reviewed-by: Randy Dunlap > --- > .../testing/sysfs-bus-event_source-devices | 24 +++++++++++++++++++ > 1 file changed, 24 insertions(+) > create mode 100644 Documentation/ABI/testing/sysfs-bus-event_source-devices > Reviewed-by: Kan Liang Thanks, Kan > diff --git a/Documentation/ABI/testing/sysfs-bus-event_source-devices b/Documentation/ABI/testing/sysfs-bus-event_source-devices > new file mode 100644 > index 000000000000..79b268319df1 > --- /dev/null > +++ b/Documentation/ABI/testing/sysfs-bus-event_source-devices > @@ -0,0 +1,24 @@ > +What: /sys/bus/event_source/devices/ > +Date: 2014/02/24 > +Contact: Linux kernel mailing list > +Description: Performance Monitoring Unit () > + > + Each directory, for a PMU device, is a name > + optionally followed by an underscore and then either a > + decimal or hexadecimal number. For example, cpu is a > + PMU name without a suffix as is intel_bts, > + uncore_imc_0 is a PMU name with a 0 numeric suffix, > + ddr_pmu_87e1b0000000 is a PMU name with a hex > + suffix. The hex suffix must be more than two > + characters long to avoid ambiguity with PMUs like the > + S390 cpum_cf. > + > + Tools can treat PMUs with the same name that differ by > + suffix as instances of the same PMU for the sake of, > + for example, opening an event. For example, the PMUs > + uncore_imc_free_running_0 and > + uncore_imc_free_running_1 have an event data_read; > + opening the data_read event on a PMU specified as > + uncore_imc_free_running should be treated as opening > + the data_read event on PMU uncore_imc_free_running_0 > + and PMU uncore_imc_free_running_1.