Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp254053lqt; Thu, 6 Jun 2024 02:34:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXZrPauzZUhK9dv93NF90tF0M3cBFypFpsTEoGnp5z4ylJXBa6Jrw3AjkYfpMLBIX+cBvu7ONPFdGOCJLOFkhUa2noAcrEtkXaMHYaEHQ== X-Google-Smtp-Source: AGHT+IEYyhCoJprtE9CbCxZ6LhFdg+IJuOmj2FdyxZbKxORE3TTUS+BBB7jwMxG7gei4de9L6u4+ X-Received: by 2002:a50:9e6e:0:b0:57a:859e:4d81 with SMTP id 4fb4d7f45d1cf-57a8bca32b0mr2936937a12.28.1717666471533; Thu, 06 Jun 2024 02:34:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717666471; cv=pass; d=google.com; s=arc-20160816; b=Szqh+tMv9trnaJrKDTLne7Lt1DpYPfeXsBZzo9Jb2K4n+xBUqHkuR7HMYsYpceYvqu bDcYCPSY+v1ebX40DPmTIzN5xSpHyQFl9s3gaf0l272FW1XeBWnNICR+Tb+o8s1Mp5fN 6r8nLdHaS+AtN7BpJBWGugIwzt4a9hhcc0nS4dMKBF7nDLic3CiPQde0FqxznZTYNL44 r3o/BS/Gq7gBnOYFzDcZvzI9M1h7BVIAl3GSbJX61JTWpdCVA1DedmfkIloJQ3ZYKACX LF/if2uTCOI6p4r8htNLIlwOIby6F/HviuktmdvwrffI7WBzY6Ltk5kubTSOtk1RrJ5C ITjA== 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:cc:content-language :references:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=kxim9DUdq89idI6EKYOWYlJNin/enZHqkiYw0SNCAfw=; fh=+2MGD5gKW6yKoC+mMqDROc3NBI4SMsyXFl7qvgsy0mM=; b=IVtzv47OkygX+825qi+rub/PdfNP/26ns7Hc9AYuBdhOPbP9QvmO2tzeGPLjq+b3Zo RDYOY6CMOli9RN68CNAc5DEcY01vyQjzMecimkFKdv2So5Tb4zh8uj/bOMDamo5ik8di 4fSxklkzAat8PpU1VsNz/OpPpm1BynLIfwoS3b/au4ywL18vcXPG+D4hY2HX1YW1vXTy i8RVakj6OfjeQTs4MZyo98/bd4m1TUOqQ9x4oqHtj/bJkLDekaGK3sxgvXfNsc7cH0AB cGNsjiNXyL93wt6g6G7Ziqhpv35t/t7hbq+Ev2qnQp2lAiLp2Rs3eweaJ84LUiK3nPdi 7LtQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-204014-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204014-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57aae1faf91si489181a12.317.2024.06.06.02.34.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 02:34:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204014-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-204014-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204014-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 387311F23404 for ; Thu, 6 Jun 2024 09:34:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CEBB614EC6E; Thu, 6 Jun 2024 09:33:38 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9216813FD84; Thu, 6 Jun 2024 09:33:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717666418; cv=none; b=E+a/hFpjZVyMJou9yuFz8Heh6Kc3d0jmkPE70DliT/MRhJTFzt1H3xC4IFFd0u3TrcE0LkSnxiGaiI6THth1Ihl2rEhEHJi9uuDZIPaqh+zkMFDy3N3J3OL/mPZO+VJXq7BwqVRPIuyhxTvTQCYsGyhS/80KXluRwO4q/3mgC8o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717666418; c=relaxed/simple; bh=yNQtgmOdla3Ckbrk8hnsTrJ71kfZQrEz/u72sExF69g=; h=Message-ID:Date:MIME-Version:Subject:To:References:Cc:From: In-Reply-To:Content-Type; b=hNzCLN5+qvTJ+91kgS1aGAtCj0WnB93Ugy0jusQsKkAi1wqEZT/U+Wa68qQyi6WXUmzupxvr5HKnydumoASU2yRb61XLmHIihfEjIa8IBSF7X6YnfZh4UTx3f6BMNTKVXr8zwQeDJVGw59E5PiSIdGNPljYmvZwhkNSY7UscoUE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3DB32339; Thu, 6 Jun 2024 02:34:00 -0700 (PDT) Received: from [192.168.1.100] (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5A5B03F762; Thu, 6 Jun 2024 02:33:33 -0700 (PDT) Message-ID: Date: Thu, 6 Jun 2024 10:33:32 +0100 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 References: <20240606044959.335715-1-irogers@google.com> Content-Language: en-US Cc: 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 , Kan Liang , Ravi Bangoria , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Will Deacon , Stephane Eranian From: James Clark In-Reply-To: <20240606044959.335715-1-irogers@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 06/06/2024 05:49, 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 > > 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. Reviewed-by: James Clark