Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp552773imw; Mon, 4 Jul 2022 14:53:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tw9Hd24mltfhH0jY9gwM7jnVFyVQ1EVE1DQPkJ4s5CELCZvVcRoBhM3etapp7UIFh7oXif X-Received: by 2002:a17:90b:1e45:b0:1ed:2fae:bc5a with SMTP id pi5-20020a17090b1e4500b001ed2faebc5amr38838451pjb.208.1656971626796; Mon, 04 Jul 2022 14:53:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656971626; cv=none; d=google.com; s=arc-20160816; b=N/6IjlCnnuFNWJjYJ5t2uATINlzZ1uaxWOmcHj+qOX94+vcKEUJyDeWimErNnqtfyc m2zykKpJmrFtC+Ta2EcchstXAMdjMH/nncxOR3E6cphAtwv57Q5sOg+7DUrnsSXvEePa o0NM7XTpCfRPyXv4BdDyX1x2TOBoLepkpXLmVSQpsFlKppUjIDLJ6ivWyt7n8U6PYPO8 sERDK1YvWDRYatFQBRdMdHDptzQDqqSJzv0SxMpWcnGDltm5t5JImHFG8bx9HbF5v/UE YsZ9fkAIkwIsK9hWP9UUUCUcRkI/ZnoI7EQeRF3cyv66x5mqAn1Dl142eLDWml3Whft4 ylew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=85xt8gfUylWcpZOgKCioxv2QzHKT4Z0Id5Y79nmNe0g=; b=VNEQ6g6vIEKrdgFAxJooJCotALe9it76AsOYcz0d04JI7SnB/jsjDoxfDjMXg7TKQs x/kNogHFiVpwiN+o/CeSskAeM9X4sEHDN7aE4l6LR/YiO8P8VCU1KaxA7ehjIWgE293X xNxXkpQhmbr4LbxcrZxR40SDWQtt228OvH81Zbe2WAggFu70oQrhQnvc+YBOFdmitrG+ LbgEvuRf/Cdf5GwATS0jTC2ffIZ2ZFbfbUJu93e6sQHkgH/EXQq05aXj/eeRlWxNVfvb nvdSmJPf94cis7qCvyqs2sYGXvXyVwsMQvvl0dYb5fx43Ui8uoA38M/LQABhsLXc2gEA SUMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=DZvPEU0n; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u1-20020a170902e5c100b0016a17e70d3esi48239742plf.524.2022.07.04.14.53.35; Mon, 04 Jul 2022 14:53:46 -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=@google.com header.s=20210112 header.b=DZvPEU0n; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230469AbiGDVjV (ORCPT + 99 others); Mon, 4 Jul 2022 17:39:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229583AbiGDVjT (ORCPT ); Mon, 4 Jul 2022 17:39:19 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B49DF3888 for ; Mon, 4 Jul 2022 14:39:17 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id n185so6014711wmn.4 for ; Mon, 04 Jul 2022 14:39:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=85xt8gfUylWcpZOgKCioxv2QzHKT4Z0Id5Y79nmNe0g=; b=DZvPEU0niRPSUg1uzGPh9s1PVrURtPh3cmG2Acv6IPUz019D1bbLrcQoOFs8/lQlyV 5z8bFMsb7Z5botGnD+CF+p/j07Y/wL4p9BDp8cPijf4Vj6F1HF+FoXOYFeasKG6rhypA m/VQRymrff10HgSmuC6keRDMqkff7H0Ng5KQD7842RfSU0G3SECxj5JluIDUrbvoKzSk 59GkHMcCoQGzUo4qZVqCOQi9t4WddmAY/on7/fWq5lDxNFiEjGdwkoC8ZXPFJy0rq9d7 WTeQK6eqpJuHmmr8vvwYiKcMyy1+pfkZ3YYYJkxl/YdUYmb8Uo2/VxBSLEBxxCBtUZ/a E9Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=85xt8gfUylWcpZOgKCioxv2QzHKT4Z0Id5Y79nmNe0g=; b=j9DRfiU3iW32lhBOatj1s5j+MJV63A027BcC4vImBb/PXcTmZ011jTd2+IZfGkBywU 5Ov9GhL2IUv5Ds0ud5VaHxz27dZJtz1YvsKyjPw17QFg5Z9QUpM01jArsFQxlAFmxE5O kB936PneLVv+2QLskJhTCxTHk8olKGSB0g6TooH4hn5mQOJ40D+2XdG0Wa0sQKWdbBOH T7dhN4koDqSn07mObD64qe+DilpYMC9oSw1pU2VBg1WdPFKenMKKJTIByHGFQLfghDn6 l3POCYc07IpsuQ1PAlXIhpgC6TE9vdyWSz5s4/3g2yKLmHWS55ExughNlmp4Zdsf+qTt S7Sg== X-Gm-Message-State: AJIora9Bq/nY0XFWx+sGU12occSWduKLCaQHcnhj4vAwPeP2Ibq36cKy pp7nWBokZM05soelvdG72W8ja/NEj1qcsooArVkdwg== X-Received: by 2002:a7b:ce86:0:b0:3a0:48a1:d0c6 with SMTP id q6-20020a7bce86000000b003a048a1d0c6mr33506068wmj.67.1656970756031; Mon, 04 Jul 2022 14:39:16 -0700 (PDT) MIME-Version: 1.0 References: <20220612061508.1449636-1-asmadeus@codewreck.org> In-Reply-To: <20220612061508.1449636-1-asmadeus@codewreck.org> From: Ian Rogers Date: Mon, 4 Jul 2022 14:39:05 -0700 Message-ID: Subject: Re: [PATCH] perf parse: Allow names to start with digits To: Dominique Martinet Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable 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 Sat, Jun 11, 2022 at 11:16 PM Dominique Martinet wrote: > > 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_*?.\[\]!]* 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? Thanks, Ian > 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_*?\.:]+)? > -- > 2.36.1 >