Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp182225rwd; Wed, 14 Jun 2023 14:16:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4RdIuhzP8ZC8MjM4isPdPf+WJEf/owAQwTe1pb/kVE7DNK5IgkPuOXk2NUMURSbJAce3lp X-Received: by 2002:a17:907:3da3:b0:971:eb29:a086 with SMTP id he35-20020a1709073da300b00971eb29a086mr17193921ejc.75.1686777398830; Wed, 14 Jun 2023 14:16:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686777398; cv=none; d=google.com; s=arc-20160816; b=W4cX2wbduk2naR8/6BDRZi5AJC9nEhJQsaA/bVIWjuROhI+8pXxZ8o68Qbv0B3XW2P vGIKqybDHjGLL68Np5vx8ulK5gcHfK7/esRVR6MyO/ysgwri5vX0bgOGo6zS75PisuxF fG2KLyFVpbA3yt8bZ5vFGjalD3p8TQq7ocUVj/R7PaRI0B4D398qveGx5Gz3+HoOaI7q Z9mUzjPAH6dFDQHUbwvxATo+tfcaoEJwN26e7iivHF/B98t5zW0zyRVA2UFi+ijGYfaM k7I3N8aiOT8U0GqwH2kje5/jIvVPyqXxLSIxr8jIl/4TtxYd/LKGB9o3THe++V9RvqU+ BXgQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x12-20020a170906b08c00b009829f6715c5si57697ejy.524.2023.06.14.14.16.13; Wed, 14 Jun 2023 14:16:38 -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 S236996AbjFNUir (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 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, 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 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 -- 2.39.1