Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1423529lqm; Thu, 2 May 2024 14:35:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV/8PZSHQOVoPzj6YgFnjvHXsh2mmvujIsAt9FdecQbSyJ5pHTCnrOjjL5spIWE9Ub/iHlB50aio+TT9RG9Af1lV/3PFmzBYz0+4sfwVw== X-Google-Smtp-Source: AGHT+IHwo8/PlL9JCsNCmDnoBO4kOrDrVkWPN/1PIF/o0xRsX2EEW6fSfSEDJGN1PPEoNPSrCW0D X-Received: by 2002:ac2:4844:0:b0:51b:ce76:7813 with SMTP id 4-20020ac24844000000b0051bce767813mr690873lfy.58.1714685750632; Thu, 02 May 2024 14:35:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714685750; cv=pass; d=google.com; s=arc-20160816; b=0z9+dEoZ0T8eL9xayh5MMVQL/c/XsjMjuw20stjLfbvZRWHBYuTsjz6hACSyOmRtm4 3RiDi1lh2V7pZsiwmHRlE244utZvxEgqWWBPL3Y81byHDLRsKErvO/dpLdmC7v8clIUI 4PEY62TFne2/1vYDCxuZIZEhvtjDpFTU+AVx0tIF4mBxUPdWFU6goSaqKVdE6jECoKgl F6ZlV+FawT4Nsx91/j8jot60NJ8iUcYW4wZeEJxfarvvjYJe5B2rfJYL7Rwx6JVMYrEO sE23WUMWZugnvUDNldPWLsYWeAyqPn2x05rF8p2gKnjQqwRhtPNRJgshgnMO6+2ODjQ2 qPEg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:references:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:in-reply-to:date :dkim-signature; bh=zgV4xf5fQxiR7aZHDngtpEH48nFcBFO3YN7qW93R/WY=; fh=5ze6xczu3fCJok3ujkIxHagCFmTB7mXz2rg/nvg1nVI=; b=DdS5mkX43CFHJX7495xdTTrZODDegLtI7g1Ae5CFF7R+UyjMrSCTZNyH+34vHYSPaz P66GIh6Xl+s9T77DEe2N593pafuoeh4lF2fO62kaIRFSQHqzmUTBCAK7ma9kx0Juc9Zu bwAG8OB5Rre/pSDQZW/zcrmnhvpO11ELOPYf/8fw0squETkjytMsVxnpFuU7mQNWOdTa 5vXnNUwrZFYhZLvmfdzV8L1mcc+PPHXk6CnxVFIcJB+JohaIBqXU134FkvBspmgn18e2 Qt37Gq3YLuSGEaU16Dw18dPlZz3x5DD6ZmhLUbI0Fgl8PCWdXbZhSisDSKuWNRDbUD4j xkFw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=YKmUWmoh; 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-166944-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166944-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id nc40-20020a1709071c2800b00a58bcafa1acsi896646ejc.591.2024.05.02.14.35.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 14:35:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166944-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=YKmUWmoh; 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-166944-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166944-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 587E91F251AC for ; Thu, 2 May 2024 21:35:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D5E11A0B11; Thu, 2 May 2024 21:35:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="YKmUWmoh" Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.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 7A7301836F0 for ; Thu, 2 May 2024 21:35:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714685716; cv=none; b=GqW6BO23hToR8PJdacOnrekHRbGuT2TStqh1tkR6MC5wOIC5aWnmcCbPCzJ1iRqnbt999aRvrW7MioT1SbwHNwsNVDnNlOIWPRnezVvyTcuOlmTJYkVV4ZSiClXeyUr7beZKT3i12gnhWSdZxPGvUOhs5i3G6wQExPff2FOzbcw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714685716; c=relaxed/simple; bh=+iC8656RV+1z9SNt/rVmkZ8TfblJJXHmOmw6MoV2AOA=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Cc:Content-Type; b=UB5QuwhqByJwFvhS6VCUR5661pXAjv973BTAWVouv+EvYnIK0TiEt3lIV7N+PmZLi6sNYyWHNva0q3BAS4LQ3IxIZ/JA0tok3aoEJLbFtVr+8FAiGpYNYVS5Ur4/1rGL9ygvOdZgJXZoaAGorfy8RCBKwtGW2Jt/mRTdvBwSlZE= 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=YKmUWmoh; arc=none smtp.client-ip=209.85.219.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-yb1-f202.google.com with SMTP id 3f1490d57ef6-de60321ce6cso8326630276.1 for ; Thu, 02 May 2024 14:35:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714685714; x=1715290514; darn=vger.kernel.org; h=cc:to:from:subject:references:mime-version:message-id:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=zgV4xf5fQxiR7aZHDngtpEH48nFcBFO3YN7qW93R/WY=; b=YKmUWmohHCI3nJNqF0x0QwKfeyQLFnr3qoAF3UJwHEcseRz57D1mJvvfgXq86Ob1HM q4vP+URgT99hwigCINta0rPI4elFwXbp5HU6Pdbv6qlYxGbH7xA+fzAREWVM9bhJmocC iuQ1FKbVzV3P7Dqcy/wt25N4cJHGQ7SNWgUYj7IlKus2uyHWGMbfVfWEn9cDMWgzMKUn AGuxGXtrDjT5JTQqTyC0EnhDVqY6Y6FSsF+4nAA2kfl0gFfvTDu+OtMcjGd/7wsM53Yv fAPnF1EaXEOZl5RILKLoSn4tkmEV1IWlqw6U0EKz0z6HNwhEtzST1Th4euXyOmURNGcK DTWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714685714; x=1715290514; h=cc:to:from:subject:references:mime-version:message-id:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zgV4xf5fQxiR7aZHDngtpEH48nFcBFO3YN7qW93R/WY=; b=wki/eeZpJpw5St/d6/TlS3Pe+TrBdkkRjAYqwYJT3of2LTsnOxRwDgkuLd0NlpkPCu V+yfnmKpCeZKt693NRVw2FLpmMOJofIvfIN5XCmG0xGZ2CJ3CxnR1DfYZr2+YQfKIEQc yypU7VSgWlE/LxUACQ6NUgtraJnJSFhXGjTJnGC9Son0ZuFuug6D+LBBIAA6D3abwNgM lCzkVNAmXkJDvawFYmwAWFNyf5ZWQ8YHvJUdV5Pp/FhfPoV9NcSMWMs+bM2NW95DujvG i1/APJKfryrrxw8XAakbkUMPeng6spRGk8IVSvphzxTQCbu1jYPWnzVPZG/x7yA0ZzKM D6Cg== X-Forwarded-Encrypted: i=1; AJvYcCXvRXfPTDjewqu1xhEuQx98tg4veXZ8cr7B6cNQaHj0RFEJf6T2MIVp6QEBWrn6JLGotuZdkyO9t26CW1s6Rk8Lgpcffl1/SMXAg49x X-Gm-Message-State: AOJu0Yyao+XnfuR0XgGhUKlUtznKlV7gJ1aKqAwsMYzcmcMAnLTb4HQr FsW4NYJtazcvAsqFl1lXpS3kPasR7IhLvXR6sMkFqVrmFhd6TZcziU2hi254z5VYOWN7IgrUdag ouxN7aA== X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:deba:378d:2d3a:2641]) (user=irogers job=sendgmr) by 2002:a05:6902:1007:b0:dc6:d233:ffdd with SMTP id w7-20020a056902100700b00dc6d233ffddmr322304ybt.0.1714685714546; Thu, 02 May 2024 14:35:14 -0700 (PDT) Date: Thu, 2 May 2024 14:35:03 -0700 In-Reply-To: <20240502213507.2339733-1-irogers@google.com> Message-Id: <20240502213507.2339733-3-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240502213507.2339733-1-irogers@google.com> X-Mailer: git-send-email 2.45.0.rc1.225.g2a3ae87e7f-goog Subject: [PATCH v5 2/6] perf Document: Sysfs event names must be lower or upper case From: Ian Rogers To: Kan Liang , Thomas Richter , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Bjorn Helgaas , Jonathan Corbet , Randy Dunlap , Jing Zhang , James Clark , Ravi Bangoria , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Cc: Ian Rogers Content-Type: text/plain; charset="UTF-8" To avoid directory scans in perf it is going to be assumed that sysfs event names are either lower or upper case. Signed-off-by: Ian Rogers Reviewed-by: Kan Liang --- .../ABI/testing/sysfs-bus-event_source-devices-events | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-event_source-devices-events b/Documentation/ABI/testing/sysfs-bus-event_source-devices-events index 77de58d03822..e7efeab2ee83 100644 --- a/Documentation/ABI/testing/sysfs-bus-event_source-devices-events +++ b/Documentation/ABI/testing/sysfs-bus-event_source-devices-events @@ -37,6 +37,12 @@ Description: Per-pmu performance monitoring events specific to the running syste performance monitoring event supported by the . The name of the file is the name of the event. + As performance monitoring event names are case + insensitive in the perf tool, the perf tool only looks + for lower or upper case event names in sysfs to avoid + scanning the directory. It is therefore required the + name of the event here is either lower or upper case. + File contents: [=][,[=]]... -- 2.45.0.rc1.225.g2a3ae87e7f-goog