Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp258900rwi; Sun, 9 Oct 2022 23:03:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5IO+RZe6Rjeueyv03kgGAAKzO63nYgcSFcwSobfMNXHijoe3ul1Xb/hR1kruIzc9Mi4Bk9 X-Received: by 2002:a05:6402:190f:b0:45b:d959:e2ae with SMTP id e15-20020a056402190f00b0045bd959e2aemr8485211edz.187.1665381807373; Sun, 09 Oct 2022 23:03:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665381807; cv=none; d=google.com; s=arc-20160816; b=BdhxEfCCtUvrgwDTWt5/kgM0plPipnCXt/HTGP/h4jI5qI6lo14lZAzLiadCx1Lpyg Hje22HSn9/i5+yitcJMgl9PdHodARAdQwuP0cH/svDttOFknZBAa1/ljCQeico9PT1xr ekMVDEnUZWfXjPbi64uID+m7EvmJB3BV07YvvcjiSaYzu2q2ATzXKrjrVtIfUX+LOlkT dR7dOHGzAMQhpOoo4y2xspA6JK6sYmoRdU7y1NJyB3GDVYfpQP3d5ad46BC97B3rNfQK 4be2D9uFTXMNvOhFHXiEhpUsyxR077v1BuE44JZxvvcoLGmVbZq4yiccMKVbTCwbCifc VG2g== 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 :message-id:subject:cc:to:from:date:dkim-signature:dkim-signature; bh=H3f6zoTlgCXWKuinDdyMvbb46LHLZXiKju7XvZ3MtXk=; b=b+9EYkuztOxzMmp9xCEa45NRewBMkFYW7L9XyBGn2A/55YH5XRaQlVOlR1dLw+Uy/p y12FWwhWILnq1jmScAYQgZuR6n3zH+SU2JtVI6X85QZSK2WEWTSKjQjQDPIyB5egqeDA wWVIdmDhQJEvy54dhhpZc8E9i4bDwSpH337r+LkGO2MdFq28ht2cT8NqYbppMhxVZ4BQ IMKpbW1NS4Us3pPGhQJqsyQ9AtT9Dv3Oo3TC0amkvZKF3zK60UJi4H4C7AcxJSnM46Sx woUv9VFOq3Gt15DB/LO1+qyRhipERf0i/ab29q9V7lxRWAVYMVhOUQsAvRLXLf32uwco dXpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=JmxoPmPP; dkim=pass header.i=@codewreck.org header.s=2 header.b="tF8Wsw/s"; 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 xa3-20020a170906fd8300b00781df60a2c8si10704170ejb.342.2022.10.09.23.02.48; Sun, 09 Oct 2022 23:03:27 -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=JmxoPmPP; dkim=pass header.i=@codewreck.org header.s=2 header.b="tF8Wsw/s"; 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 S231143AbiJJFkp (ORCPT + 99 others); Mon, 10 Oct 2022 01:40:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231428AbiJJFk1 (ORCPT ); Mon, 10 Oct 2022 01:40:27 -0400 Received: from nautica.notk.org (ipv6.notk.org [IPv6:2001:41d0:1:7a93::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04CDF53027; Sun, 9 Oct 2022 22:40:10 -0700 (PDT) Received: by nautica.notk.org (Postfix, from userid 108) id 908F7C01F; Mon, 10 Oct 2022 07:39:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1665380356; bh=H3f6zoTlgCXWKuinDdyMvbb46LHLZXiKju7XvZ3MtXk=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=JmxoPmPPd0AtI0VH+O9x/OXkckFDch5vib6DTgzyPF9S1+rAJdotDTSG5rBrFRWgl cmQ8/K66lgouW6U+cMbHNgbWywk8mGpw8rAyNKA2uTGgK5LBQYEMXEsoH57CqlR9nY +fxdnDeRCQSjqykb9Ia5ctiHcpHB9hxhY36cWxjI+8D5I8zJyb2MTLyEa8hqV3f5/R Y02nPIUa4ePobbZuDYW0oXeyCIYRYWBx4m21pI2rIBXw8+KOxKJvdEJ42J7YPvDlRA lAvuS7L0augMrHT40GqKIM2PLVP2nnCAz0JzTtvpjlq851zCRdKv8vzrzSPF49ogRI aVCUlIO8S+Y7A== 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 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 8E529C009; Mon, 10 Oct 2022 07:39:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1665380355; bh=H3f6zoTlgCXWKuinDdyMvbb46LHLZXiKju7XvZ3MtXk=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=tF8Wsw/sswfvgYgTTwi6kZquMBcnz1mfpURreyJgkrU6yV7/dzvTvLK5vMFByvuI+ Hfgr4jpKPORH/XuofaikqIIYBVbelFwkjOaJGXA/2iE2lV9j5XjKF3bDU5BQgYhSJd JD3dR4/dffMDmdP9bcmJiM5vTi4JH1G0O3+WkUz1ZkN7OhF2V73Z3JVPpt+1pdJrTo Ij8HXR6Tv3pra6aQcZXeKgR2X3vFGeGPLYybNLnbvrdvNiEjOOODBir5mYZF8EPieW SWcDApBaWL02RfwUeTKgyBuYqzY7azSqJCv3V2dD/VUN6NekPtrDwdxsoghK+flTsm S+u1r95/JuvJw== Received: from localhost (odin.codewreck.org [local]) by odin.codewreck.org (OpenSMTPD) with ESMTPA id 0b55c371; Mon, 10 Oct 2022 05:39:09 +0000 (UTC) Date: Mon, 10 Oct 2022 14:38:54 +0900 From: Dominique Martinet To: Jiri Olsa , Ian Rogers Cc: Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Namhyung Kim , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Olsa Subject: Re: [PATCH] perf parse: Allow names to start with digits Message-ID: 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 Hi Jiri, Ian, Jiri Olsa wrote on Mon, Jul 04, 2022 at 01:25:28PM +0200: > > If you're ok with that I can resend this as three patches: my original > > patch, a patch with your diff and test_event() keeping current > > behaviour, and a last patch adding that last flag and testing 9p without > > format check. > > > > (and if you don't think it's worth checking probe existence same thing > > but even simpler) > > I have that patch split into 2 separated changes, > I'll try to send it later today It's been a while (I had totally forgotten), but I don't think I saw this patch. For reminder you've requested that I add some test for a tracepoint starting with digits e.g. 9p:9p_client_res but there's nothing commonly available to use there, so you added a way to only check without checking if a backing tracepoint exist, but I see no trace of the update you sent here: https://lore.kernel.org/all/YsGduWiTvkM2/tHv@krava/ Should I take it, do the split you suggested and send it together with a resend of my original patch and new test? Ian Rogers wrote on Mon, Jul 04, 2022 at 02:39:05PM -0700: > > diff --git a/tools/perf/util/parse-events.l b/tools/perf/util/parse-events.l > > index 5b6e4b5249cf..4133d6950d29 100644 > > --- a/tools/perf/util/parse-events.l > > +++ b/tools/perf/util/parse-events.l > > @@ -211,7 +211,7 @@ bpf_source [^,{}]+\.c[a-zA-Z0-9._]* > > num_dec [0-9]+ > > num_hex 0x[a-fA-F0-9]+ > > num_raw_hex [a-fA-F0-9]+ > > -name [a-zA-Z_*?\[\]][a-zA-Z0-9_*?.\[\]!]* > > +name [a-zA-Z0-9_*?\[\]][a-zA-Z0-9_*?.\[\]!]* > > Perhaps this would be cleaner as: > name [a-zA-Z0-9_*?\[\]!]+ > except that would allow a name to start with an exclamation. Would > that be an issue? Sorry for the lack of reply -- I have no opinion on this as long as we can use digits. I can't imagine any probe starting with . or !, but that does not seem to create any ambiguity with the rest of the grammar that I can see either so I think it'd be fine, but I'm not comfortable deciding. Thanks, -- Dominique