Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp512766lqo; Fri, 10 May 2024 06:52:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVM4gMDvbtvtd8b88tSSVUJqi6tfutw7CysoqFHzcqNj9ulCTVAv+iCjq/MkDMLOV2ewMMNmlC5dn61+gw2ASH7WsSKRaayBjJ1okgiZQ== X-Google-Smtp-Source: AGHT+IHxUDnGKLyfO6YARQevaB175CSrXWDiou3BqooGIcxTel8ZVLmZ4v3j96o8ZcYHjOTFHN1/ X-Received: by 2002:a17:906:1185:b0:a5a:3908:f4ad with SMTP id a640c23a62f3a-a5a3908f5a7mr98583866b.10.1715349175281; Fri, 10 May 2024 06:52:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715349175; cv=pass; d=google.com; s=arc-20160816; b=CP1imGB7vtAiLwl2yu88t+VRO0Z9UnLimdT6RaLLfR4pcEpXn2IlTge4cGNDygiPJH ASZ2iQPqNwlUOv+r+8GNCHIr0IAfXsjMrN4znrPQCsBI1/XIhX+rD9kptzPBbI5LaZnm 7bnkBYzXKpj7GEWl8NfxXDfJYX/SQ85gVZlO77W4q5p9DYqcGNywpbouc/1+GsNcEN2K DFdiKl7BgnhsmuELeOHK7rU5ofjBO7Ri5g/7iwoZdqsVluiXVYxur4lUd6HilTHvvcYj A/Dd9v8M7FZZMN3lr0qKKR13ZUdm8d9mB5HJJ0Hg8FZQZ34+qOAId5YZvR+T0BpPNwYy 6L2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=RSySrHM/QyoZWrWZ+AwYhjQbrbUB4dA3pAYuLGGLccs=; fh=+rXeoNk5IJXcixCIYyGKvlTJxdes/ZKuXRjS77HflTk=; b=H7euQG1AH34s/giCWq3FObF2m17nhVBn4I3DKBAOb0OsL9LEP2Q03p1m47IYVu4GxD 3uH8aUVyKVhvY98raNfVzPjYqTxyeeL0I4k7KL7LUUkJ1uHrwhs5gebfR5MdFGtO2dCZ rtw21yBh0lPz9qaqfPOt1KCXFGU+vOhkAT7XZ3eWyABqgg+4Y2KZhDkhN12aDy3WyUUz SQ7R/BjO+weodppJv7LngaqhjCTeUqWRqqThRUJPHGaU57HSKAXma5LDiJl4ViocoGCr 6/6oW6YtSBbgT3N40hQFGQlh1RuQlCmuOWoxeaH02AKFNvL81HaZnQn5ZeBnZ3+gVPEy K5Hw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Lk41rZJK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-175842-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175842-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17ba4f77si179263466b.568.2024.05.10.06.52.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 06:52:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175842-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Lk41rZJK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-175842-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175842-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 617781F22FAE for ; Fri, 10 May 2024 13:52:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F040812C53B; Fri, 10 May 2024 13:52:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Lk41rZJK" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2254912C46B; Fri, 10 May 2024 13:52:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715349132; cv=none; b=E4EMfDtej/wmmnWAeRw/aYbTSsOImzH/nPgLaRSGQbbVGN9wos+Pso9Iu8Faf7jPXpMYEmnKj23xSRzyW0HDPOsaogo93tqy6lBbCPrOKn2XrptmHI34AEUCDhJ3Gp7CrWxOzmVs+3iiTaZT5Y1KepgAd+QqxyGVki+H2XuUTxY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715349132; c=relaxed/simple; bh=ry3Mqd5CmjJo1OW6t11otMfSZLHdOycNCf2A3sVc5zw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ImMpl2HbJFde06gs1k8K5EsWeuTZG8ibRi0h+J+x8J3HM+53y7QG+pghzs9XzlyqcVEqz4fmOUvESXngzIuHd+aLQdqrcyH/tC/C4+uQK73aHr/lVinR5QZ00gPiXUM5RPbiiZwlTe9VdjONTlwK5fjbdIuD3+43ULrFqdcJNEA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Lk41rZJK; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD5F5C113CC; Fri, 10 May 2024 13:52:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715349131; bh=ry3Mqd5CmjJo1OW6t11otMfSZLHdOycNCf2A3sVc5zw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Lk41rZJK3VuvbLw/K4mbJGEYZcZtQRKx+pJgrCgPbdgRvxSpLjtJ9yZ/qX7m9yWxN wZdKh1fDhReCZ2KLxtUH+AnNjlDSX3fFWnvgd0kIZr3YlT5ru2auVr4/t/afrLhskG yh/SgnmDejtZKH7QezfTnVkxqwo/OJyb+hxqGiwxDlcalJx2jgk3uaqO4IZ7DzTYap Z6lLZmK6obYPZJCe8ud0Lu+3IKzT/wb7wJZ1TIfCbYPERxRKgcaVv5dE0cPlaVCpF1 KPZhuyUCxl8vm+16EivgnHHnF5/zX/BIxxck7FrznZNvVAoU3pNX9R4pbNK1R0aVK5 mmIlM3k9qpIFg== Date: Fri, 10 May 2024 10:52:08 -0300 From: Arnaldo Carvalho de Melo To: Dominique Martinet Cc: Peter Zijlstra , Ingo Molnar , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 0/3] perf probe: Allow names to start with digits Message-ID: References: <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=us-ascii Content-Disposition: inline In-Reply-To: <20240510-perf_digit-v4-0-db1553f3233b@codewreck.org> On Fri, May 10, 2024 at 07:24:29AM +0900, 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, applied to perf-tools-next, - Arnaldo > 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