Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1013837iol; Sun, 12 Jun 2022 03:56:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZObcoFRLWeY1DWO2URW3KbhiZXvNCGjKS5nVOhLqFbV13LsMC4YU8w386+GmElV2yQUKY X-Received: by 2002:aa7:80ce:0:b0:51c:70fc:8f5d with SMTP id a14-20020aa780ce000000b0051c70fc8f5dmr21792265pfn.1.1655031408897; Sun, 12 Jun 2022 03:56:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655031408; cv=none; d=google.com; s=arc-20160816; b=qrCf7pU9Ew+zW7Q3m273iT8DUQzs4Z/v7rHFjHqVhJVEh1WlYnr2aOVXUBcsOkV4Tu Sn18HgZAjJHsxIBZ4OpA0IkjuzC2qJgFPZ+bEkO0wJrKrdJpf0ByqvVyi72Afp5/xtvw jBuayUaZlQxo+BDYF3JyIEvQeSD+CD/OiVlTdxY3rq/mE++5FIE6TiAZVyq89rKQ05Y5 CnAO1cpaEvqiAEdyi6+MZDyLp3QDXsYeNJjy5743iA3AwdmN2pg2kn6obfgAaTWmuMO+ eYrdrlgxFszd8rLo0jRRDUd5MosV8cu1AgAdLBV3DiWNJUWDvc+5LBEWDyyjdHqnDGD+ X7xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=nJDO7/qBIBucVpix5fyRM3Rkiiq7vw3tMCV118r+sj4=; b=gm6D7eJyhxO7cEMINfo/YF1WDawVEzMYLgTYBpoXW1yFr+3zK+P3JTmL+A9hl+KI3f s/JpDKDQSC2stYsVGsUFIIj5TmE7EEXXLOVDGXVaCYDFD+rRLHF4gCH9GRvgpyvATIB0 BtzHqYrGcB9agDVYACMoe6Mn3KieF5IY5hN8fa2FNd+gMvy6QHfg5a7HjWtZvUp0hMUJ zG1dRqQn9gd+v0A4//4WgR9TLsqvC/feuYhvCyxQcQkTrp2rV3qaIjAOChKYlQanlmzd WYn8mQqadnFhyp2a23DLdq5sp83sgvV5d5mjS2QaRBCD9h2uqKoN6uWCLDCoVl3O83en fgug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=ibS4L0UC; dkim=pass header.i=@codewreck.org header.s=2 header.b="X+28B/h9"; 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 q21-20020a170902c75500b00158e5bfcc7dsi5533650plq.136.2022.06.12.03.56.14; Sun, 12 Jun 2022 03:56:48 -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=ibS4L0UC; dkim=pass header.i=@codewreck.org header.s=2 header.b="X+28B/h9"; 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 S232577AbiFLGQI (ORCPT + 99 others); Sun, 12 Jun 2022 02:16:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229664AbiFLGQG (ORCPT ); Sun, 12 Jun 2022 02:16:06 -0400 Received: from nautica.notk.org (ipv6.notk.org [IPv6:2001:41d0:1:7a93::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B2A43917B for ; Sat, 11 Jun 2022 23:16:04 -0700 (PDT) Received: by nautica.notk.org (Postfix, from userid 108) id E465DC01B; Sun, 12 Jun 2022 08:16:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1655014562; bh=nJDO7/qBIBucVpix5fyRM3Rkiiq7vw3tMCV118r+sj4=; h=From:To:Cc:Subject:Date:From; b=ibS4L0UCjxNSfiKLJvGRcjtTuXWAZ8IoSuX7hxFJnKoww4a4fLtSCYZUvWU19DF7K QM5IiwpB+CA/OSiqklIYgDvjMzS8se2hu8F/cP1dx0SIhnmynJw0qRxVdQgG2wNwKI rmDMSM7yzRjAF2dmKA1sGMsL4MOpkmVOHQvsSq6h6040E2r+dfRpVQD11gn0rmXPUM rFOTM7VLMw/3n2HCS0GXEGjI3RQ0aXKq7XOrtyTEaPKhvmfzoKsvRW5ZlxyIjJzLqm /KIf30X7o2MzLG1NP/eSLVMckgmRlzbcjgajYqbDpguYj/vV3LO1q1VilvwVjX7aNq aG5aAaWz11EjQ== 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 EC1C1C009; Sun, 12 Jun 2022 08:15:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1655014552; bh=nJDO7/qBIBucVpix5fyRM3Rkiiq7vw3tMCV118r+sj4=; h=From:To:Cc:Subject:Date:From; b=X+28B/h9frr/iIwfyqbvVHz1QbaByJJkfl4R/GL/wcIgt7ckMZS/CFhz7YH4vq7Ss PsnGZi0JRVrsFJWWaK29bzbMODfEn6X84u29d//YYsURAbuqJlZUqD+UOeUtxhHbf8 oPjjlr62vnxAHHZpO5K0nYEao2ielnw9fQW1r7reRAOmr7lx3GmniWvMsA4YcMuLgv JGChOQBJpesVbnDmv8Hk2GLpkH8uoG76W6mDjD2FyNds+u1J4VP6tikcIx0bLPuTsT Q0NbGWSoBLbXqBIahpQijUAR3Im/fXUiK5niuM6xwygYbTM9dtkwRF4WhqOSRhn+gf 10we1yzNOll1Q== Received: from localhost (odin.codewreck.org [local]) by odin.codewreck.org (OpenSMTPD) with ESMTPA id be16708e; Sun, 12 Jun 2022 06:15:45 +0000 (UTC) From: Dominique Martinet To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim Cc: Dominique Martinet , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] perf parse: Allow names to start with digits Date: Sun, 12 Jun 2022 15:15:08 +0900 Message-Id: <20220612061508.1449636-1-asmadeus@codewreck.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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_*?\.:]+)? -- 2.36.1