Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp231348imk; Sat, 2 Jul 2022 16:57:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v7roW0wkGb544hu0/vNhLJtjMa5q9CcJlUIePhj3o/RonzKnXwnhCE1+lZ0nBds17q9gk5 X-Received: by 2002:a17:90b:3b44:b0:1ec:d7a8:7528 with SMTP id ot4-20020a17090b3b4400b001ecd7a87528mr27425115pjb.231.1656806255857; Sat, 02 Jul 2022 16:57:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656806255; cv=none; d=google.com; s=arc-20160816; b=aRr05ixdgcHyl7VLFkYj4fejJLOflrvzSzCMuBs5eDSj0i+5/QXMkWT9ORPNAXAYdx guDolF5A5RdOMumj6gLTj8bw/poqltQ/vgAImtlvI/9BElw4Cc3C051y6Ep3Q93tVzAp gJtnqhwy4s18V63SIJjTuwkLi3YykOPSADTHfTjeFK0T2i3O8R1TAv/V8Z/sEpd6cX9H v3xOmrvihRt07bVxWJGXSzFgx3dR5SUWECNb6ChBbD/QvhypRp6kvmGwxgurnk3r+5wV 5B90HyGIlYTuCvQ3CdttE4t2QDPWgp0zFFFgFzSMs7lixq0lJVv74phs5jmLNg4u8OuX u5Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=Zm5xiOI3tzjPZ5dH6z84+OwIZ0P84+PXbsyPyxuxS2w=; b=RUBD1E49GY6ZzzmDMIMdOj7e7ipfD1kF6P8eK25uNOCDvCChTOwm1nt65Oo7nf/FXE 7f3h7H4SG0lK9/q6IWuJqUrwH4bZzbKY0OAM7NVGCwpy46pNrEUgUT8JAS8YjineaWx2 5OncL3JPhihNsw8INDas67lwPmvzT4V9l/H4/wsGXAXWaa+L6HVAZGKkcKrCJpxERFKw M61wtrM0BMtmBfYXunXi7DiNBUm7w5VWNOy8HfU6VnJ7wR27PYnfP5OZIB7Y5xWh/jm8 jy6/PPT50kV/b1tCIfTP4BrFUp3KK8AlLs2n5CqKzb0Crg/oPJnlSFIQNZiAWpPXLgxT 8RvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=FJWDzq2+; dkim=pass header.i=@codewreck.org header.s=2 header.b=OM1Pqoew; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codewreck.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y7-20020a170902700700b0016a1b60636fsi33729862plk.57.2022.07.02.16.57.14; Sat, 02 Jul 2022 16:57:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=FJWDzq2+; dkim=pass header.i=@codewreck.org header.s=2 header.b=OM1Pqoew; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codewreck.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229563AbiGBXvm (ORCPT + 99 others); Sat, 2 Jul 2022 19:51:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbiGBXvl (ORCPT ); Sat, 2 Jul 2022 19:51:41 -0400 Received: from nautica.notk.org (ipv6.notk.org [IPv6:2001:41d0:1:7a93::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8E87B4AB; Sat, 2 Jul 2022 16:51:39 -0700 (PDT) Received: by nautica.notk.org (Postfix, from userid 108) id 70936C01F; Sun, 3 Jul 2022 01:51:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1656805898; bh=Zm5xiOI3tzjPZ5dH6z84+OwIZ0P84+PXbsyPyxuxS2w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FJWDzq2+FWAHHGPBavPpzlQQoKg8jGGiAPOHS/YDqaDMSGb90ZB3E7r9/sWkAAGV5 ME8fn4DQJyKzE3Aso4JK/sqXKvKuZ8XeYMzeYwW/TggciXR6aa5o1jSXmPogcCoJXU d6mT7lE8uYbblb3s/pIsnIZ+BXqCTKQ8gmiEnHZbGbphikhagl5YQo1HTfKBubHCKF LsqZ5k0A592iv8RRBV1wXzX6XbYgd3S9FzARjm3su3kY7euq04fiYLiMVmYSIB0WEv MB3LTSOQoUehRxfZIoLXgZbaj92YW44GMqMP9gTRaDjMU5Y7ELvXK/vzRaMSx6555X m33uaY7Vppq+g== X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Received: from odin.codewreck.org (localhost [127.0.0.1]) by nautica.notk.org (Postfix) with ESMTPS id BE809C009; Sun, 3 Jul 2022 01:51:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1656805897; bh=Zm5xiOI3tzjPZ5dH6z84+OwIZ0P84+PXbsyPyxuxS2w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OM1PqoewUlNlwRC2XmRHT8lRxzkovhVmiMEZSmsa20jap5ziWLN8StHfoJnIIuBnj AENcu1vSRkxoyTKUHbveKhDqqeDvO1H4vfmTX0DSugL2Lk3gBc3moRkiLrmnZDSIc6 spLUJuVIIqYIJpw1SZGodxOm5ZxS94fTGQezuR4CUr/tIBlMXFmDhyHHqJinT3djMX 5KNGx5p8o0/YNo1sprdyqttUOV4PTwHZ/m2jTAe2DtLswwzSj2CXP4XRohOPHLokwd 5ggqwqntabIxuxthKL0TMsVRHNX8e0MuLqop4+UYky31R8fp5w1Xm0dZzwPTNg4o1S 5maJ/DlRk6QAA== Received: from localhost (odin.codewreck.org [local]) by odin.codewreck.org (OpenSMTPD) with ESMTPA id 9729a9d2; Sat, 2 Jul 2022 23:51:30 +0000 (UTC) Date: Sun, 3 Jul 2022 08:51:14 +0900 From: Dominique Martinet To: Jiri Olsa Cc: Arnaldo Carvalho de Melo , Ian Rogers , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Namhyung Kim , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf parse: Allow names to start with digits Message-ID: References: <20220612061508.1449636-1-asmadeus@codewreck.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jiri Olsa wrote on Sat, Jul 02, 2022 at 05:48:03PM +0200: > > > > -name [a-zA-Z_*?\[\]][a-zA-Z0-9_*?.\[\]!]* > > > > +name [a-zA-Z0-9_*?\[\]][a-zA-Z0-9_*?.\[\]!]* > > I thought it'd clash with events like cpu/event=3/, > but lexer check numbers first, so we're fine there > > it smells like it could break some events, but I couldn't > find any case of that > > could you please at least add tests to tests/parse-events.c > for such case? hmm, I'd love to but on my system I have no events that start with a number unless I manually modprobe 9pnet (or 802154 stuff), so tests would start failing for most people and I don't think we want that... I have confirmed the following 'perf test "event parsing"' works iff patch is applied and 9pnet loaded: ---- diff --git a/tools/perf/tests/parse-events.c b/tools/perf/tests/parse-events.c index 459afdb256a1..3d069fe9eb79 100644 --- a/tools/perf/tests/parse-events.c +++ b/tools/perf/tests/parse-events.c @@ -1941,6 +1941,11 @@ static const struct evlist_test test__events[] = { .check = test__exclusive_group, /* 7 */ }, + { + .name = "9p:9p_client_req", + .check = test__checkevent_tracepoint, + /* 8 */ + }, }; static const struct evlist_test test__events_pmu[] = { ---- not sure if there'd be any other way of testing, there's nothing else in 'perf list' that starts with a number. -- Dominique