Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp829106rwi; Mon, 10 Oct 2022 07:44:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM498K7/rug/muZ4oqDsQhy+2zQNXkpIutQXXDIrbZyHEqZB+UZfXpbREhbuWzRhse8wG6jL X-Received: by 2002:a17:907:6087:b0:78d:2d1c:c050 with SMTP id ht7-20020a170907608700b0078d2d1cc050mr14813745ejc.481.1665413067119; Mon, 10 Oct 2022 07:44:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665413067; cv=none; d=google.com; s=arc-20160816; b=aLY+NHlARY/5nkfLg1myBME0hd37a3v2Ewm81TmKnmnOBOWNNmMMCGQj+ArwNe01um Wy75hFxFlKjw+tvneT9dTSP1NcgWAwrPfVM7jva01adc/hZcSJKtq7KepBk1g4bO0ULi jpY1hwO6qDr3xb2/f8PyX9M405AQxpLighEn0k0+Cm42ni4kx4N5rmUmPEybxax4NXs5 hPHDpMoNbpYI/8FexLYtakXLMkDmpgn3j1T4ur3OWwMP6Oi7JsmiVrhRhM/9vzVEklB5 NdjByopmLP/zBPA/wSAo3AUNMkee3aX7wuu3CSsM9/DVUpNYlqwqL1rai2Bmx2OOG4DL MQHA== 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:date:from:dkim-signature; bh=WfbmCh4Xd7NmHwkQp27IHc6Fb0+tmSJSyPcW5XETK5Q=; b=QSjfJ9FxJYEaTESIVnIUfXWJSjLmg2R1F2g0Wr3xEJzcvtCJUnBaWRHQ10NI3LPLWz J0JrmkXmz5V0k8AziMkqawYoJGWkeUBUQzsX/BxFoSHau79OvQLkq/witrOEcDMSUbBv Y8ODqRviD/FEg7lffRapQTDup8rDsZX+2gBKccZNl0q/DsDh+GsmlxIivUQQhGTDjqXo jPguWrdCnV3XX2OS0pwhMrNrlqsBMTqanuoeg31Sspyg2eSOoQtYDG31KCN9l3mrjapx 7Wofn0cfNIO+5yB5fEAvWfbrFjGNloKsl4QOU0uwMn8i87nytKh5GF3f1DWim3eG3/mm BO+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pDGlnjks; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt41-20020a1709072da900b0078c234a7a8fsi11321047ejc.419.2022.10.10.07.43.58; Mon, 10 Oct 2022 07:44: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=@gmail.com header.s=20210112 header.b=pDGlnjks; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229688AbiJJOGE (ORCPT + 99 others); Mon, 10 Oct 2022 10:06:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229700AbiJJOGA (ORCPT ); Mon, 10 Oct 2022 10:06:00 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AD1E6AE87; Mon, 10 Oct 2022 07:05:59 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id f11so17233151wrm.6; Mon, 10 Oct 2022 07:05:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=WfbmCh4Xd7NmHwkQp27IHc6Fb0+tmSJSyPcW5XETK5Q=; b=pDGlnjksJk7ui6SeN4AwbZpBz1s9v9uzLet0dSGEZHmpOFOEYeKtNxmIng2BLHbMYC J9VqjpuMmkw5HMFmeuZBt1y1FXWmFmS/o/BZg1bat8Ce+HiInTrEAmwoex9JHgip8jJ+ iCM50d7iBdDeN8kDwWSwN6cNeJn1SOYrCkI2IMwRHpaGaCamLh0IZoRNRyhLeO4yUyF4 Dy4sZfobz2wprMEfOvXEIX143ya1cBhcw7lcN+8qAFLpNbX1nIj9V/TRKobHi/xbfvRD y7eDYD+CsoWG30vGFenBCl+ShkPO2Zn+y0ugnx159lJPyi+E1U0BD5db3TiCv10BQ3ei gViQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=WfbmCh4Xd7NmHwkQp27IHc6Fb0+tmSJSyPcW5XETK5Q=; b=3ah9KlawwhfMh+DatMFeUo000XScRMlZKOaAH2rDjRhk4+ZQCbdIaLveF5xIYQK+gt FlOFEPe3LSEWHRnc6gOdlPqAd7rZxn8kKtdV5vKv7qlrqbO+mm+7IJGiAzVi52GT+jJj dztqatJiNtag6FagLXPzwDdbi/LvxgirBagDWI03B+8fyK2//XZyg+624r93RykUyf+4 o8S07k2cVM5PXqnXuT4g8AXeJ+Nbds+IZMH1rQW0J0rqja4oAfU9EX/YmyMva/SvtXho 9pp0ls9Q0cHXt6PQgh18QyV9HahooWhnUMRw9CBTdQKKrnnBFnkrZgi4D9zeHIPiIqGs jumA== X-Gm-Message-State: ACrzQf3zoWTNbqZd1gzV94rzf0uB4dHRUpO9dQ1vlfMigHnBCfhHDfie SSAL6+7QMGRG4waT7/nvlzA= X-Received: by 2002:adf:ba01:0:b0:22e:7318:4e94 with SMTP id o1-20020adfba01000000b0022e73184e94mr12094202wrg.330.1665410757707; Mon, 10 Oct 2022 07:05:57 -0700 (PDT) Received: from krava ([193.85.244.190]) by smtp.gmail.com with ESMTPSA id j11-20020a05600c190b00b003c4ecff4e25sm7004470wmq.9.2022.10.10.07.05.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Oct 2022 07:05:56 -0700 (PDT) From: Jiri Olsa X-Google-Original-From: Jiri Olsa Date: Mon, 10 Oct 2022 16:05:54 +0200 To: Dominique Martinet Cc: Jiri Olsa , Ian Rogers , 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 Subject: Re: [PATCH] perf parse: Allow names to start with digits Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 10, 2022 at 02:38:54PM +0900, Dominique Martinet wrote: > 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? ah, it fell through the cracks, sry.. if you could resend it, that'd be great thanks, jirka > > > 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