Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1735836rwd; Tue, 13 Jun 2023 13:26:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6/bpTOk+6r4bqny0cVX2ETZ3RM5vZe6wKkhyRzAC94YNPXP5vnMjwH57ja+rdGhJNzZkcR X-Received: by 2002:a17:903:2289:b0:1b3:d646:291c with SMTP id b9-20020a170903228900b001b3d646291cmr5560191plh.14.1686688004506; Tue, 13 Jun 2023 13:26:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686688004; cv=none; d=google.com; s=arc-20160816; b=mLyCDYIDC+NqXR9l+pGN2DZIG30X2G6JAdy47fC0JMv/w9GoNSejsJb+4e9gN/cqhC C0FuiBbUqvO/D68rqDShlxm3zqNmTo2rz+MQ4pjIfhrfQomhk/zYTuIVu8w9U2p66FIJ 5GXpOym3Q7y/GM6r2qiRarJl8n5EILNPQFN0s8eOrQ4Hb63n2TAfDIDTON3v7y3Phuaj LD1LGlTu1wzr8OFwkdL8dsQj8yR2U4wypcybpsIcmaxzEc9QSjF8qqUpgEH+2SVo5FHR 40CQN9qF6wyV0PWLhrVSEIGwLcnD6ZgQjM1Mz+wKGx43I8SM8qTd4N3DB/vq8XtFqCDq 1riQ== 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=qXZYbcN4lT4MwovmyfDQYwlkMbjb1em4SMZ8xBlxtCs=; b=Abh3zAlAqmJneHsq8zxCPcj687ffUFBlk2XATOYECxabq3Cj853iSJJ/Axf6iWL5Bk 4MukYU0sjO2+WTsxHcd7c2JXtr/+L7vfs27IC96GVLXOuoe+jie+cyuGhXJQkaVB4G8b Po0YqUGsEiYcwrIh073Hoq+je4lKY40f015LHkvNp3ZkHq0JMFYv6oo1QfDmZhby/dbx wE5Y1BnwLy4qXQiAy4nIzW8M85gNRA2GI0Opc8+Q/OgMqdOaudDo6PzjBIciiRpoporp 3kcPsQGCD4yO5luY8GsYdyuZGDzSQ2eWk/5Sv3mbaHSm5yuM9EsKgCTEto/R8mKNNX5b tkXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=7P+JWTqo; 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 o14-20020a170902d4ce00b0019c93e0dce0si6149392plg.254.2023.06.13.13.26.30; Tue, 13 Jun 2023 13:26:44 -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=7P+JWTqo; 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 S232055AbjFMUR4 (ORCPT + 99 others); Tue, 13 Jun 2023 16:17:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231950AbjFMURy (ORCPT ); Tue, 13 Jun 2023 16:17:54 -0400 Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FBD0A7 for ; Tue, 13 Jun 2023 13:17:53 -0700 (PDT) Received: by mail-qt1-x82b.google.com with SMTP id d75a77b69052e-3f98276f89cso3981cf.1 for ; Tue, 13 Jun 2023 13:17:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1686687472; x=1689279472; 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=qXZYbcN4lT4MwovmyfDQYwlkMbjb1em4SMZ8xBlxtCs=; b=7P+JWTqo/e3oHiBcBjVlnIK4cD2+AO1Irn4+L5r6prMwkbhG4VHXGoRVMUd8rfypWE xqSMBWVx+c6OMPd4pisCGsJSOVVuK5AUAFx4uK/dnhE1pymPHMNlHW+POxTYaxPVdYSb 3+82UqxGWVruw7f+dcplHLVmXLuKV1sNEKHxEVypwHPKiwv/tlhf+RjddK8CUcjwvN06 lrC8J359WkUxC/ocI1ya1q6mroKPB/Y/xDmmFU/rhoGgFeax8hZkoY7iyd+8ECYq9iX3 wvQr2xbykQTUq+8xUWFuVtfphyzv8pxdGQ6Ol7ttxU4J0JNbtjU6X525A+NeGR3ENWTT q6LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686687472; x=1689279472; 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=qXZYbcN4lT4MwovmyfDQYwlkMbjb1em4SMZ8xBlxtCs=; b=Isby3y+6+livuhI4zNo+43jxEzZLd5hyiEuATo3YjSnYGIE0pSHItT2tX67Mv1ZdiR CxSAHxyaawNHmqPNPr2gk8L5alx9vL9Kw1H23iwy++YIhS/9VAsIg6InLgnpX/zI8mDp BKXDS6xpcHkWsSPanRxWQNN65jizUxu/TYPcXCQScdWAt2DK57+z3XRGe08wo4oxT4Y0 u8cVE7BpHKvO/nTKyyBYT1EsBSi0ykK6UDyhvvEE/auK/GOhnnHAB813SwuDHsnNCHnx r2rmdXu3lzMFhaWqRlpS8TfyIYB7M/yzfRtBK4Ranzdkd6u+pQO+Ba0vNKdBtRrSrzyD tIew== X-Gm-Message-State: AC+VfDy6EceiC0GzQ2+kbil9vbBUxv/4u0Fx/gbx/va6BKSh7WAU16s9 18W7C3fat+35rSecwqfPbYGdrrDZXHMOa4sIeCz7KQ== X-Received: by 2002:ac8:7e8b:0:b0:3f9:a986:f3a4 with SMTP id w11-20020ac87e8b000000b003f9a986f3a4mr44756qtj.25.1686687472411; Tue, 13 Jun 2023 13:17:52 -0700 (PDT) MIME-Version: 1.0 References: <20230607162700.3234712-1-kan.liang@linux.intel.com> <20230607162700.3234712-8-kan.liang@linux.intel.com> In-Reply-To: <20230607162700.3234712-8-kan.liang@linux.intel.com> From: Ian Rogers Date: Tue, 13 Jun 2023 13:17:41 -0700 Message-ID: Subject: Re: [PATCH 7/8] pert tests: Support metricgroup 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=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 On Wed, Jun 7, 2023 at 9:27=E2=80=AFAM wrote: > > From: Kan Liang > > A new field metricgroup has been added in the perf stat JSON output. > Support it in the test case. > > Signed-off-by: Kan Liang Acked-by: Ian Rogers Thanks, Ian > --- > tools/perf/tests/shell/lib/perf_json_output_lint.py | 3 +++ > 1 file changed, 3 insertions(+) > > 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 b81582a89d36..5e9bd68c83fe 100644 > --- a/tools/perf/tests/shell/lib/perf_json_output_lint.py > +++ b/tools/perf/tests/shell/lib/perf_json_output_lint.py > @@ -55,6 +55,7 @@ def check_json_output(expected_items): > 'interval': lambda x: isfloat(x), > 'metric-unit': lambda x: True, > 'metric-value': lambda x: isfloat(x), > + 'metricgroup': lambda x: True, > 'node': lambda x: True, > 'pcnt-running': lambda x: isfloat(x), > 'socket': lambda x: True, > @@ -70,6 +71,8 @@ def check_json_output(expected_items): > # values and possibly other prefixes like interval, core and > # aggregate-number. > pass > + elif count !=3D expected_items and count >=3D 1 and count <=3D 5 a= nd 'metricgroup' in item: > + pass > elif count !=3D expected_items: > raise RuntimeError(f'wrong number of fields. counted {count} exp= ected {expected_items}' > f' in \'{item}\'') > -- > 2.35.1 >