From nobody Wed Dec 17 23:33:35 2025 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="YKmUWmoh" 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-Google-Smtp-Source: AGHT+IEXj+L7mG/mFxFwq34rU15M9trIcDqflnvzeDMxWFJfivTAbhdOHNL6yQyts7hcKK3NVMlyQZ6Ci0F9 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-Transfer-Encoding: quoted-printable 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-event= s 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 speci= fic to the running syste performance monitoring event supported by the . The name of the file is the name of the event. =20 + 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: =20 [=3D][,[=3D]]... --=20 2.45.0.rc1.225.g2a3ae87e7f-goog