Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1595736lqa; Mon, 29 Apr 2024 13:04:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUUcmSqSWsvMcDllciZwarlLje8IBJ3I0Pbr73+FfADR4yh/JqMIcN/VJbK8sf5HCthuV70+tj88nFETByT8Utdyuse2gNIc5uwf32FXQ== X-Google-Smtp-Source: AGHT+IGGdGik0/z7ooTp1/PKMCDlcmW8YSvkGbxPqwXdSIKsUEOO83oUDbAdbRIP/ODtPzEMa6jA X-Received: by 2002:a05:6a00:895:b0:6e7:8322:ff8e with SMTP id q21-20020a056a00089500b006e78322ff8emr14823435pfj.30.1714421051508; Mon, 29 Apr 2024 13:04:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714421051; cv=pass; d=google.com; s=arc-20160816; b=dlMgu+NDLZeiWIxC6NU+S2qcX1okf+Y/mRX9r1KmukFXcaNE82cDjCFWojzYKuiu1A 7d5fw6SQfMyogkcnx4Yq50Tu9HS0c11gE9dL+bY1j2qtjExLNu1RpG+F36WQha41E1nn NZNbjhegWs4Xui0QTMpI99CorlogL86N1xi6zg/ReYN89lySIJSpcRUzqqoG38dRgDtT XzLD5Ljxj1D5VDb0iaDjvnOlTacqk/WeGIBID8IpoT9pzXTPcFEFH5N0/kN2IpP2rLxe X2R++XKH1biE+5nC5pq6D9G1pkzBIsyiWtR/nyfXf5cxxQsbLCtOopAvOQ54MmzMYG3f 3S5g== 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=PG3MsFbzKXuMYVhzdetV6dfQOniDDSPTL8GyKyGGWq0=; fh=aaUDYkxdtsrmndh4UzZeoWvjAjQAQa5jYZ02DCsQdmg=; b=s0fpS51Nt8txu7UnNkfntCGjSBSCmnViVYC4koXx8tSNaLryUlN1FC4qB0e07iqvO+ yGeW4LHsmNMNVlTHFV2oFVWVsXcwnoSODdYnfpNWYlY79ZqmLh+FYw6IMR/vdlWA+pzh 01T2an7pCxsi8e3xACUOuEGydGMatmoJwyq7EHC2HYblQQPOjjeciW8tAV4ZbJpsTsg5 mTq/AgDhNopibGe6oF03TvE340TegU8Vfkre0sSkJZJ+rat3yC53AspL9zPAAN6bTY91 pZgfxZi22eUUA58EDPY2EviA+deJ8gBy7c+AUcQwFNNNs/Lzv+d+U0xR3iPnUKFR7NoA WKog==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=ovhFGgAX; 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-162989-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162989-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 z5-20020aa78885000000b006ead466f3d9si21324680pfe.18.2024.04.29.13.04.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 13:04:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162989-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=ovhFGgAX; 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-162989-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162989-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 B3286283BA1 for ; Mon, 29 Apr 2024 20:03:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0978B140E5B; Mon, 29 Apr 2024 20:02:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ovhFGgAX" 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 D57371420C8 for ; Mon, 29 Apr 2024 20:02:43 +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=1714420965; cv=none; b=Cvs2yj1LvLMn7JOz0GmTjb8k1n/7JO+ydb9ORUodoP1W37O6OtoZm5uY4Sb0ZQOD7y2/1nJp/742DC77UfIB96zEL0YQ8xdD2dOZknGx3XtE0K3NSVSyJMjR0L+/zevWGpKsnKCrh3X3ljMCl6Hg/xanSubqLJWsUXUtKBvxXNs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714420965; c=relaxed/simple; bh=r6Q0nzWd1ZDsObAExwG1cgxL3ocuqsKb/0LPlEHr6oo=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Cc:Content-Type; b=L0Yb6u5ABQfMbDvcwsLw5362jnbKoV5DpxyL6PAqz4WDiagScZdb7BbC8jDitNpDGJHLuIEgnCyGgwqu2IgRpAjyHcgrnz4TPC1GTbj6zAdTzbN1hTy/xvTaWIDSK7N6pQif71vgQfvcu0JuNornDNsTp3LO2BakdzBuud8kjz0= 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=ovhFGgAX; 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-de5a8638579so5807653276.1 for ; Mon, 29 Apr 2024 13:02:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714420963; x=1715025763; 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=PG3MsFbzKXuMYVhzdetV6dfQOniDDSPTL8GyKyGGWq0=; b=ovhFGgAX6TmrLu2MF3CS/BJ0x3w+AdBj1m/zWBec2ruFTX1dXO4KnoA+pwOzYoWhmS DF5YSp4VFwW/FmgBbREGuLN0fsFahJPpBINbOnFEo0AMeOt+Hpez2STWWp2lhOWNU18D wpjaDMvwyrgdDwbrEXMVEIFNh5fLbn7R2ZHmUIzbolPY6uYFgpfKFX9UA5rskDIoJguq pkKuXUQrIMR3dU3RlQ+fmj6CdHtUWOuzVx5HBV7lk6mO5A9W0xt5UqeIOhFw5YWBPjP+ SOnhGvXxyI4dTx6q7KCmjMymXiUiObvMu+UAzUarLdnnZ7Ks1v9PktLxiwd+C9H32Eyo LNOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714420963; x=1715025763; 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=PG3MsFbzKXuMYVhzdetV6dfQOniDDSPTL8GyKyGGWq0=; b=pwCvt1XQ3UD/VvDI/8WDL0OsWaUp9smbt0i8+J+vXWo0J+8ZVV2mFfEJ6ZUdZmrebD rWYg3pJGfojbAGn/+QwyQ4MEgSM6ZbatIVUj4Lr7fonPV7oBwn9f5Kt9AwZL8T9LFZXs 3lGBifm7E8in0jEk7pXmQKaq1FC1VId7ZK9QlyFh5M72t6mzOThRadDYoaMYA2/gICoQ L61YUXz9ntr0rqPFiymiCJgyyY2qQ6j2hyVfMzhP0wi7w/Al8wflVywV3lM6eXDPkmkY qX7vBpAynrGerh82dAz4Sjx+MGrOGOak3ApULY93/zKluYO1S1YrPjn2ZkNRPIUteFTh tyoA== X-Forwarded-Encrypted: i=1; AJvYcCWHrclO3co2TXm9A8B7V8+xLNTCsweeOntDic7JkjHXFdPdqu/EHpbXEjT4Zeyg5EtqZ0LhgygNscXO3fgaSDS5wfSNu2nEJtRN3qg9 X-Gm-Message-State: AOJu0Yw/OevF541lrsyCcwnMXeRn6VyZmj1a7ggXYCAsTNITjmxR9750 bIFWJ9LYKb8EvgKdMO1FCeSeMD7LXbP+ssEIawGGlb4SMoHzWHeNjfl3uVS493k3WzC1usiHnjc 8/Foz2g== X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:c137:aa10:25e1:8f1e]) (user=irogers job=sendgmr) by 2002:a25:ea44:0:b0:de5:53f2:f614 with SMTP id o4-20020a25ea44000000b00de553f2f614mr66567ybe.12.1714420962772; Mon, 29 Apr 2024 13:02:42 -0700 (PDT) Date: Mon, 29 Apr 2024 13:02:21 -0700 In-Reply-To: <20240429200225.1271876-1-irogers@google.com> Message-Id: <20240429200225.1271876-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: <20240429200225.1271876-1-irogers@google.com> X-Mailer: git-send-email 2.44.0.769.g3c40516874-goog Subject: [PATCH v3 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 --- .../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.44.0.769.g3c40516874-goog