Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp138400lqo; Thu, 9 May 2024 15:25:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWybwAW6xG3E3I5wzOyWRBiGF2QyDMvug3j7iEASegWGsc19lQ24NP4cbXGwwVrpgBLLBko8tpaA1ymYtOFZN/QW2Y7EHaISoKlmVnZzw== X-Google-Smtp-Source: AGHT+IGI8Sr3QEYTD+jUUY5r+NWTc0b/Ft3e8IvXPZSSqJwBqBg4pYO3r/YclQytXmVAdOOLD42m X-Received: by 2002:a05:6a00:2195:b0:6ea:b48a:f971 with SMTP id d2e1a72fcca58-6f4e029a2e3mr993199b3a.2.1715293519195; Thu, 09 May 2024 15:25:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715293519; cv=pass; d=google.com; s=arc-20160816; b=ce6FsIM68AMLiUYM+s4/XGD0XfmlLHOe+F6lK+moul+KnecH7I9D8rN7HV0Y0LmLeX 8e+5KhSs8wUOT0PAMCf5uLtn+7WJRDi4Eoqv1i1F5zzZZoqgI4/S4gfh9HO4/aXD9o5l fl3pU3/eL/Ut67nEkUremLIlSgbcEufsvQM2lgF9OnK0qT6UXuq87DuF2mC984emYiQD 9lbgTC2YsGpzy/hYTYvbhXozkxAiAt6LSHcLgtkwXuheVlGwvg7Gmn/CSoNeZ2G0DM9/ e6pHun96NR/tpiicLMT34Txpo2TQ+g/R0hKq4bGeJ2FvS62nOQZgkDBLWNJoyEiOjxgi 23TQ== 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=DWHEKSwlaTW2I1c9ZQNwSBEzyucWLndKRYjge2yxE14=; fh=yTIvALhXVWIna2XYwRrUWUI1YGb0pMr8iVrHTqEfBcw=; b=AsB2eSIAQ3KvEROnY1LRT+QT9FwAtx7QxUvNtHZA8l/BQVLRgyIyT1LGqzHQk4UUQV wm4uvkroQxdVMrXS8IawPa+EiELCHboTUBtjIuyQru3m430I2f2l3OrKUumBoDGCq/YW 6b84ys7jSpMzPsYJbgMb+RKAY+1OPYTvdSaAtzjk4GFxD526rPIZiXsFrfg1OzhJTDsp rN3X3iT/j/gWwlzWgDGGqro21dA2CthjExP8fqisg2YpgMifjtMZBoJ/r/Do0fG9O6YH ju5LWo2WumbElrWXzlscSK0tai+xRbQ6kKzuBjDVVYTNL/2uUvIjqiMpJyz+yOo0Mns2 GWJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=sAo0OW22; 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-175031-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175031-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codewreck.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-63412f13f7dsi2214210a12.745.2024.05.09.15.25.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 15:25:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175031-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=sAo0OW22; 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-175031-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175031-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 03E63B20FBC for ; Thu, 9 May 2024 22:25:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AD0F8129E8E; Thu, 9 May 2024 22:25:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=codewreck.org header.i=@codewreck.org header.b="sAo0OW22" 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 E8BD9129A75; Thu, 9 May 2024 22:25:03 +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=1715293507; cv=none; b=DNa+Z6P9WzOcZXRQ4jxJqOD/fOQLqRtdlA4kXkg7SR+Ybx27y1VqekjSPKkeiHnJQSsewc9B1d2ToWcvzVdDNM3CZi+gEhfiBO9BrWPHzYVUjjosXYCYaXYJpgXN4QbeZlwxbFqN++VdNRQvt+F8ibH1LUj5ONOO5y65QA4xF94= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715293507; c=relaxed/simple; bh=kr/ZNHJe3spo1D73S8skNdfLjRrNUc3DVoBssZVUO0A=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=Y14UM/1KMU7T+Xt2Z4OqQvGQRJLWF8R/szz9XCbJe1J9zVb79Vi1LJAa1gumLIB/HW66aWmme2oQeADgM69ViCnb6KZhVOasHOSUeTgT7APV9dhuVO+WXQaVa155Wkf8qUpcGuefEjRq+jflYy2oJRUuOWyGPr20lax6QD7Alzs= 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=sAo0OW22; 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 C29AB14C2DB; Fri, 10 May 2024 00:24:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1715293502; 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=DWHEKSwlaTW2I1c9ZQNwSBEzyucWLndKRYjge2yxE14=; b=sAo0OW22vx6bx0E/WcND8x8g0nH9lX5Z48gKk34Gbk3dE80xW6h0pN1IpMWUA6OGIYBSCG OfhkL40EXRN+YffyMbxag3WGCmQgUC+invDYzQvJRA24l9XTfxrOEnVfjMnHJ4FoZbmye7 i/3cXka8D6b6VSHSAl1M4wB1tMabCwfM7s7sMiQwvXJYK8Ggn4y9X5Y4lU+GMfI6JmWYgU HxuyUljTr7kcgrVjyDHkTqtPRIiH3OB+8POTIebTUcNrvSddSZDPYN4qv1EAGZYlYzPDZt qQywzvpjWL9yKPqPC7KWtxtf6SdXN2P+kI9Iw5O5DMLwLIAdeCIG+htjMkvW+g== Received: from [127.0.0.1] (localhost.lan [::1]) by gaia.codewreck.org (OpenSMTPD) with ESMTP id 18db1a50; Thu, 9 May 2024 22:24:55 +0000 (UTC) From: Dominique Martinet Subject: [PATCH v4 0/3] perf probe: Allow names to start with digits Date: Fri, 10 May 2024 07:24:29 +0900 Message-Id: <20240510-perf_digit-v4-0-db1553f3233b@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=H4sIAB5NPWYC/23Nyw6CMBAF0F8xXVstfVDqyv8wxvQxQKOhpiWoI fy7xY1i2MzkJvfMjChB9JDQYTOiCINPPnQ58O0G2VZ3DWDvckaUUE44kfgOsb443/geS8q5MAK cKSnKwOgE2ETd2XYmc3M/D9yHcEu4g2c/11qf+hBfn5dDkddp9fpQYIKFBMukLRlT/GiDg0cEe 92F2KBzPjXQLxdELDjNvAQLjMjaae3WOPvlasFZ5oqw0tSyUpXT/3yapjfzxMOXPQEAAA== To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Dominique Martinet X-Mailer: b4 0.14-dev-87f09 X-Developer-Signature: v=1; a=openpgp-sha256; l=3040; i=asmadeus@codewreck.org; h=from:subject:message-id; bh=kr/ZNHJe3spo1D73S8skNdfLjRrNUc3DVoBssZVUO0A=; b=owEBbQKS/ZANAwAIAatOm+xqmOZwAcsmYgBmPU02lfGzMfwl2j9V/WvrwVcTMP2flg2RXt4bE epnYiRq2PaJAjMEAAEIAB0WIQT8g9txgG5a3TOhiE6rTpvsapjmcAUCZj1NNgAKCRCrTpvsapjm cLYUEACbSNy4VjSDW8iZCoqCo0LdIgm9jz9I4phR11eIRzNJzXI7gnSuaQ1/Ww42VdTU5BET8JX b8snkXw20EKYCXJyaH2hZUU0UtBTT3Pbx0yOp619Ldz6og7uFPuBvamoGsHdqJq0LaKsyEFXvrW LoGvknUx/68bF0DyXNJ+Mb1ty+Wan0KxMQUDfVVak2BvqVthykVVWgyCNvtB2ipqkM+xHx/dOgB TFUV3AYyCNwaawixBCVOaMbxCIOnESiUD7YffvRtyBfLz1WkwBZ0lHLdNMJUfxJJpYW3vVFI7AT P3KvT5jeuyoPqI3/aJdlwyDk8rEKh7sQfhYpwmvPJPhlakByEyOKSrWHg26Z45wjljmJFL8/s5x /w1nm1KiS80QJ1yPjQQZAuSsJUjAxercvAyu3J/A0e4iqir4zjIs1Q4YoQHosJqGOX+c8OCWBkJ /vl3wS7C59uHInEiu70oK6xqpY+MxzU7va/RPIMqfb2ULXbrWDLukye8KxWiB798qgZSyJB0pLU KRzK0vcep+XHT743za7D1zCDCEYj4MzkPem6l3l/F73y4q1qJ7RijD5Qt/lmZPTBipPaiDVO8Oz yQuWfAK9GwMbplE4ugGbkOScWluSJbnybbRkj39DrEEMJOVYNqVQ+M5Bm7hyz6gliqdUdHfZ/Bf Bhp1/2jZ1ynYDAQ== 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! To: Arnaldo Carvalho de Melo To: Jiri Olsa To: Peter Zijlstra To: Ingo Molnar To: Namhyung Kim To: Mark Rutland To: Alexander Shishkin To: Ian Rogers To: Adrian Hunter To: Liang, Kan Cc: linux-perf-users@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Dominique Martinet Changes in v4: - add missing ifdef LIBTRACEEVENT for new test case Note build-test still failed on my setup due to some bpf/cgroup problem, which is more likely a setup problem but means I couldn't verify build all the way: util/bpf_skel/bperf_cgroup.bpf.c:71:10: error: incomplete definition of type 'struct cgroup' - Link to v3: https://lore.kernel.org/r/20240509-perf_digit-v3-0-9036bf7898da@codewreck.org 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 | 13 +++++++++++-- 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, 63 insertions(+), 35 deletions(-) --- base-commit: 187c219b57eaf3e1b7a3cab2c6a8b7909bdbf4a9 change-id: 20240407-perf_digit-72445b5edb62 Best regards, -- Dominique Martinet | Asmadeus