Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2255939lqo; Mon, 13 May 2024 12:24:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVRD7cDTEoh74LEnzcRGtYY5geJSfMMDiAbvNj4Ckn4q5aORQWL1oD9WpNzfKFrD264j4m6/w6y7jRfMcJAzvo1j5Q1dWtemL/caEIS0w== X-Google-Smtp-Source: AGHT+IGfdsM7eVVpu4bpaE0kMn9RbnGWsNKWqdw/IiGh07msZKZoJfjuFOHtzfi6aIaujAKOsQw5 X-Received: by 2002:a05:622a:316:b0:43d:85ae:bf2 with SMTP id d75a77b69052e-43dfdaabf82mr130544131cf.21.1715628291836; Mon, 13 May 2024 12:24:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715628291; cv=pass; d=google.com; s=arc-20160816; b=ybGtF+QcgCwEmAF8Av9gybggw/cC7vu7hShjvIcjjHa4eqYobCpDSUTjZlnL8ag10z 1vebUJZjKUqpRX0F+n3zHCOL5xVUNCwwgZ40aNFRDREQDalQoNLaaVkd7+ldON9LM9jj jv6hdQhNGTnCeo83UmsISlwIKnUyUe74wk+vmlWkXSHBfjcFt7H8MRoOluU9gPwZt9xc jsj2qARp1hZD7iQpwrlAgfsmJaVS5NmpNAPK/38INGg4ysfhFoXr+TtCdFL2lKFZfElC bRHiuNqQjGc7Fi4pIkXPwQbTAvPOvPdh5mke9X0FiX2/7B7vBpY99QK6X/uqgyxVMNmt FjGg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=G5NpfL0YPCY6XSoxrEaLMX3Ip4IV4/bg/nVptU+9HTc=; fh=EoBlOtzQjg6z1a8blKsJGPfhd/RaREcPofJ8iyg3t38=; b=h9Raa5v1NT8SYhqMz8rH45xDujSZ7Rre3q2jGwIFHP/W0aYnavYtLlHIQGVpTx68dW 7ImTDr0P67hXHmm/+cHkLFBFHCfSaweyupd+Bak7/oC58IpgBmUjW50APthxKqC8GNxh tk/Ht9+kmgFg+xxXENFMmNdHK6laAtYDmePSF5Y0l0wzbp4Q0Zglt2HNxUVAZoQEmjlR z2b8F8/Jh3K2RDxTYqydyNrdZnzACI7+KQfQdUwV7pM3wMRx09FhtN2Nw3LmGdkTTxp8 PQGbYI/aH9/yX+yrN3fS+jF3a6SQAe8z0MOAuvSnM23IQo8LO8s8B3XehTdV3fiYOzLv rVKg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=JoD8gseo; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-178016-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178016-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43e0b32e1dbsi57680361cf.340.2024.05.13.12.24.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 12:24:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178016-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=JoD8gseo; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-178016-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178016-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7BF281C2133A for ; Mon, 13 May 2024 19:24:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E817054656; Mon, 13 May 2024 19:24:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="JoD8gseo" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 841081BDD0; Mon, 13 May 2024 19:24:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715628283; cv=none; b=sDt67VsYSYJ62i/8XViVaikuxMDkiDOhsNpY7vizAwbKnbR0ScW8GSj8XrJumsqF0vaV4ufuPR1lKP8Oi3EA7FjtiglEdOv4rvWKo9TxWu4bIyWEEkbqV6Cvt3qxUg/ikPuv5IO8ozg54LB90qJwgb2nZRz0V2M+5FQBk1obxl8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715628283; c=relaxed/simple; bh=dPMmvsODoZpZ/NxdG44eRfZIG7IUKN1u9ef09sZyJK4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GioWSBp2ce5z6lRkciyg26ANvMUY8D8dZCnkCKM0WhZ+H69+njsHADwoai0JzY7U+rv8v6QciDqntRQ6E3Z7yJOz0syt60/McpRf/nxkQJ9K6Tq7mOS1eiCaovZx2PiyvNs2fyGEa54KX3FFGH/3EVjMhzxhfnOgk6I7ODqPq/A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=JoD8gseo; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=G5NpfL0YPCY6XSoxrEaLMX3Ip4IV4/bg/nVptU+9HTc=; b=JoD8gseoZrX4t4KmkMwJ605UGy /Vc+qDsB9mjaLtpb3QDmGMDAL3GjascOMT6kMYvm2MwQJU+EFPoCIYn2U2btKXNLgZHQN1jhFYJXC ZyMIh4/7BtNCGYFwLhOy9/MTlqzluaSbgQGwyQuD1MxUGtS5uy3/DzeWaUDPl5Wyt0VHaYIEv/+FC pz6rTp0xeVs12YtuosrIylB/WwWNvk2MgYPeNr2EndtNipl0KV/YnTgZ8P8l2+dN4GZEL5Eqndeiv 6p+T8MioSy80h/5jXY25EzrIbXFdRwvooJrEQ6zu1RQUyXv5xVovw2Wsi33XKTgB4raD4Y3iRoc+M qqWyWtSA==; Received: from [50.53.4.147] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1s6bHs-0000000DzZw-0xfo; Mon, 13 May 2024 19:24:40 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Kan Liang , Ian Rogers , Arnaldo Carvalho de Melo , linux-perf-users@vger.kernel.org Subject: [PATCH] perf Documentation: clarify sysfs event names characters Date: Mon, 13 May 2024 12:24:39 -0700 Message-ID: <20240513192439.18473-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.45.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Specify that perf event names in sysfs must not contain mixed lower and upper case characters and that they may contain numbers, ".", "_", or "-" as well. Fixes: 785623ee855e ("perf Document: Sysfs event names must be lower or upper case") Signed-off-by: Randy Dunlap Cc: Kan Liang Cc: Ian Rogers Cc: Arnaldo Carvalho de Melo Cc: linux-perf-users@vger.kernel.org --- Documentation/ABI/testing/sysfs-bus-event_source-devices-events | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff -- a/Documentation/ABI/testing/sysfs-bus-event_source-devices-events b/Documentation/ABI/testing/sysfs-bus-event_source-devices-events --- a/Documentation/ABI/testing/sysfs-bus-event_source-devices-events +++ b/Documentation/ABI/testing/sysfs-bus-event_source-devices-events @@ -37,11 +37,13 @@ Description: Per-pmu performance monitor 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 + As performance monitoring event names are case insensitive + in the perf tool, the perf tool only looks for all lower + case or all 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. + name of the event here is either completely lower or upper + case, with no mixed-case characters. Numbers, '.', '_', and + '-' are also allowed. File contents: