Received: by 2002:ac0:cd04:0:0:0:0:0 with SMTP id w4csp639096imn; Sat, 2 Jul 2022 02:57:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tjnPh6EdCTNDBhRwYGaMVkdfGLAbajfJKRL2F27fFUrw/46y4PWu7DjuefwpN0MC3ULcED X-Received: by 2002:a17:906:ce36:b0:726:9ec6:7792 with SMTP id sd22-20020a170906ce3600b007269ec67792mr18465485ejb.516.1656755838678; Sat, 02 Jul 2022 02:57:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656755838; cv=none; d=google.com; s=arc-20160816; b=ANuya+NzB197QaPJArjL8HIHwYMQyIQsPUwS1y1D1TXYqowVZ9YWZaFGpnJ2NKyJo/ qxDAoZ9AKKt+B60SjNn1wlvAlWeNUdCw2EvpOBPqZnlGIndbP40GIOF4sdfeaBgud59w IohIQwWf82ALRhdztVJNK2PB1UVPrrR0ZeahvZGjaD5pNAzsk3ME6WWOOxSDmnGgZ1bV 9okPYO2QDBJScLodSaVnUltmOnaHm59vz1oqslR+j03Vo+BqzxZGt0YFBZLyid4f1A3x Kb8RU6f0VKrDo171pYtJoeD7OOxfsBIsR9/biUWqzRG0jYkG+JLn4LZJi3/JU2L2BSXX SEvg== 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=kWnM5HmL8ZFxmHvTL3mAW3KL5okW54pgpZzMeub04BA=; b=GROAI1UGX5MwJHZhxFSkHjZIOXIpw+IHkOXwy1qsjKE9iKjlddmwntU4Nmnpko380g bbrDeEemeRZJUDl5Qm7StOCBizbty1dE0np9EbxtV0j0HrbVK0q/SRGsFxxFREKlJC8e K0xxLgdyOzBpflGd9k8CQv3y0GsluBt9Pv1vZ4pI6pD2DuwOVwPxFGc0VkQoNVDKOClL 3X8Ns+DY28ZwtmSmmEzxSFaeElVo/glsBqYibpFeYuSbxiCmtY0CYHW2EgcJ/MzJuTNg hyetFE7pbVcPPHBNDHrmcOFAFCosr6yQsjj4+0wsvPS3GsDySsyrdnpDC8ZOL5JK0tnL zIOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=K5PVBEie; dkim=pass header.i=@codewreck.org header.s=2 header.b=K5PVBEie; 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 l13-20020a056402254d00b004355a240a2bsi5919120edb.623.2022.07.02.02.56.50; Sat, 02 Jul 2022 02:57:18 -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=K5PVBEie; dkim=pass header.i=@codewreck.org header.s=2 header.b=K5PVBEie; 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 S232101AbiGBJt5 (ORCPT + 99 others); Sat, 2 Jul 2022 05:49:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbiGBJt5 (ORCPT ); Sat, 2 Jul 2022 05:49:57 -0400 Received: from nautica.notk.org (nautica.notk.org [91.121.71.147]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 460CF13CD1; Sat, 2 Jul 2022 02:49:55 -0700 (PDT) Received: by nautica.notk.org (Postfix, from userid 108) id B0CE7C01F; Sat, 2 Jul 2022 11:49:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1656755393; bh=kWnM5HmL8ZFxmHvTL3mAW3KL5okW54pgpZzMeub04BA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=K5PVBEieNp9VipJHL//Pd2ri4iffFUOyGAFlu/85gzuYeX/TZ2eyfWxjEcAxxbMk7 iOeH5ij3NjubZSuHjyEUfMl9tUDFomKzARqomzh4gjq9ZwTQa7kxbuhMkb9QhOkbgg EpHv6+ZcTzF0qBBg44C6CG/dR/niGBTuMzKFPtP0moKjMp0A3GFj3TCS1MNomRDtkI cNF6A23XLFLFtVcNcQXt3ReJyQbzAz5oqGDevBHXrH3b7dZqEaIbuE4AObp5IBn0YX gEMO7db99yj87MC6qmf6eTOpRH1IA4k9z2KatjNSt75E7zAQD2+ELNwcFcprLKIHs8 Cte4UEIHv+2xg== 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 69C2AC009; Sat, 2 Jul 2022 11:49:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1656755393; bh=kWnM5HmL8ZFxmHvTL3mAW3KL5okW54pgpZzMeub04BA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=K5PVBEieNp9VipJHL//Pd2ri4iffFUOyGAFlu/85gzuYeX/TZ2eyfWxjEcAxxbMk7 iOeH5ij3NjubZSuHjyEUfMl9tUDFomKzARqomzh4gjq9ZwTQa7kxbuhMkb9QhOkbgg EpHv6+ZcTzF0qBBg44C6CG/dR/niGBTuMzKFPtP0moKjMp0A3GFj3TCS1MNomRDtkI cNF6A23XLFLFtVcNcQXt3ReJyQbzAz5oqGDevBHXrH3b7dZqEaIbuE4AObp5IBn0YX gEMO7db99yj87MC6qmf6eTOpRH1IA4k9z2KatjNSt75E7zAQD2+ELNwcFcprLKIHs8 Cte4UEIHv+2xg== Received: from localhost (odin.codewreck.org [local]) by odin.codewreck.org (OpenSMTPD) with ESMTPA id 14cf811d; Sat, 2 Jul 2022 09:49:46 +0000 (UTC) Date: Sat, 2 Jul 2022 18:49:31 +0900 From: Dominique Martinet To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim Cc: 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: <20220612061508.1449636-1-asmadeus@codewreck.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, just making sure my mail didn't get lost -- would anyone have time to look at this? I don't mind if it's slow or another solution is taken, I'd just like to be able to use 9p probes with perf eventually :) Thanks! Dominique Martinet wrote on Sun, Jun 12, 2022 at 03:15:08PM +0900: > Tracepoints can start with digits, although we don't have many of these: > > $ rg -g '*.h' '\bTRACE_EVENT\([0-9]' > net/mac802154/trace.h > 53:TRACE_EVENT(802154_drv_return_int, > ... > > net/ieee802154/trace.h > 66:TRACE_EVENT(802154_rdev_add_virtual_intf, > ... > > include/trace/events/9p.h > 124:TRACE_EVENT(9p_client_req, > ... > > Just allow names to start with digits too so e.g. perf probe -e '9p:*' > works > > Signed-off-by: Dominique Martinet > --- > tools/perf/util/parse-events.l | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > 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_*?.\[\]!]* > name_tag [\'][a-zA-Z_*?\[\]][a-zA-Z0-9_*?\-,\.\[\]:=]*[\'] > name_minus [a-zA-Z_*?][a-zA-Z0-9\-_*?.:]* > drv_cfg_term [a-zA-Z0-9_\.]+(=[a-zA-Z0-9_*?\.:]+)?