Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp803284lqo; Wed, 8 May 2024 16:01:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUn5w7KOsp4M63SnhJlkpSGU0ojKfP+WkBf/zVVLCot7e1RGyqmMsngAzbcyMWzSaht/Gs7cIla203jk4BcZFkSXTGw7zOjwth1+LSVxg== X-Google-Smtp-Source: AGHT+IEKqdgYZclsGJqRjidh+mRDQJl6SZJLQfaOczJUlYpwxKPzALy+vmf5t7N6ULOfDP85F0RH X-Received: by 2002:a05:6358:9049:b0:183:f639:2415 with SMTP id e5c5f4694b2df-192d3578b44mr504198955d.27.1715209289338; Wed, 08 May 2024 16:01:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715209289; cv=pass; d=google.com; s=arc-20160816; b=LQyiaa5b3ihcrhA/BeIunbn9dcC3XAV5YBzegiPrM1PJG5sYTw/HqWrVwgL/NCHKyl +iY9H1Qq/GtZ2SKRw3oSmB1IQIe+g8h7H/23hoM1puRX0gw80tw8oee8neDoglvqYGxo QKCgVUqeqkcVAV1EvGP9VmZfnnfQsXZgnXujEX0uhUsCq/BfWGtha6XFUPb1TsvyFKeZ WktkOMnpKMdCWwqffq3gud5rXGJOIYr9Onstlt1b8boAZu/PQPl2v0enjtt/mFxXYK7I FYYeifg/QMx9rRU3PxAW1gqNxCYBH3NpwqEV3uj+p54D6/jBxha+866drLi9UilhhAkk M8IQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=C4kCd4f1fETSvtBT8U5U5jWRV3zFNJk5hsrFH2PIslo=; fh=pxVj9jvuhIFJ54K3dxeTizrtOnbbZimBF8TFgdczyIg=; b=bWUPI1K94kTw/MvMglmK+gYx+vFwsfTMxjGj7MT07a/sc+Iis9sAXeu8hsQa9Wun6y m93cg6Jouw+BQbCNdG+E1dkJA5N2UBiwajk+7ZbhtodQBkVfh2SNnLBaCXZbGNsm3rzw NmaSX3j9Pa2+mHAVXlE3O5Dy1uvRkpG8HSUka/WL1t1aC6MXHAAnOCtCVbiSeed6sRbI 7ajTfca8oBXP8SaG1sRNu7uX5tXblaPMtUIbn3Z7SHmEXAG8JHNefN2KgUnvBsL8FfO9 z+OCAH2chzWxUJ1fm26BhEfZs2wv46YgzkUQJv+rij3YdauMnJjOaFk80IHgTysbMQnE OjVw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=Zln5e1uK; arc=pass (i=1 spf=pass spfdomain=codewreck.org dkim=pass dkdomain=codewreck.org dmarc=pass fromdomain=codewreck.org); spf=pass (google.com: domain of linux-kernel+bounces-173914-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173914-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codewreck.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-63409e8397csi112427a12.159.2024.05.08.16.01.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 16:01:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173914-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=Zln5e1uK; arc=pass (i=1 spf=pass spfdomain=codewreck.org dkim=pass dkdomain=codewreck.org dmarc=pass fromdomain=codewreck.org); spf=pass (google.com: domain of linux-kernel+bounces-173914-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173914-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codewreck.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E1400282498 for ; Wed, 8 May 2024 23:01:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C82D34500F; Wed, 8 May 2024 23:01:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=codewreck.org header.i=@codewreck.org header.b="Zln5e1uK" Received: from submarine.notk.org (62-210-214-84.rev.poneytelecom.eu [62.210.214.84]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1CE7417C79; Wed, 8 May 2024 23:01:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.210.214.84 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715209281; cv=none; b=EkmeZTNXNB9YnrO1Y3Di5rZPJTV3wJfHYyCQ6yuOrEEY1hdrMTABIvXnQ8Azc6HvkccVlAB+Cw9p1Z2/H/GJFttXZXxCoDfKUNQBBkg2X9TYOxamTi66WOthJeI31WLQ+jXrSIG6bZB3qutCrbyg0V1HrTZKIGWmrXFqqlD44Wg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715209281; c=relaxed/simple; bh=DtVkRLbSIWWL6W99drJAbKWruAWM/NFuDby/5Rgvx/A=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=rKmtDffC8g6fdRgpOX5A2pL1S5LEM59kRYfMwksltMS+SHCCspXBPLhlHT/1BmwPcObjqwS6cE+hjd6z3dYcGoDV6gQchQKBYzIiYUmPJaWlkD9kA0KopRDvmPhLI2Y4lZBPg5KLO8omlqCPLovNIiB3aW/7UmXtrHBtDYSYnk0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=codewreck.org; spf=pass smtp.mailfrom=codewreck.org; dkim=pass (2048-bit key) header.d=codewreck.org header.i=@codewreck.org header.b=Zln5e1uK; arc=none smtp.client-ip=62.210.214.84 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=codewreck.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=codewreck.org Received: from gaia.codewreck.org (localhost [127.0.0.1]) by submarine.notk.org (Postfix) with ESMTPS id C307814C2D7; Thu, 9 May 2024 01:01:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1715209270; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=C4kCd4f1fETSvtBT8U5U5jWRV3zFNJk5hsrFH2PIslo=; b=Zln5e1uKwmcX2sFl6Km81P8cCpACYAqJbTQw3bPtg4BOr0/pMuOS7n9WyTUM0EjiS1pQnS yFXfBIYEqTDb5IVB4BrLYnz6AO/MQdhxY5rSLUPh6pXrwvLY+3LDlF8ROKIm02S5dYwPAu Ne1WEF4cf7EEJJHUuq6MuOKV1mgr/El11jXFs2u9GTZIP1Px1B1y8MaVjS/aB+nTSgfsrj q+kwpB820fXVxGhqvcnX7r/QuAvX/7/76A8iV7nojimu+yjLo/B5VEckZqrTiWd3tqADxc kRISho/W3wCx5eYv7aHARG0/Ap3Dt+LdCqX8NbjEbkTMtgdJwxFs6fUaGHiBSA== Received: from [127.0.0.1] (localhost.lan [::1]) by gaia.codewreck.org (OpenSMTPD) with ESMTP id aa59b7a1; Wed, 8 May 2024 23:01:02 +0000 (UTC) From: Dominique Martinet Subject: [PATCH v3 0/3] perf probe: Allow names to start with digits Date: Thu, 09 May 2024 08:00:44 +0900 Message-Id: <20240509-perf_digit-v3-0-9036bf7898da@codewreck.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIABwEPGYC/23M3QqCMBjG8VuRHbeY+3DUkfcREbq96kvg5J2sQ rz3pidRdPg88PsvLAIhRHYuFkaQMGIY81CHgrmhGXvg6PNmUkgttLB8AupuHnucuZVam9aAbyv JMpgIOnzuscs17wHjHOi1t1O5vX8zqeSCGwtOWVcpddK1Cx4eBO5+DNSzLZXkhxthvrjMvAIHS tjON43/5eu6vgHYOQ+75wAAAA== To: Arnaldo Carvalho de Melo , Jiri Olsa , Peter Zijlstra , Ingo Molnar , Namhyung Kim , Mark Rutland , Alexander Shishkin , Ian Rogers , Adrian Hunter Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Dominique Martinet X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=2122; i=asmadeus@codewreck.org; h=from:subject:message-id; bh=DtVkRLbSIWWL6W99drJAbKWruAWM/NFuDby/5Rgvx/A=; b=owEBbQKS/ZANAwAIAatOm+xqmOZwAcsmYgBmPAQpZxEW/ojbsturei7d9f/4vmOnm7OrY/SBw 5VWo8P8kv+JAjMEAAEIAB0WIQT8g9txgG5a3TOhiE6rTpvsapjmcAUCZjwEKQAKCRCrTpvsapjm cCGgEACrxicZKszCnF/FwNjXlR2m8t3fxnsm0c028fPhf2yOQu38JrwNTP6whexWJ7rDSUR5vk2 HCHwkSFJiwxRkj+bbJ2wNMBaFCudxBSMR0ZmN86w82RbSTmYfymOXLUAS8azeswJVwTkKlSykQ/ zIFMZC8wJXV/6o81L6R937yUUrNYq+gmXxJlR4AISkr5/wyghh4iYDTACTKzOUwWoFDzyFX6Ks6 aZfD8aTxPSavrH2BFS2GsVh8MsJjO9ZcspfJaRLhsTIe+Q9dzQ4OTxOSVRXnj5uvkO01WZrqGrh 5YeSDVw0WLHWNdy5VYTqS+7LFkwmK7kytG8Y65L2d8ZDFXiCqKI0Nq8oMy6ZROia9N3jvGq8K6x QBi093eyxZzi1Qb5KGSo5obXn3uWVSe75cdFPYNTgRcN9c0o1siDVwV6W2R8rTl8cuhJD9T0JKP UQxwnWXHTAWivzeLc7sTZnFJY+RiTSaCZ1SxTxOrIC++malt57LPb729Q21a002G/Mjoq2JtR12 kmZ5SEnk3nk/TxxZ0PIqc0p5Oa0k9ZSAHKBN3eDnjrHqCvxPq+qJbTiiJRNKAAESHwUWQXnH69I sEhQR2KG1OBsM4Ic3IpQnfoNj1GojKyAALUOwPEovKWNrBzoPVv3r7KV2SDz8yjQK5Oaox45quv qXmUJ11GP2+mNGQ== X-Developer-Key: i=asmadeus@codewreck.org; a=openpgp; fpr=B894379F662089525B3FB1B9333F1F391BBBB00A 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 --- Changes in v3: - fix evsel__newtp_idx typo in commit 1's message - rebase onto perf-tools-next - add trailers - Link to v2: https://lore.kernel.org/r/20240505-perf_digit-v2-0-6ece307fdaad@codewreck.org 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-57ec37c63394@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: 187c219b57eaf3e1b7a3cab2c6a8b7909bdbf4a9 change-id: 20240407-perf_digit-72445b5edb62 Best regards, -- Dominique Martinet | Asmadeus