Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp655505rwd; Wed, 14 Jun 2023 23:34:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6tUWymDgbmheYLGC7ef3OQf56H7mH/Yqu7VJvYO/zP4bBFOTvT90cL1mxcfh+VQYuqQBl9 X-Received: by 2002:a05:6402:5149:b0:518:92a2:1697 with SMTP id n9-20020a056402514900b0051892a21697mr2544358edd.15.1686810861832; Wed, 14 Jun 2023 23:34:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686810861; cv=none; d=google.com; s=arc-20160816; b=UkG8gtiXctBEmtYFWB3TSNVBFE9SMjIeEF70i/LAZUnnHbQsiS1yXNxAPztqE+daht GYoAymxGrK634EeA6KNCIcZ/VYRvDmdxj+/7CBRkg7RqQfoAScG5T9AbX6yJ77r4r9Ck P6ySXrZWkyrOBJadcAkccbnC2w8B9//2+dlXhavhzp6fSuJjB0j6ZXxECadVzoMjfAhV U20oUD14RSNqy+t35Wbz0Ju8dJYIt9Q2Lx4p+gnvTPnRF35BhA/Hmmo0mTIY1G/qr55n YbsftWdrY1c30jy5X1FIhaBej559cCDs0RR79tpvzqMdjuyJu6Rc9LQwhF5V6DdiZ8w8 2gNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ywIR2okuzUn+UloyaEbaMZoO6ny14Ojn9IKly/pkEhg=; b=E2sq0WTvOuRu8W/mvEVz4jnzN/+0SKTwKZ6JAPrthgWARjYJt2kGvTV/DSYeK5xOev HOORD7/U81lREL6jxoSnHN8OLDTLRl15bIC3CtkrclyrygZyouabeMBn5Z4QYLKMcuSC QQLuV5ONn61m501zKrjT00LAOc0ZJELAWwUUA9Y5aYfk2LPdcXCwdjdG0zovW/rRYoAc 54iur1zfCcTjIiVMZSUzfy973+9/QpzJX+C97t9bqbnZIeSTbYhFOAO9cmiHB/9L+IJd dA7DjRKutCTz4P0/EZ80/zZifN3++68jMxqoRTexAPr3YcI+NHSVuMSbk5KJzyoHWKxg NWxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=7Ozgtenj; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k4-20020a05640212c400b005187abb17d6si2723133edx.277.2023.06.14.23.33.56; Wed, 14 Jun 2023 23:34:21 -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=@google.com header.s=20221208 header.b=7Ozgtenj; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234714AbjFOF61 (ORCPT + 99 others); Thu, 15 Jun 2023 01:58:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233380AbjFOF6Z (ORCPT ); Thu, 15 Jun 2023 01:58:25 -0400 Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 421E126AF for ; Wed, 14 Jun 2023 22:58:24 -0700 (PDT) Received: by mail-qt1-x832.google.com with SMTP id d75a77b69052e-3f98276f89cso108491cf.1 for ; Wed, 14 Jun 2023 22:58:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1686808703; x=1689400703; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ywIR2okuzUn+UloyaEbaMZoO6ny14Ojn9IKly/pkEhg=; b=7OzgtenjDpipdLe/714hBAAyEAXGuPtp5jcuUFIgYrsVYJSZZ5iKtI35h182NuuHeK GyPHEgvBjl7VyTMKuso/Tb/ZOWj5q4ScTlfMPDgYnDBpvabw+KpcEQ3KS8EUaGUb7odU EwLNltQYLDMjAXk6y/p3fHVDzp/8yFMsDvCpmkF8SvwUIavV6jkBBU8z4lSW4/O/Dejn Ylt4dtN78kUBj3GVfbzq2Ek/TU9EYmGd7tv05LZtAtrdFinc+qYiGPTXktd6DsnFXkEB q0IujfLxPLsaqnIOy8ikSUpKb8ytXsQ/+Py5Aw/3Et2jBIMlyFY5Gd5GnpsAXtl2WIFQ vcJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686808703; x=1689400703; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ywIR2okuzUn+UloyaEbaMZoO6ny14Ojn9IKly/pkEhg=; b=EAD5Hq8vzaiSQxi1ll8hU3lM5yDJZr/ySr+zbC5cQ4aAa/VWdE/v7mxe1+Upl29pwj Q463xQ3KPVYnoThc0F/HGkxmwZsaF3JmGsam7gLuu4V7ox7j5tXOxmnJGA0tIFw5lLP3 cPUJe9yhNZnH/F9/ov1FlyaH8Fi1T76AYNlveoO2kp8jiBBipg7Tyhrvn4+/TMFaxTP/ 0g+RLxnYMqASvNX8ATMvyXZiRsOZbPbaV7Pn8xN5F7lEkeKaP8dhc+g9HiCanUnsVZx9 XRUhLejla8WMzpeuQvqp+b3xBym8dnBg4c5PTyHGrM9Jv65IeAckI+KYCYJjP9RfmC5G o7DQ== X-Gm-Message-State: AC+VfDzpH0Anfkek4J529t7PBZ5Yfg042j/MW3BYVhvhmLCSiV4oBpXl uHLm1UsX+GMON6Rq87RTthuCfj5dE2Kgilkb8vcK0w== X-Received: by 2002:a05:622a:589:b0:3ed:210b:e698 with SMTP id c9-20020a05622a058900b003ed210be698mr67856qtb.7.1686808703249; Wed, 14 Jun 2023 22:58:23 -0700 (PDT) MIME-Version: 1.0 References: <20230615001735.3643996-1-kan.liang@linux.intel.com> <20230615001735.3643996-7-kan.liang@linux.intel.com> In-Reply-To: <20230615001735.3643996-7-kan.liang@linux.intel.com> From: Ian Rogers Date: Wed, 14 Jun 2023 22:58:11 -0700 Message-ID: Subject: Re: [PATCH V2 6/8] pert tests: Update metric-value for perf stat JSON output To: kan.liang@linux.intel.com Cc: acme@kernel.org, mingo@redhat.com, peterz@infradead.org, namhyung@kernel.org, jolsa@kernel.org, adrian.hunter@intel.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, ak@linux.intel.com, eranian@google.com, ahmad.yasin@intel.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable 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 On Wed, Jun 14, 2023 at 5:18=E2=80=AFPM wrote: > > From: Kan Liang > > There may be multiplexing triggered, e.g., e-core of ADL. > > Signed-off-by: Kan Liang Reviewed-by: Ian Rogers Thanks, Ian > --- > 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 !=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 multiplex= ing. > pass > elif count !=3D expected_items and count >=3D 1 and count <=3D 5 a= nd 'metricgroup' in item: > pass > -- > 2.35.1 >