From patchwork Wed Jun 14 20:38:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wang, Weilin" X-Patchwork-Id: 10791 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp217366vqr; Wed, 14 Jun 2023 13:46:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6vaqq6aIbFjbF5C3FNYTrRlnxe8NgpPViisOatcbE/+oxGB5vXd8SGvq9XPIyfvmzoUtay X-Received: by 2002:a17:907:9611:b0:971:2eaf:556 with SMTP id gb17-20020a170907961100b009712eaf0556mr16115621ejc.18.1686775580450; Wed, 14 Jun 2023 13:46:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686775580; cv=none; d=google.com; s=arc-20160816; b=jT5kxUxFLOc35fvUGI3Q9IL7T5kyS54Gla+iNZybsf1+VGtFjoMF8P8nvA1Brfwlhn 1tNjxcpv7JSGwcVavRV1F763JZjrjQb2nHh7N181XRIGoi6Mdr9RdLjO6xRnlfAB3p/Y ZV7eJ4HKThfLPhH6uph8Icl/1dLt5iegtvo6qWVVl5IW4zqgLUm8hd86DJu3ShlamNtk urRXClqPBvHPqrnesc7a91ap2V6L50CzM79TARb2tacmkeWRQqOSLzCTp73qBO88MqsZ kEO0YeboEZ+KhcXod/XnMLRtuf8xKh2GZZQiSHbiXdnfKXvy1nRYD+2XNE993npAWxRB YNOA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bJQ3WhblF0RXAaoKQ29mtb3edhDEGA3ukysxtHpfoj4=; b=DxL7+Xabxx4YdjqIRsngb7E/QS4PqOtUnxGcfv2wQFLHFC3TPUTzNkzHUeiN4i6ePm nIB5vcMmf4LqBPbmyU976NJpSiW0KoysAgNapWsRUhqorycQF4PyZ0E32ZDZeCDCSGB5 TnpHQ6dXu3QZauU82OGXQh4PQss/P/eQr0rPUp0KlDoDBSqmCTKCiN76yGWZ0YavpS6A s+3yu7R9GDDUdGX0rdTmtZukGIgSCVh7436rSDvQFUr7lMRO2iV6MrwFl16quU653WwD dUdMxA18GPj37cVd62ESsJhTjN7YBcuFYXXoQyyi0mIoKnPINt8rdSH13IY/+3nrwpQf wO4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LmG+PbXn; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dt8-20020a170906b78800b00977d6ab6c7csi9043747ejb.594.2023.06.14.13.45.55; Wed, 14 Jun 2023 13:46:20 -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=LmG+PbXn; 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 S237004AbjFNUir (ORCPT + 99 others); Wed, 14 Jun 2023 16:38:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231747AbjFNUiq (ORCPT ); Wed, 14 Jun 2023 16:38:46 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C43B7268A; Wed, 14 Jun 2023 13:38:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686775125; x=1718311125; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mlc58NZmO+HCGma3munqWCePgPA+rLtK94q4D0e6VkI=; b=LmG+PbXnUjWbZNTnOlKoAXVxf+/ktFOStJUDzss7gxaoCURRqvd+KldO s+/OxL1//QtgKJtGQPGz+28Y57soTYxaLTDa1yZ3q/6CyCMkU5MXgLR9y VS/HMVqjsatzw1kOqHADPz8FkwDMh4q2/eCsZOKwdDqUPWqW+2B3JsDiV 1sGmsCqng2okCpPXztAScwCQHbkaUAOuyQy3bXjJNThuENSQGdGKNWsw9 E08wL4eVBP/JlnwC/Ush3HHj49TBGZAqC5pqrOYN2Ng67GnpfcKaPCGp9 JsGXB4RJP/osOBI65fTcyBKwePOkhm5cNEx5lwNckcJdzbhm8HyYa8Pmd Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10741"; a="361209016" X-IronPort-AV: E=Sophos;i="6.00,243,1681196400"; d="scan'208";a="361209016" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2023 13:38:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10741"; a="741963182" X-IronPort-AV: E=Sophos;i="6.00,243,1681196400"; d="scan'208";a="741963182" Received: from a0cec87da3f2.jf.intel.com (HELO worker-node-1.jf.intel.com) ([10.165.55.163]) by orsmga008.jf.intel.com with ESMTP; 14 Jun 2023 13:38:45 -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 Subject: [PATCH v3 0/3] Add metric value validation test Date: Wed, 14 Jun 2023 13:38:21 -0700 Message-Id: <20230614203824.2895333-1-weilin.wang@intel.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: References: 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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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?1768243969698363647?= X-GMAIL-MSGID: =?utf-8?q?1768712391026363311?= This is the third version of metric value validation tests. We made the following changes from v2 to v3: - Add explicit data type casting to float when parsing perf json output [Ian] - Add an limit of rerun up to 20 failed metrics v2: https://lore.kernel.org/lkml/20230609162625.100897-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