Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp8125690rwd; Tue, 20 Jun 2023 10:28:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4bnAQWCvAtJswcYrOmrc1Ued7ulpcMrkZpa5wiQ3sjDtMYXNOidcXwnyN5lZ3Wpis1POYz X-Received: by 2002:a05:6a00:2313:b0:64f:835c:a9ff with SMTP id h19-20020a056a00231300b0064f835ca9ffmr12588674pfh.12.1687282084368; Tue, 20 Jun 2023 10:28:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687282084; cv=none; d=google.com; s=arc-20160816; b=veHTp5ljV9ZTWGPk1DzygH5BRl//mCc21jUXwp0Ch4zlyQng3PVuaXra1voqTSuL/B eAI9iqFauoCokXc7SzOdGy8eVmMEGKjfNdydGmWU0T8LPZtA2Y5V/SVbDDi7Ft7qbLCo igDMhJP1OYgz6mHqhwsJKMHahe872fo+m5x6KzUHwX5Pm2oT/lyYmW+nd29xcsUtUn2F c159kWYiIpLlTDasySyTr9hwR0Yzttjl9D/hoQJwQxn5Q2iLXus6zGan2dKVdWf//W/v yvguixAf5lskNBqnom+4D2M+1vqJ/8qri+NjnpC9sc4SZS2VWUDBNC6UZAAHnXsiqKJI 9pyw== 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=kzlJr4shoE4bupeY2xcQ6U7COAkJTYWUel6k5Nd3Cek=; b=QP7nngmUy4WSZmz/qO0pzRkToOYE5lDQhrs8a2Y096Hchq3TNI+OqqLFeuhROM4E8k Pqqjd5zq8nBZFrU0sPnweJmcYq8z3fTZklKyqe10eWtIHkF9eqeRHc8JK2Ldtngc5mg2 Gdd0PwgjspnQJoVHnIu7TnJMWSIPhbk0FU1kMkbnZzI2Hytj36p22uOAdvB6suQ4pNuv f7Weni4NaMpFMb2WhfDnCmOmtP4HcVEypS/LXL3u2HWmeBz/K+d9Oifm492w/SA5jyb8 7Kn1wjanbOncpe18NBX5mJ3ErLAASl4uAHh3f3NdqQostfXV/VznwwB1QpekIfXaCRhe 5fHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BV6gw48x; 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 f6-20020aa79d86000000b0063b64166faesi2110833pfq.157.2023.06.20.10.27.49; Tue, 20 Jun 2023 10:28: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=BV6gw48x; 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 S230466AbjFTRAj (ORCPT + 99 others); Tue, 20 Jun 2023 13:00:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229983AbjFTRAh (ORCPT ); Tue, 20 Jun 2023 13:00:37 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C3791728; Tue, 20 Jun 2023 10:00:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687280433; x=1718816433; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=OBAerPf67KJbNEHvyQM2OXQEr7NY+xfC/oeSx78gcuk=; b=BV6gw48xtQLDByDJQvesnMXYcss3oJZll9TSoejfFWMZhx7RfphWxTq8 meQzhHYaUQsOKf8MKhaSh3K3YzSEf9xplkL50ECQOTcLrFU96po+s7hoI G0YuXkgG0o28uyAwwGHrrYhr/wJzlNqoCVv9rPmdgyacq4TZEmkhmMlBq ZSZ8lbk3Co6CBbUY4RP9EUz8GgjOhxv9KnWLQmnfyE/XO2BveOlPexZ4N y2QoF/qOf7LWI7DZEASYjoc5VHDd5Uwlpzhzo76rXm4L28PwPRxg/InBC /HLoCiKSV/yECMmth2B6WIDaIP0ZaS/ccJZMgbSdTwiKM9me/gvfBTyPE w==; X-IronPort-AV: E=McAfee;i="6600,9927,10747"; a="359929599" X-IronPort-AV: E=Sophos;i="6.00,257,1681196400"; d="scan'208";a="359929599" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2023 10:00:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10747"; a="888314320" X-IronPort-AV: E=Sophos;i="6.00,257,1681196400"; d="scan'208";a="888314320" Received: from a0cec87da3f2.jf.intel.com (HELO worker-node-1.jf.intel.com) ([10.165.55.163]) by orsmga005.jf.intel.com with ESMTP; 20 Jun 2023 10:00:32 -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 , Samantha Alt , Perry Taylor , Caleb Biggers , ravi.bangoria@amd.com Subject: [PATCH v5 0/3] Add metric value validation test Date: Tue, 20 Jun 2023 10:00:24 -0700 Message-Id: <20230620170027.1861012-1-weilin.wang@intel.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 This is the fifth version of metric value validation tests. We made the following changes from v4 to v5: - Update "()" to "{}" to avoid creating sub shell and successfully skip test on non-Intel platform. [Ravi] v4: https://lore.kernel.org/lkml/20230618172820.751560-1-weilin.wang@intel.com/ Weilin Wang (3): perf test: Add metric value validation test perf test: Add skip 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 | 30 + 3 files changed, 1002 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 -- 2.39.1