From nobody Sat Feb 7 21:30:39 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F1FDEB64D9 for ; Thu, 15 Jun 2023 13:55:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344202AbjFONzg (ORCPT ); Thu, 15 Jun 2023 09:55:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344469AbjFONyn (ORCPT ); Thu, 15 Jun 2023 09:54:43 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DC4A1FD5; Thu, 15 Jun 2023 06:54:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686837282; x=1718373282; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jazqzmxuygKHAVF1T3XyECyr+VZwL4+XwB2HASyrSgQ=; b=ADYGDOf3H+cdA92Ar+vhVwGS/K3msFYJKp68j/WHgNmfJbozrTlpdaxi wxKvXdT3ZZOw8COcUajuHlZnRaUpWTvoSVFgzeuBZhTzWu2HwCCNw5sy6 E7tIcw1Us2EXpNqAsVekoZfOVt/ky5LW1YRaAbURapoGZ6sqrwdk6K9Q8 VE+H4LQkqX/Fv1x294Pq8bi8llBWRLArLXHz60DwScbo3F51wG+DNeA6M nYYSZOGRyawnb5kE3Zij8k55VPQtU2dad5GumZbR3I3nlVey3zKsRBBDK gPKH4eBSv/YrBdifmII6piqGgw9xsuSNPpCcKbd9aGtBXHORXgRGVMLE2 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10742"; a="356411418" X-IronPort-AV: E=Sophos;i="6.00,245,1681196400"; d="scan'208";a="356411418" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2023 06:54:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10742"; a="782527066" X-IronPort-AV: E=Sophos;i="6.00,245,1681196400"; d="scan'208";a="782527066" Received: from kanliang-dev.jf.intel.com ([10.165.154.102]) by fmsmga004.fm.intel.com with ESMTP; 15 Jun 2023 06:54:40 -0700 From: kan.liang@linux.intel.com To: acme@kernel.org, mingo@redhat.com, peterz@infradead.org, irogers@google.com, namhyung@kernel.org, jolsa@kernel.org, adrian.hunter@intel.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Cc: ak@linux.intel.com, eranian@google.com, ahmad.yasin@intel.com, Kan Liang Subject: [PATCH V3 6/8] pert tests: Update metric-value for perf stat JSON output Date: Thu, 15 Jun 2023 06:53:13 -0700 Message-Id: <20230615135315.3662428-7-kan.liang@linux.intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230615135315.3662428-1-kan.liang@linux.intel.com> References: <20230615135315.3662428-1-kan.liang@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Kan Liang There may be multiplexing triggered, e.g., e-core of ADL. Reviewed-by: Ian Rogers Signed-off-by: Kan Liang --- tools/perf/tests/shell/lib/perf_json_output_lint.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/perf/tests/shell/lib/perf_json_output_lint.py b/tools/pe= rf/tests/shell/lib/perf_json_output_lint.py index 5e9bd68c83fe..ea55d5ea1ced 100644 --- a/tools/perf/tests/shell/lib/perf_json_output_lint.py +++ b/tools/perf/tests/shell/lib/perf_json_output_lint.py @@ -66,10 +66,10 @@ def check_json_output(expected_items): for item in json.loads(input): if expected_items !=3D -1: count =3D len(item) - if count !=3D expected_items and count >=3D 1 and count <=3D 4 and '= metric-value' in item: + if count !=3D expected_items and count >=3D 1 and count <=3D 6 and '= metric-value' in item: # Events that generate >1 metric may have isolated metric - # values and possibly other prefixes like interval, core and - # aggregate-number. + # values and possibly other prefixes like interval, core, + # aggregate-number, or event-runtime/pcnt-running from multiplexin= g. pass elif count !=3D expected_items and count >=3D 1 and count <=3D 5 and= 'metricgroup' in item: pass --=20 2.35.1