Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp235485lqo; Thu, 9 May 2024 19:47:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVfu1CJAfndyoYpUX6V1qqrbsKkcj3WMq3iJ58OuhFpNVjEH3lz+3IB5bq2t4ZvtrFzQ24GQP3lZdoESjkqMpr0PlQmONaxMlw398jvnw== X-Google-Smtp-Source: AGHT+IEA1VPW5o88FhvMbfT1MH/sqDzNHaUEwmgcUzq6cURzlg7g1LMyROOk4KNVGXrMirZrqkPu X-Received: by 2002:a05:620a:8204:b0:792:bbfd:ca99 with SMTP id af79cd13be357-792c7610a7fmr135654885a.77.1715309278590; Thu, 09 May 2024 19:47:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715309278; cv=pass; d=google.com; s=arc-20160816; b=EQ41UmNdScflhnqR0c3ClHNQdGPwURJD5nlSmRRUhqkOXNcJnGj+9Iw7fb6Zem8XtI viZCsiZYSR1CsXeHmNLRkb7L4dWrVEFmcrJ2YYzVKMShXFhLZ2GeKsHDlnMp5XmvZUUT M4P1+Vt+D7v8/3U5JI8VzKAxqooSWmtOh97kCtHqA/Usd5y/KZKvhmTQ8T67HXnTS1YH kF9bDI2u2NGCDN+L3sfMBcF/c+TDGJCd+PPhISagEm7Vyxdw06e3RiTgjACOjd4SsDkj fV08s8NwJRoZqj754H7R0OvD7UKJyqsLrdd/eZCkPFLJ/QkVxc1rlVJfJ34oPSuGoowd En1w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=GMFY7oy7wsZpa0AGGqZ3332hrp7Kxj2QHhARtcRpuyU=; fh=19wKBpXXPdFwNE6P3L3YSoEFLRVhCF5WqDG+by0JvXo=; b=1AgiF38E2mfkZLq23IAF+gD2NByZ+Ppqgb4D+4v8JDw56jdMSisTySUkfFaWSMA6Aq Kptuq/B5nkz8XxT/RlZSWi5boJge4DKXRZQQ9ImSu1bWzetWNq8KFE+FAhe73MaV5xcM pSMFEJGE8OUniJZtOnOtFw0vLUTb2mAEhBWpi4D8xRarhv5tJNVjWMqGJ5jgRyEZdMQ4 RJQzI1HDWUtL2WTjLQSCKFxNX7xhhQpgkm2pOTIAgYBr8SrxWr3U18Yr1O3ly6NLB7m3 KUOSLN2mE5RfyHvRHjADFgSVm3x7RzkuaVzI/gfpNucUOwMubgina5ZjkWb/79CjO1aR Z/iA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-175222-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175222-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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-792bf28c9cfsi257445085a.182.2024.05.09.19.47.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 19:47:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175222-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; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-175222-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175222-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 5301E1C20F64 for ; Fri, 10 May 2024 02:47:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D08E2148FF2; Fri, 10 May 2024 02:47:46 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 22A18148FE3; Fri, 10 May 2024 02:47:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715309266; cv=none; b=Xg71uwCh9k5jlvk3565fZRyM6sAaWUpe4gha4HE/pBWhH8ENIgGL9jLz17kPHabSgRFuHsa9LNLVX2ZTTDYEWMG6VkrgGrXg/+4rJn/sHsnGMjC76l1/kxqMK4W0MXMYspXaMIQpdzp6gy3hhizb9GApfEOwyjH8zdMOCXXnhNw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715309266; c=relaxed/simple; bh=317oeRBx4Rum6zrlv0IJtX4WWwXaDaWmD1szVz3miaU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=d10eue+JmtdpnK1QgVPihMShLXVgbzdh+cQzzL2sH/9L9jb/lcngSyGtobJAncYT2bdPk8rNjyIER6KtZGEH1oWKJVoTzyIuX1IOlcSMIUL53E5YfEV979zdm9jo61oXRFrvVrcp5xWzbKA07hDXjJD7gc6Rhba9p+JwR90uVyM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3953C106F; Thu, 9 May 2024 19:48:08 -0700 (PDT) Received: from entos-yitian-01.shanghai.arm.com (entos-yitian-01.shanghai.arm.com [10.169.206.117]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 0E7703F762; Thu, 9 May 2024 19:47:38 -0700 (PDT) From: Jia He To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim Cc: Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , Kan Liang , James Clark , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Jia He Subject: [PATCH 0/2] Fix num_events calculation in lazy loading Date: Fri, 10 May 2024 02:47:27 +0000 Message-Id: <20240510024729.1075732-1-justin.he@arm.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit I noticed "perf list" reported the error as follows on an Armv8 Neoverse N2 server: Unexpected event smmuv3_pmcg_3f062/smmuv3_pmcg_3f062/transaction// The root cause is due to the incorrect calculation in perf_pmu__num_events(). Jia He (2): perf pmu: Allow finishing loading json events when !events_table perf pmu: Fix num_events calculation tools/perf/util/pmu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.34.1