Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp147062lqt; Wed, 5 Jun 2024 21:50:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUE87DvWKlGEllJXhJAoVClbZbYXcVRQT/7HJMDbVWfwNNU04kMQRh0pu9+CKCgKXv4APg3LtVf+Z6ZYUu8i9NCSLArfAUpLfE9EL44jA== X-Google-Smtp-Source: AGHT+IEAAMn7jahyVJXajYU2Vzigrra7YY0oAXpZKGaDMuI5VttPkAQ54Sq+TSHUhUvjTN6Flvy4 X-Received: by 2002:a05:6a20:244d:b0:1af:cdc5:dfbe with SMTP id adf61e73a8af0-1b2b6ec65f0mr5881743637.15.1717649438759; Wed, 05 Jun 2024 21:50:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717649438; cv=pass; d=google.com; s=arc-20160816; b=zpEq1Y4wHWk8LJr0ixBseVQabaqO5SI78OyXa24u+9kctPTd5+8cyF4Afir08jwIHi 3w7sYjJce6rzotHOLsCvvvaFUnsyQWYYjUzfQmqje+h9EKwE6z7xbmrlE+f9WjHDM8oW ASjIocyOKGCuShkToXS1TBaV/AsU0pCBj38/0VzHLxI2oIQd4iV2BzxttV6BDsX2MkMD 72tlhS3UG3J3VZF8FJBRoI0XNucun2aGcyt9o3Q8SwjqssYLAEZqUCaCME3N2ILTMmdf BUDG3dXNmDIg/HD/u1hR5CuNdWQcfb8DJcAgKgYijs9e7CqN0S1DIo9FC7GJrabm4B4j N+SQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:date:dkim-signature; bh=sU/hwIG64bV5IWEExdmUt3ZFDG1ToaRtz2uIVfkz1z8=; fh=eMpufMklolvi9hbM8JS2OMmsPaxLzqx4VGC4IwqtZ/Y=; b=ptaeRH70iO3JgitFb2lQyfnoATUeLr1My8QBTgFiKsNfQaoIaOSXjGz/Pn9hqv5SU5 sEkXguVA8pJQqLon6DcF/bZHQBt/qJPr+UDBQJLwm+op5jRQUfM/EFqUmfx/FZwW5ntA 55clWkq2l61OyQDOLLEVkZnLTctsNR5k7+Co800kSUdSSF/xvcSQhGbYomoFNAiNKiko amiaz2Yw4cMhufSCDnV6vS7litQ/Kb7YMVMnsiGLH1KkALqTwbiKdN0Tw51G5Hea8+Co AKBBlbYrzoCM4MAcNNeHYUxr2zMullqPac4WP23TlTtbxJ8mD6o2+qjUxsBDjiVrB2v0 EIkQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=wmimBJ7f; arc=pass (i=1 spf=pass spfdomain=flex--irogers.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-203611-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203611-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-703fd3af590si466557b3a.114.2024.06.05.21.50.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 21:50:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203611-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=wmimBJ7f; arc=pass (i=1 spf=pass spfdomain=flex--irogers.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-203611-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203611-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6014D28506E for ; Thu, 6 Jun 2024 04:50:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8E1E529415; Thu, 6 Jun 2024 04:50:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="wmimBJ7f" Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 50FEC1EB48 for ; Thu, 6 Jun 2024 04:50:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717649431; cv=none; b=XEix1cd2RjqLpuEnQM4Jhd/eERPk/4DgUjs+os5wHzWWC8vzCAUac0WqBf6+NGxMn9OQbLwJTZ6AlmWEfKMrwdzUcdaDwO/wQXKMsmw1MWFnBWdgCEXidWFQK0658V0EqWNcBFdw5hEdxlbE6z2mi/FxxuNIezH53+QsLPQr1hw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717649431; c=relaxed/simple; bh=US+QMTUc3wd/lRECrzRRq/Jrw2igRhAZggK2xtNfDeY=; h=Date:Message-Id:Mime-Version:Subject:From:To:Content-Type; b=lQ/e02c4JxsbaEo/GpZdzq8XXzKb6Umd28rLktojOPHpHxgXExPbFT2VGInWUgqhlegumkvRL1apU66BFu/La2rS8iPaodhDE3iSafRUup+0TrAMPjSZfF68McFYWWWLa/J+Ee4eEZw13q9P8SdioECQfH26Lu5j8YaM+kBZWd8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=wmimBJ7f; arc=none smtp.client-ip=209.85.128.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-62a2aec8521so8634607b3.0 for ; Wed, 05 Jun 2024 21:50:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1717649429; x=1718254229; darn=vger.kernel.org; h=to:from:subject:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=sU/hwIG64bV5IWEExdmUt3ZFDG1ToaRtz2uIVfkz1z8=; b=wmimBJ7fLk5+f1TRLT+Lo+L18enf0LdIMzDnAOu0l0KOdsIYGFD7Ri4TTe+HMD1gGp IRDrtzp4m+77BczAgZg5Cl9EM7EfIankbNEdQBmDHnbJ1maCM1dk8klE2XJiRWsaFa8E mSynZjTse3NBZ+5+MCjekBed/yDMpbxN8ifpa57u8uZKWZG7CPvBdW08xbjuB5hKTR6k dVGcILF3nEgFc1HeffEFpKyB7rxvJ87e2M2o3nFn4froxee2VeMrMMJq+HNpMwdtP/9c abgthRPK1dCvFD3iitDEAU1jNJXL6BREya58PUtDjBEAggXgbDJ41qYBJ7P58L0k12iN 1y7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717649429; x=1718254229; h=to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=sU/hwIG64bV5IWEExdmUt3ZFDG1ToaRtz2uIVfkz1z8=; b=JrnecNBdfSlbAdvckwRfPfZ/XM+LVhxMX0770THBoHLDu4C1UJyGecrfDJCrGS6FHe WyJ3U9iHKNL4bsCwZq4n1FG2BPIOkT0jEiEzAKuYWN57aODqR3qnYcdo4xMxXwWDzXFQ SSr2JOhXyUeBdZmv+farmPKTG82JBpZl90gawscM3gKOjoIr6wEPBWiq4NeyZIrfUOIu gA15ZJtEoWrtsyFkVgTahDO1N5HrONuby76zVZbIcssNiKCU7cfk6XkBG38Aw3aEBm9K TbkmW1SZQGKrkQMI6lPrmDRg9D1DdfdUzYN0TEUBKTXMD9HhhrfIij5G1exFBXmvVG0B gpwQ== X-Forwarded-Encrypted: i=1; AJvYcCWxlE7u0v8rRGBX8JVs0mead2mFMxHPirgHu4ic7VkTF1PEC38s/eyCpQRWUAP9RaZVhRWbKbh2/mbLdGanZPEU2OKHK5Hr5BWligEW X-Gm-Message-State: AOJu0Yy1e04+UuQIt7V9Dgjh/Y8moGJTmCqrSlVIJVPYeKjWUN1rAC+M mu2F5OBc6PVHNG5BlGaPIUfA6QA5oS1ZSHtdch5OKgZQipLgzytE9J8Eui4UnFfF5w+aMkeM0DO I3Rn2dA== X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:86ae:b6a7:27de:e7df]) (user=irogers job=sendgmr) by 2002:a05:690c:6604:b0:61b:ec22:8666 with SMTP id 00721157ae682-62cbb309e50mr12877617b3.0.1717649429253; Wed, 05 Jun 2024 21:50:29 -0700 (PDT) Date: Wed, 5 Jun 2024 21:49:59 -0700 Message-Id: <20240606044959.335715-1-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.45.1.467.gbab1589fc0-goog Subject: [RFC PATCH v2] perf Documentation: Describe the PMU naming convention From: Ian Rogers To: 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 , Ian Rogers , Adrian Hunter , Kan Liang , James Clark , Ravi Bangoria , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Will Deacon , Stephane Eranian Content-Type: text/plain; charset="UTF-8" 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. -- 2.45.1.467.gbab1589fc0-goog