Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp351148rwd; Wed, 14 Jun 2023 17:20:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7xJQBAvtuJ+zvzlqOTZdN7Lfkj5/kQkbKoxLvBpdVYa2B2kioZr+HDvkzwSlDc11tiNft9 X-Received: by 2002:a05:6a20:3956:b0:10c:41a6:ac1b with SMTP id r22-20020a056a20395600b0010c41a6ac1bmr3798861pzg.38.1686788404709; Wed, 14 Jun 2023 17:20:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686788404; cv=none; d=google.com; s=arc-20160816; b=fVkrrnNXCHqU75oCP0uxjE+iRnYzs6UrFvM9SvBkUZ074Je2VmRJKGVE8muxDbGUlk p6LoiBxKjd/A+O+u0pnV1bnmKhUb8ghiVylwkCR0A27a2VXYYlCuam71qfKo8hfQemG4 5zYjFtZJEzSVT3vx8svY2p4MD2GBvwVKDEgNmc/JhBWumTNeniT0DbnRjbe163IgEn7N 4Uzzqv4dw3STorZgKgDxQh3KFSQGZeSadO2NMKPk+yiImsSL7fi+DUUGJ7XjZXyH4RYc ufxv/KMDfwU/kkrZ1yG+KISU+oumKaM44f6XItprCJREYdvET1egNLWDPv52XJBCV9GJ WffA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SZP3EoTvL0UVrbRCQX0AGfdynk5eU58WDhSlYif2cVg=; b=D+1iqAfpiMlXwmMS1q0J/7X1uMy4RgeYSUSNRwT2v/h+ownnIo78bovVeXGE6rxQ9G rEzTu9G6RrmmeMHWppeX5hTZ598asmXW4oPfoGWvo4XcxE/vbSxjRyL6owjXDQV4Rruh +VyP7JxLB7HYMEDPngN2wgWqEAdEe6Em0Kd41mVc+GkLhGiCs1zuRtJGu+VSw5piqgQc +JE2QWo1DuvgygwpvCDIuPGMjcTGWxOyE7PrJuc18bp8dcPen8wJFqvc8zcej+Usa96G 3wPtL8VwSx6O81zc0aJ2gHZhvg+socuNbN0FnnGyjRfUG3XIDMeBHeBeIf6QsyMrVRSd 4lgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YB9QJgiG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x15-20020a170902ec8f00b001a644fba6d8si11996559plg.86.2023.06.14.17.19.52; Wed, 14 Jun 2023 17:20:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YB9QJgiG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236258AbjFOASg (ORCPT + 99 others); Wed, 14 Jun 2023 20:18:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236434AbjFOASL (ORCPT ); Wed, 14 Jun 2023 20:18:11 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EF70212C; Wed, 14 Jun 2023 17:18:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686788290; x=1718324290; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ZXASlYjjvVdCvbUa3jANIWB5T9bW3KeIVToNgdODp7k=; b=YB9QJgiG9sKp9uP+ayB5UgmWermFB5PZzr+z2Pp8dSneVfYtuqebFD9D 2urC4bPZS5vnItMGfvu5+juHZpxdTHGzQudNRA/gYXOEuZ1Xj0P0Rrxp9 Vq8MNLSZektgTXlk9jE39kHw40uVMtQ/JUt9J92Xb1N5TWzoSDMKvTEzH NTwboQK5t8Ni+zrttqzA1xpulCoTYN9/pLHSI3lOgzmDBsHrcGmWqKPnH DOgVLj2BhGcO3+QzS13Unl1cAkTDfJSrx5wDsY4pz4BAvSGjabWcyZ69t Oz+dIf4gT1H+l1PV73rp2hOkVEFxI2FMWZCVQYXI87jgDfGQwZxPpZOmX Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10741"; a="357652519" X-IronPort-AV: E=Sophos;i="6.00,243,1681196400"; d="scan'208";a="357652519" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2023 17:18:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10741"; a="825021505" X-IronPort-AV: E=Sophos;i="6.00,243,1681196400"; d="scan'208";a="825021505" Received: from kanliang-dev.jf.intel.com ([10.165.154.102]) by fmsmga002.fm.intel.com with ESMTP; 14 Jun 2023 17:18:02 -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 V2 6/8] pert tests: Update metric-value for perf stat JSON output Date: Wed, 14 Jun 2023 17:17:33 -0700 Message-Id: <20230615001735.3643996-7-kan.liang@linux.intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230615001735.3643996-1-kan.liang@linux.intel.com> References: <20230615001735.3643996-1-kan.liang@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kan Liang There may be multiplexing triggered, e.g., e-core of ADL. 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/perf/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 != -1: count = len(item) - if count != expected_items and count >= 1 and count <= 4 and 'metric-value' in item: + if count != expected_items and count >= 1 and count <= 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 multiplexing. pass elif count != expected_items and count >= 1 and count <= 5 and 'metricgroup' in item: pass -- 2.35.1