Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp888404lqm; Wed, 1 May 2024 21:02:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXjQSYfVZo7HUq/kh/XjzbleFg5nZyeSwWwLo9GH1aWRee6yPx4pSptwkvSS2xa6XbjmY8uhtwX58l0Ihjy0Rv1C9DkcwtMfdT2+3NpmA== X-Google-Smtp-Source: AGHT+IGcZ6vdbPSbeqE3ADJ0XTKB7WUETRcrhZITxowe87R2QTihLczSyYjSPuwNDV7s4HSqFVuP X-Received: by 2002:a05:6358:7205:b0:18e:7a94:2bd4 with SMTP id h5-20020a056358720500b0018e7a942bd4mr5971691rwa.10.1714622531587; Wed, 01 May 2024 21:02:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714622531; cv=pass; d=google.com; s=arc-20160816; b=RMze/mkJIhIWWo0BTlxobljjgOcaCG0j2iu9cvuBmErEy2bgfiQZzw/6LKjTN1AGVP 1cENWuH0b/z2c4mEz/S8Fk+GdEdP3k3BgfU2X0YBt3L+sS06/TP5FQNtDSAfVYniuPvw FcjahTVnxw92wKdMmXnj8IT/GmDpR+Sv35Gg59qyssQunZQtLhQbwzAJWFBNcmm+Usm4 WDbPo0X5c1ixeyKnLBIjHgsLCd/Ju+WG5qrJFpbm+50woiRHxJQZDAzqvksWj5Kgn40n lzAtv4xnXjUN/2wXM0h3HGmdB6Jidy9tYZD7SZ9RJNWW4/2MoRZ7E1lusxFvgBCvVi6k +x4g== 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=YK4M7DhO5mIJIFP1QifUvK0BbiOYwnyjSGyXVIhqvoc=; fh=ANcNoTGNv8U85QDUAqSAeWnCfRswUMy+fh9r3Ucwq5w=; b=Km8AISn58TrhL4eG+Ma0IxrycyEaaf3Kj1oFt0/pW+AiWYlkMxxUzVpokO+JEkBir1 lrnXQ0Lp28o4oOIK/sCJuYMPZvkyPpcGGrQJBspgcA8Gw1GtnT+2bI/4gZPWpqQOQI8K PcKLaB61yzfYfndiMm6HFaZNXbnuyR7C+7dPJ3tKEE01CnzIDDU9rDx+IRmTT5jsxENp AlB10A0DxB9OL0h0Ckz35DjTxiXOskxNbv9NsnRVIr1fqVFQaJa5fRWBLcHXe4cMAeMg BQDmI192OaAz3hy2CNbSn2XsPQTg+FA7L8N+B9pllJ2ittyiFjhd8BElYoOzxkFnRORv BH/g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=eURM4FrN; 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-165952-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165952-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. [139.178.88.99]) by mx.google.com with ESMTPS id c8-20020a637248000000b00604b94711besi236485pgn.43.2024.05.01.21.02.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 21:02:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165952-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=eURM4FrN; 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-165952-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165952-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 9D8042841C6 for ; Thu, 2 May 2024 04:02:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BEF84200AE; Thu, 2 May 2024 04:01:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="eURM4FrN" 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 9B6801CD02 for ; Thu, 2 May 2024 04:01:36 +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=1714622498; cv=none; b=VD0qiyhC+BIbFOTHjOyCSx3DCjdEV/JgVbdsrXZmu+D+rRRG5yXrT8itOsB4XGFc/MLwWYiT/OF2v+a5vEsFA2sbPCqpH1qVuE1QycV6NovAgT+yRsF2fpIi0aravaFm3zvpJ9J42ZpHEQTR72QAZFxbFqE1SeifPK72m69LM+s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714622498; c=relaxed/simple; bh=RiQ3QH8Mevr7c85qmwqOFnFf8n7v8w8+896FGDtfLBk=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Cc:Content-Type; b=MhuDEMjt/EuxkTAYafQnSqmM/wkI3JEDE0NcQqpJgRoahPhV03HHefV8eAiZjisa3mf1RiHQ3Ez8ScKGYjUCoAhhXRUKngVj9BNL6i8QYAHcM3Az2ROKBL4kwqzk42uWEUl60FbHLKO+3hF1Nyi7VH3aUjKTAKJr935m2V4zHEE= 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=eURM4FrN; 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-de8b66d59f7so609286276.0 for ; Wed, 01 May 2024 21:01:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714622496; x=1715227296; 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=YK4M7DhO5mIJIFP1QifUvK0BbiOYwnyjSGyXVIhqvoc=; b=eURM4FrNL+rV5M5jGHtUmXebIP7s+6tV09lWMhLoOkB5oUe95jtHIZhHMSF8rOC/8a p3p61sV/fol1XY16MrcNf7uho3djCk7BMFxJD9NURm7ZeyJslSVg3clElCdP7BA1PKpb q/EaOwEOebVpdRdd+MADbQDCFdLY1wkQyjelDg9QE5jJjLu5dLFVBvWLZG8RJnsPw4Cz 8fd16JwLyVvPf7TI7gbTZh1D/BaAE8Pja7WogT838qlIu/KpbLrCPR6Bo30gxpHh4cQ3 c231EHottefKA5ZI0qvAFh/gg5k0AGs6JCovnszhmAjsW4nOGh7/S5HuDAMEN7CJXX0m 3H1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714622496; x=1715227296; 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=YK4M7DhO5mIJIFP1QifUvK0BbiOYwnyjSGyXVIhqvoc=; b=YTyEiVPxPArdN/f0dzUO0K7ZgxmYt/LCvd0Hf82xlNA4uI/CBXgOBrF3/5fRbcirCn 1RjCplaEbznvSm7239LIxmK4GCAOiF6g84f71z4xCCooEz7xjkJaYWr/xQoc1dtL+WGg OFRxElF2nyhImZNQ63D6dVHoasHYqRLY4QwS6MeThTlfSHs3uAvHTYI180OK8Gs0P5vw /6MH4tjTyqYlK0Lezj8lekBOuaPMrgk6pHqcJfJd+zaJRO8gaXXTDkPjmBeNMeVcDEHa L0OEySh3gVnVza9SBHtvE8YF7NR9IqG485Avni82CFLRSzclp6L+2kfxZHZTaGuD5hs8 ObFw== X-Forwarded-Encrypted: i=1; AJvYcCWtRl/G8spNLBElRRNELNu+zOG/6yajqT4n+N/JoVCMUgprm+8pI/TvpEU34iz0HONIMXb+6dU8/c6Hgg4gpKJ6Q8VzU8mQNgeypR1M X-Gm-Message-State: AOJu0YziQGz9keoQlPUBUirLr7X4fmwndm7c/BojCbE5LFXnoXSJDopA QbDV/TtJKapW4RhQaQEnq+w98wrU2NZU/fVTkO/fArcrxn1gocFN1iF1k01DqK5PS3vSOfD6uOH 59wCcRg== X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:53b9:bbda:1daa:17d3]) (user=irogers job=sendgmr) by 2002:a05:6902:100a:b0:dd9:2782:d1c6 with SMTP id w10-20020a056902100a00b00dd92782d1c6mr419962ybt.1.1714622495773; Wed, 01 May 2024 21:01:35 -0700 (PDT) Date: Wed, 1 May 2024 21:01:08 -0700 In-Reply-To: <20240502040112.2111157-1-irogers@google.com> Message-Id: <20240502040112.2111157-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: <20240502040112.2111157-1-irogers@google.com> X-Mailer: git-send-email 2.45.0.rc0.197.gbae5840b3b-goog Subject: [PATCH v4 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.45.0.rc0.197.gbae5840b3b-goog