From patchwork Tue Jun 6 20:24:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wang, Weilin" X-Patchwork-Id: 10380 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3651253vqr; Tue, 6 Jun 2023 13:27:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ApvhL25u5cqHk/4NKvwluuNJknXduL5+xhhj4/dqXLzC2+vjvruaIGR7ezq0xtcukI/KA X-Received: by 2002:a05:6a21:2c95:b0:103:d538:5ea6 with SMTP id ua21-20020a056a212c9500b00103d5385ea6mr394383pzb.48.1686083234556; Tue, 06 Jun 2023 13:27:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686083234; cv=none; d=google.com; s=arc-20160816; b=hZ/vCB6OOy8eyjPrvoo5gOSWvNIAlZ+B9PZ3oJhlU6HAdJlfQhjEmxVPQlCEYsfquT bF4OncgACqP3GmZdR+Qni5sFZGIDS0g5WwdeSumt3sQxoNfCNbgQ+bu3gCfPiAe1+ft6 hZ0Oqk22TYB+1yrdGVmE4+RwWChuf6NW224X/OzkvpZOgT/llzX13n0QAontHd96DVn3 dCCA71zXoHNjLSs7wLX5wSXd4p2UMQbCtFAJto1xQqoFCR4/nNDTtJwAFpHWKo+VCrD5 5GtxVX0s5HmPcZmfv+XioWsFHfNHWw756bOLpVtOUwNw/T82OTvMyLtIRU1Mopiz+KZG +PNQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=AUyUlld4/coDumvI2Qbw01UYKicqIu48nJUypwhfHz4=; b=jB9v7MJPmcbu7dA6EEzFt/VJqRZzkbRPXf33hn4pD8bZWv9iQpxfAOMOLtJQzDrXeD 2+HsBv06y+0DzScU2+znyaitjRdkipPUtTYSzyPPLjpyvZ4cwcBtpQyCAu93lBAx8z00 GHvWD9Brnlt63nt2teDTwG5jI3WVyRNQHG71PSXWV5ehpVbUB/fH4nOKv5zEuM7WDSGL maOr4YWFqwRA0KLSlPRB1z/uhWXpalnZQ/na3b4NN2D10wr0Uaf+CXxPS/IEWfv2py7l MgM87SuPoYAE3ZpKzNoprd4AFdDTbZs5N7K2Fu3bvfNJ5j13nRbniWJcIaUS18tGm9s8 gjXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@intel.com header.s=Intel header.b=g2o2be6h; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a19-20020a1709027d9300b001aaf2ced278si7593113plm.430.2023.06.06.13.26.47; Tue, 06 Jun 2023 13:27:14 -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=fail header.i=@intel.com header.s=Intel header.b=g2o2be6h; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238734AbjFFUYx (ORCPT + 99 others); Tue, 6 Jun 2023 16:24:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239348AbjFFUYv (ORCPT ); Tue, 6 Jun 2023 16:24:51 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A24A1A7; Tue, 6 Jun 2023 13:24:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686083090; x=1717619090; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=JTSfzp4d5BayGS+yELJc8KP9I7Woge+Z1oHfJzhTnHg=; b=g2o2be6hMpOvQTGgV3SxsNjpYRx0/Or/SqtC1DIXl0IG+JQgMr023lNF 2gWhcovlPsJXwY3i6dMUdFV9aGbsYLzuxUD9Bl+WfsytiYpev7ALkohRK PYNmrEckO/lExuAiSnuVk2a4JGDb5bfYS7S34LSNHDGdh5p3JbD6+2P5F gABN9gQXxnCSuWf3pgaQrQP17sreLfSw2fhQRmpRNY1WlyXVNLUBcCW3Q W5hUy5gwp5cxfgBiGdRFCxXpbzsD67RVcZGzqPHSz1QnPa+pmte/IOJk/ KwuXYcyte65bf00+eVrM2xMlxCuhRNpPj9oC8yqLq4bMc34FD/uCOD/5c Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10733"; a="422631143" X-IronPort-AV: E=Sophos;i="6.00,221,1681196400"; d="scan'208";a="422631143" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2023 13:24:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10733"; a="821808446" X-IronPort-AV: E=Sophos;i="6.00,221,1681196400"; d="scan'208";a="821808446" Received: from a0cec87da3f2.jf.intel.com (HELO worker-node-1.jf.intel.com) ([10.165.55.163]) by fmsmga002.fm.intel.com with ESMTP; 06 Jun 2023 13:24:47 -0700 From: Weilin Wang To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Jiri Olsa , Namhyung Kim , Adrian Hunter , Ian Rogers , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Weilin Wang , Kan Liang , Alt@vger.kernel.org, Samantha , Taylor@vger.kernel.org, Perry , Biggers@vger.kernel.org, Caleb Subject: [PATCH v1 0/3] Add metric value validation test Date: Tue, 6 Jun 2023 13:24:18 -0700 Message-Id: <20230606202421.2628401-1-weilin.wang@intel.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767986413920869462?= X-GMAIL-MSGID: =?utf-8?q?1767986413920869462?= This series introduces metric value validation tests. Weilin Wang (3): perf test: Add metric value validation test perf test: Add allow list for metrics known would fail perf test: Rerun failed metrics with longer workload .../tests/shell/lib/perf_metric_validation.py | 574 ++++++++++++++++++ .../lib/perf_metric_validation_rules.json | 398 ++++++++++++ tools/perf/tests/shell/stat_metrics_values.sh | 19 + 3 files changed, 991 insertions(+) create mode 100644 tools/perf/tests/shell/lib/perf_metric_validation.py create mode 100644 tools/perf/tests/shell/lib/perf_metric_validation_rules.json create mode 100755 tools/perf/tests/shell/stat_metrics_values.sh base-commit: 7cdda6998ee55140e64894e25048df7157344fc9