Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp798875lqo; Wed, 8 May 2024 15:47:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV5Ltq04N26uTRbW+1C2RNkpIwD2f89OrrsZYuXnt9uk4uICG830l0e268PC6FmM8BCQJp2FXXS85nup9FEdw31pe2b1J/2EQLuP+tRSQ== X-Google-Smtp-Source: AGHT+IHrbWuVGgn/Rd/Ytrh2obwf1Lb0UmJxDEt0+EZ6AMpYI6Qh5zy6XaHAP1UFbYxmRyW9UKAj X-Received: by 2002:a05:620a:46a5:b0:790:edd8:ac18 with SMTP id af79cd13be357-792bbe66f8cmr181359585a.35.1715208468932; Wed, 08 May 2024 15:47:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715208468; cv=pass; d=google.com; s=arc-20160816; b=Z2hazkoGfGodpStAE7InykXxuNx3dQHh3Qq8MErMA7oBdz6XNjwpkAxMBP+9lakkB+ kgKWQYmZwNA3DBhnkMJDAi7i6KiAbZCVmIxoNDx39dGvsHY23nWYSQ18qfb2E85SkUib X4zlggBgyYWe88XrXRPak3X9CmMwLvvcjcD6Lgjp8x+B2fSxgAF8DtWH1lTY4rOMchl8 ly1wTSp3HiKagdSb5jcnhtjx4f/zAHfYQBWCRT7TQ+kElKWuAgxv0AInvI9sJy4WaCb9 TS9p4zzBEyQJG/my9cr8YHLHJjkBY0qKCnsWFUj+/7i2PoLouaWCeuBCa/Xuzav6m+dZ swgw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=THTWPlGhHz/tVFafrr0g4VrmAxP+zcOMLOOzRkGzd3g=; fh=F4TgfI89a7hQBoZWVry8M6yBaOURX6ypIv561X8264A=; b=EWwHnGQR7b1ic+quOabZ7thgPhr2JeuVYD0P7KoJ0pxUo9UwxW/lio3IVdW1MM8qaW 9Hs8YzgdSMsLhE1P6jJ+RH6UUF9bsS6sDfiid0qsUV/2atLThqle/4dxWJgmLJjCpdD9 IGpon/d8E7rYGJBIn9JGcRKqmVBO/qaoc3rqlOcqS+7Gjqt962ABNRI7+VJJhdB/gOIr oNt8qpPsC30xFeq3C/c7cdSs1KAHCFUO3UsN9/yIZs3bVB9N8h8POw/3omA+5V/Eq/0q 3ywqanNRbpKHQMNnr3sMpOGin9XGL1HBdjzwRjhhxTO/fXDOQyagrka7hWxZQA+xt22W IEqw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="K/SERx1c"; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-173912-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173912-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792bf296d2csi3022785a.172.2024.05.08.15.47.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 15:47:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173912-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="K/SERx1c"; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-173912-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173912-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 96FCA1C21028 for ; Wed, 8 May 2024 22:47:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EDFB822338; Wed, 8 May 2024 22:47:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="K/SERx1c" Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A35CA17C79 for ; Wed, 8 May 2024 22:47:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715208463; cv=none; b=pQr3QU8y0HULddAtf5DoA99MSxtorsCnPauF4tv8Gif/6yrsIqNZAKmqzRiM/Rrg0H58RPAJRFmtmEpUh2Q3+TMhVezKkQ6PMrWy6h6eNRo0768B1aWa05PAikyC/wEQ2VblOWguWjz1pgD/1lMUZWjXHf8HJIeQVz5LMpBsyfs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715208463; c=relaxed/simple; bh=jnwBvi3VGiseF6Vuo3qjNo0hfBkpQ/lo1uw1t+xS6XI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=SDPx36SwFrZ62RaSWhcCsrTgvr5OGqjStuS2PxVutEp5JYnxnC4IORq3LRucQZ1vKlQZThEnkcRm/93Y9Nmz5WfnXHueRPqZk/xIR5XTtFFdRBAAv202ohetT7LkkqjHrdPsTRYaxBsNg/9xCP7cnx8jeqAEG15ih5gpBf4haeE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=K/SERx1c; arc=none smtp.client-ip=209.85.214.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1ec76185c0fso25345ad.1 for ; Wed, 08 May 2024 15:47:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715208461; x=1715813261; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=THTWPlGhHz/tVFafrr0g4VrmAxP+zcOMLOOzRkGzd3g=; b=K/SERx1cdsUDOPDli4wFwpxXu7C43YjwqX98tlXcqf0A+Q/BntX6nTtazdjtesX41Z zSeVkWN1exGAB4R0fsxu7TrHajbw8j4R5teRuZ3lPI6eJO5KDNQYyssJfrOYb0XziLAQ IrOjGuXp2P9xvHh4h5bPCJ6bxz03ZqiXiqEh50negoyFfy6M81MbTC2u0Zp7EqU66Y1e QlUnnN4bP97Pcsjf/zNlk2PrHany5qa2nYOJ9XCFGdUJFdbBaxFz/hqOR7iYbGjiUFmr NEEFNiojILTDJ9/iEDU2hc0TaIoeUj1QMCf9F/dCdYHL7nZzrb4AqVoHH/SIR/ZDLFbV 6qPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715208461; x=1715813261; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=THTWPlGhHz/tVFafrr0g4VrmAxP+zcOMLOOzRkGzd3g=; b=bG1DbqJgaXVC2jhbHFfa8Z0JkB6a6RtdwQ3wQs1IKABC1iVUv+Z9pNJnca9wD9j1Ea rdo36LSEXUMF63o70ku80eYP+c2qndpl0JMw7+xC5D9ei9tD6TGhggbL1ITkijd2/CZj RkBBsgTqnYWYv7TlmSHN8kBzLW5FsuME0nkREPQ0b8yrs3Fp+PZz3tCO0CSg0t9Euvu6 XrgA2m6JtKtZKQsSfvxrvKQmlydEoKQJ/w8YAIlOvOd+M1F7mz+NQxnq376waFRPOr9S AxXnT+IojYAFzsO2UNprMsmVMlmNqcf96GBfCpD84Qd87ue3Xjma2qgfsPKBqQF92iCh KTyQ== X-Forwarded-Encrypted: i=1; AJvYcCVTBHji+CiZ2Iywck5uW/ifcXNVKesdzF1GpVmUMxVeElpQdtapxjxekKgLwLiaH+m5dh9bzuh5BBbxhEFfbVx/3fuWZK6hhBqBRvNU X-Gm-Message-State: AOJu0YzHKVZFD48UenM/L/84kyvSwfvR4MLyrR/Eynau4btsEIZ5Je6q HQi8u0RBposfDEQ8NaMWj3Ia3/B1/y5WIXYRPF5p5c4Li2DkJ99HKR6gxICmUiBw3++RbRGo3KM bhz4JoeKNe2qYogkE1NidnY4tejBUDPBT+kJw X-Received: by 2002:a17:903:2405:b0:1eb:1663:c80b with SMTP id d9443c01a7336-1ef0913fa51mr368755ad.11.1715208460682; Wed, 08 May 2024 15:47:40 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240505-perf_digit-v2-0-6ece307fdaad@codewreck.org> In-Reply-To: <20240505-perf_digit-v2-0-6ece307fdaad@codewreck.org> From: Ian Rogers Date: Wed, 8 May 2024 15:47:29 -0700 Message-ID: Subject: Re: [PATCH v2 0/3] perf probe: Allow names to start with digits To: Dominique Martinet Cc: Arnaldo Carvalho de Melo , Jiri Olsa , Peter Zijlstra , Ingo Molnar , Namhyung Kim , Mark Rutland , Alexander Shishkin , Adrian Hunter , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, May 5, 2024 at 4:14=E2=80=AFAM Dominique Martinet wrote: > > This is a rebase of the patch orginally sent almost two years ago here: > https://lkml.kernel.org/r/20220612061508.1449636-1-asmadeus@codewreck.org > > At the time I was asked to add tests, and Jiri whipped up something to > make the test pass even for probes that don't exist on most systems but > that ended up never being formatted or sent... I asked what happened of > it and got asked to send it myself, but obviously also totally forget > about it myself until I needed it again now. > > I've taken the diff from that thread, adapted it a little bit to the > current master branch and checked things still fall in place -- I didn't > see any obvious problem. > > Thanks! > > Signed-off-by: Dominique Martinet Reviewed-by: Ian Rogers Note, this isn't applying cleanly to the perf-tools-next branch on: https://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next.git/ Thanks, Ian > --- > Changes in v2: > - update Jiri's email in commit tags > - (not a change, but after being brain-dead and Ian helpful > reply I'm confirming patch 3/3 works as expected) > - Link to v1: https://lore.kernel.org/r/20240407-perf_digit-v1-0-57ec37c6= 3394@codewreck.org > > --- > Dominique Martinet (3): > perf parse-events: pass parse_state to add_tracepoint > perf parse-events: Add new 'fake_tp' parameter for tests > perf parse: Allow names to start with digits > > tools/perf/tests/parse-events.c | 11 +++++++++-- > tools/perf/tests/pmu-events.c | 2 +- > tools/perf/util/evlist.c | 3 ++- > tools/perf/util/evsel.c | 20 +++++++++++++------- > tools/perf/util/evsel.h | 4 ++-- > tools/perf/util/metricgroup.c | 3 ++- > tools/perf/util/parse-events.c | 38 +++++++++++++++++++++++------------= --- > tools/perf/util/parse-events.h | 9 ++++++--- > tools/perf/util/parse-events.l | 4 ++-- > tools/perf/util/parse-events.y | 2 +- > 10 files changed, 61 insertions(+), 35 deletions(-) > --- > base-commit: 7367539ad4b0f8f9b396baf02110962333719a48 > change-id: 20240407-perf_digit-72445b5edb62 > > Best regards, > -- > Dominique Martinet | Asmadeus >