Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1137077lqo; Sat, 11 May 2024 08:52:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVfwKO0rZpytpF2DUliSN9YGyzZR3ZBNtt7JROezSnU1x/nPuRlCHc0UbGsJWgeyTB+GtuZy+AX68eFt23BI3rhxTO0K4gJ63tflSd9+Q== X-Google-Smtp-Source: AGHT+IEcoiEqXdPP06/xUUdnHdE8UPokXZbwLdx1ifNtcB1OkX1uPK2jh9Y31Ld/lzVN5ECr1hMB X-Received: by 2002:a05:6214:4487:b0:6a0:49c5:c2b5 with SMTP id 6a1803df08f44-6a16819d9e6mr62827466d6.28.1715442772717; Sat, 11 May 2024 08:52:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715442772; cv=pass; d=google.com; s=arc-20160816; b=NRnRmKKLT8c0flFYydf1mAYPUsKXFHUbcOQa9GHd4f7xMVtTQKhXFRQw4YfXMDVlHs EmOD4n1BfFr/5IAOvnCbhUQknEU2WHJ8MBLl/ClCLh6eGC+1JmFr8/YiY5pJWK7MAZkq rsq7DyOh0ovbTpSw+KnOpMitt2SZMrGQR7vyUzngwHBRKPoqTjTYAS4haztECzl89DgT F3KA55YnbswHxs1Da+JqHObFgC1wNsnuQ6JvMmOKePyC8w/S1+n68l3GoIwIkowBu7BK /PEVrkQc1mza9mDaDy4oReh3HzoGp3G9T5HMYd46qAzefc22JayhOlx2xuh9B5q693jy 0aig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=+YxL22vAT4mc95w9xlKTaW2kO0C1aGx6nLvtvyniRy4=; fh=fUYNyqlscryT1QQPOksCxbzFWbsZT6Wrg7kOpuGZwHg=; b=mKkqk4t4f6ipEgU6DBBUR36uk1CYrTSzvmoeQdZzGkCwwM9NzUPd0w41x4CvX31Px3 YzFUSdDXg+glVHyUBYhfKnOcEylC+IExYpnqdqtBp2iqd+Gh9WX/MH1H0lMABIFAY6pk 76jROxlw4euoIMikOTkSq7nuVmcxqL9rV22zPnYXt8W3ZH8PjRWDB0/qDbQqNjbX9opv 3dOafsU3VwC9GygSlVvj+5taqeCm7IOo2oFQlNwry8zu2qjVnQbYS/BX6nt/nfNcjmjy kKybDFp+1CO2moGZ5QVnxMPQyNsf1Q82oOXVZUuwucZD0R1QdqbBGaDGHuWbbupaw2tk lD/w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lE8dwaKU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-176619-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176619-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f2ef3e1si60846996d6.477.2024.05.11.08.52.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 May 2024 08:52:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176619-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lE8dwaKU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-176619-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176619-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 6F4861C20CFC for ; Sat, 11 May 2024 15:52:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5BD255676A; Sat, 11 May 2024 15:52:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lE8dwaKU" 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 84DEB38DD3; Sat, 11 May 2024 15:52:45 +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=1715442765; cv=none; b=RRl5eAuHgyJJ2AHjQtPugD1DQ3VLEq3FthF2f3KZMM9eiBy1wqaYcTcsUm3jJOyZdAnJ2LtYrJ517e44tOM7FYHLmjym9+NHFrkTQaW/AvM7oS6s8Ups/vw3UOk+YO2QxR5YZdo9mv1Hf/25c2HYsIDbwet9I8sLRG3hspXSuv4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715442765; c=relaxed/simple; bh=I0ll1PT06G3pFgzR9h6/T/HxLGGQr8T4pG8CPzC9UV8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jUN3evVF09PgMhnbD09fnuQwJV78+urz3w40SDwosc3YpfBCmo38iSkkhr4hnS0cKviKvXbL5r3r7QcU+NZ4k/ZvLrLXS2WrXZZjvR4NQqczFgScT38stI4wYJNICtWU6xB4rc5khWkeeyVGTOMlv60zZ1UVqHg12ZMqSm5c7nU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lE8dwaKU; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FF47C2BBFC; Sat, 11 May 2024 15:52:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715442765; bh=I0ll1PT06G3pFgzR9h6/T/HxLGGQr8T4pG8CPzC9UV8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lE8dwaKU6Nqbu5AEHC35mmB2RCIzmhM/2rLRy4HPELOyeaXqgD7vhpwRkKRDq6FWc X+sM7SKPzcgmdEvhusUd9zbr8F69KNk3/Q9wEHIx0R+Te3BvUGSXuYkP5O14GRFbC4 QDTbdYCE/zT1QOGsTavq2aLCVHza2hA22F6LFC2G0c7KT7/sZYg/+EMBqWGdLiflGm cSWuHDy2wCeeU/+5oAXzI2Dz6kIaWEIi0evD1xHJHbRGUseJNcpP/UbDvwHdIBoYpt FI6MsmJ5AP300Z2Z0qJliZfLJkzR0dL7PkApXBJhXLDTy3kUoMK3nt5aQSTkYk2Vkf w6EMDPE/+GMaA== Date: Sat, 11 May 2024 12:52:41 -0300 From: Arnaldo Carvalho de Melo To: Ian Rogers Cc: Justin He , John Garry , Peter Zijlstra , Ingo Molnar , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Kan Liang , James Clark , "linux-perf-users@vger.kernel.org" , "linux-kernel@vger.kernel.org" , nd Subject: Re: [PATCH 2/2] perf pmu: Fix num_events calculation Message-ID: References: <20240510024729.1075732-1-justin.he@arm.com> <20240510024729.1075732-3-justin.he@arm.com> 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Fri, May 10, 2024 at 05:50:29PM -0700, Ian Rogers wrote: > On Fri, May 10, 2024 at 1:41 PM Ian Rogers wrote: > > As such the fix here is incomplete. There may be both sys json events > > (detected by PMU/id name) and CPU json events (detected by CPUID). I'm > > looking into a fix. > > Patch sent: > https://lore.kernel.org/lkml/20240511003601.2666907-1-irogers@google.com/ I applied the patch to tmp.perf-tools-next, will go to perf-tools-next soon, would be good for Justin to test and provide a Tested-by. - Arnaldo