Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2803274rwb; Wed, 30 Nov 2022 11:04:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf7kWvgWPsm3ePjpMlQsX98O0DGyRVSP09AEcRlsJImI5SaNRCU5ubYdN882kF7VVpJbYJ4T X-Received: by 2002:a17:907:8dcc:b0:7b2:b5aa:f1e0 with SMTP id tg12-20020a1709078dcc00b007b2b5aaf1e0mr40828197ejc.54.1669835044903; Wed, 30 Nov 2022 11:04:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669835044; cv=none; d=google.com; s=arc-20160816; b=tv4fMUa9SBk9acqS4FaQnVH0dupAovwnUE9+iok1rNaao0sioBZwNx1C9HGKdK+nqL INhz97FTuj8FGYUz1trfVi5eC8oXSHiIc79hE9bfzfV3e6Js7K5hQXW38orothSwTnpB HkZTFF7tjVlQyimFNXKOaGIYmR7yk/snA+SgRtIpqFL5L/Pk4QbvOWt+a5aO588umxo4 8keyohfVzdu1Oai/vS8Tqexce2hiuweWTZgAgqyy3YpoHPRdgWbSCsAuM4t40CXM09YO 5wt+OGjSDrCd5CFOYck0gLdgpuXideZ89mghvAjKfi+wjytR67dnZGkNhO51m40w79/K GZsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=Mt9j106G+FOPWfXDN0MyStsR9ZfI3uJQSCfy8yQyoZ4=; b=HY7vhPC+lDJJzrY2x6Aqg5vQJQt4XfgiO0sv9dqoqalUax0k2s6QrPZgSpeGh0NC/O HRjLQrrk/52VjraTH5mQeM9o+oy28vyni5amH3JR7sxXG1JULwr8KDfFI9I6w+zcCdz6 FCRlqQfQIF3BN4chAwnR+urt5eEcn4kn8hktRekE88fLcFL/lo1YdSGQk0dr/A2qTxuf l3YdGS4g6WhI524Z/6mo6V3CqkCS5ULNVSBB/vQE7vVZwtlspc0/VQflHchj/K06528+ K6PKd2wwbZBYnFkIMFZLdRc9ZShC09SO0bMKQN2Yw+V9v6fj4GsRB8TmHrEDviQvZ0aJ FjCw== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ss2-20020a170907c00200b007bed39516b0si1462577ejc.921.2022.11.30.11.03.45; Wed, 30 Nov 2022 11:04:04 -0800 (PST) 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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230093AbiK3Sb2 (ORCPT + 83 others); Wed, 30 Nov 2022 13:31:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230041AbiK3Sb0 (ORCPT ); Wed, 30 Nov 2022 13:31:26 -0500 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF6CD8DBF2; Wed, 30 Nov 2022 10:31:24 -0800 (PST) Received: by mail-wm1-f44.google.com with SMTP id ay27-20020a05600c1e1b00b003d070f4060bso2079182wmb.2; Wed, 30 Nov 2022 10:31:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=Mt9j106G+FOPWfXDN0MyStsR9ZfI3uJQSCfy8yQyoZ4=; b=1g+EroUdJ9UYfQY3wkG3RVhmx6jOrGVnVnxM88KUMNwHRT/AzH3I0LTK+M5AaK7PtX NwDjRA77uLTrJIfrglrKfphTsnfD3v912ETcLo/915EdvZvSd1OEIYk4H8neRxHEM79H Jx1vM+yHjdyBNMwerTYoq/x/ojjLyAh9TxRRISq4kv6OO2W+XiVVrdX5+OC/pi14IeQG 37eIRLOkEIPjKd7wa8ruYZuqJicMiCV21/0nqM03abK08lAmfCjM23v/h8cc75RZwxZl c9d/GsL8roo5WpxyyMI7qkcIKafx63Lq6odIjUqfvlkZNZRYq/b82/N4eGHyZZafxpfw K5wA== X-Gm-Message-State: ANoB5pn9lisfmGQCQECPiMF1J4XT7Hv31vellvXSy969iisouNMuMOjn mulpke28+VhMye4kg2aDNNK9oZFM3sXHzbZTCLw= X-Received: by 2002:a05:600c:6885:b0:3cf:a80d:59cd with SMTP id fn5-20020a05600c688500b003cfa80d59cdmr39435699wmb.5.1669833082922; Wed, 30 Nov 2022 10:31:22 -0800 (PST) MIME-Version: 1.0 References: <20221130111521.334152-1-james.clark@arm.com> In-Reply-To: From: Namhyung Kim Date: Wed, 30 Nov 2022 10:31:10 -0800 Message-ID: Subject: Re: [PATCH 1/2] perf tests: Fix "perf stat JSON output linter" test for new output To: Ian Rogers Cc: James Clark , linux-perf-users@vger.kernel.org, acme@kernel.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Hi, On Wed, Nov 30, 2022 at 10:19 AM Ian Rogers wrote: > > On Wed, Nov 30, 2022 at 3:15 AM James Clark wrote: > > > > Commit c4b41b83c250 ("perf stat: Rename "aggregate-number" to > > "cpu-count" in JSON") renamed a field, so update the tests to reflect > > this. > > > > This fixes the following failure: > > > > $ sudo ./perf test "json output" -vvv > > 96: perf stat JSON output linter : > > --- start --- > > test child forked, pid 327720 > > Checking json output: no args [Success] > > Checking json output: system wide [Success] > > Checking json output: interval [Success] > > Checking json output: event [Success] > > Checking json output: per thread [Success] > > Checking json output: per node Test failed for input: > > ... > > Traceback (most recent call last): > > File "./tools/perf/tests/shell/lib/perf_json_output_lint.py", line 93, in > > check_json_output(expected_items) > > File "./tools/perf/tests/shell/lib/perf_json_output_lint.py", line 78, in check_json_output > > raise RuntimeError(f'Unexpected key: key={key} value={value}') > > RuntimeError: Unexpected key: key=cpu-count value=16 > > test child finished with -1 > > ---- end ---- > > perf stat JSON output linter: FAILED! > > > > Fixes: c4b41b83c250 ("perf stat: Rename "aggregate-number" to "cpu-count" in JSON") > > Signed-off-by: James Clark > > Namhyung mentioned reverting change c4b41b83c250, in which case > merging this would break the test again. I think the revert is better. Yep, I will send the revert soon. Thanks, Namhyung