From patchwork Sun Sep 17 21:29:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Smythies X-Patchwork-Id: 724106 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 747D2CD37B4 for ; Sun, 17 Sep 2023 21:30:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231953AbjIQV3s (ORCPT ); Sun, 17 Sep 2023 17:29:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230167AbjIQV3T (ORCPT ); Sun, 17 Sep 2023 17:29:19 -0400 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AE32130 for ; Sun, 17 Sep 2023 14:29:13 -0700 (PDT) Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1c39a4f14bcso36473295ad.3 for ; Sun, 17 Sep 2023 14:29:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telus.net; s=google; t=1694986153; x=1695590953; darn=vger.kernel.org; h=thread-index:content-language:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=sVQbPyFdM4luF2DrdTikPfdxX3rv9lXgDVF92WzKQBA=; b=M/jizT2mrDYD8Eb526wI5dfx4sb/d+cj11kY7Gvt8Y8p247CdoG8Mp8WoI9YL3n/6q pYAHEtSuNRl69cyPwnPgqHEcOll+bKLsVm6S8Y783hVXx/ZUsw8REcnbQpoZ01TO6ozd lco0zxbnAuNYp4+w+hJ3M9xrGxB5Z2CTfyxuQJoZRhvrcj4KjPibJuRixkfs4mf+oVj3 R4Noyq9hPVWTW4lor+ljAIbo+mfFB0XJYMc3FrzesOlWQIM7OlDObZ/Yz6MEuQNchemh bN9BB7PwmKSVSlVZVaxbaYeGWSdqnAeQXuUNiSVPHANUP4SROWy7gcKAUtmqB01lWM31 yHdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694986153; x=1695590953; h=thread-index:content-language:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=sVQbPyFdM4luF2DrdTikPfdxX3rv9lXgDVF92WzKQBA=; b=O4wxy8DFwR9cKpI6s3nl2kBKP5n9TbsP7VWbZkUkuo45bLC5ZE2TxIKdnIBmKCvFd4 Bv+2HOuWR6kss8/CquUC20h9TfI6iJK4ojpHUP6YY5bcG1gVDbI5heMJh/NPX8uQDxDn SaUKl83jKCYibH/q15sxVWZFPbyQz3EEVR3ab+r3RXqTJQTEf+qzlaj0o41cy80zNJZj xasOeBL0d8irLnfAPpgFsZTRCPUkJaCN6QlpwLOisettxbCux509y1IKU+qCu55fM//3 myDO4BZg1hfpz55HopyLCUiXNIW3eSqJII2xYNbOJ2QC4OhvF42jYDlNdikPKQIv+iOQ kHgQ== X-Gm-Message-State: AOJu0Yx305jCaJBmHYp0quVepjguLvFjsxu8TT+bIOts2aKUqDI9g1o7 Mamsg4Wa4hz8mM5fs67n+1+jRN+rAUP3lxwPruo= X-Google-Smtp-Source: AGHT+IHJCZYt25NQWNl3KplF0hoF1Mc2Oxzl8kxQCjWQd5Ydn36vmPLYIf6TM+sd4aBU5grh0mKLzQ== X-Received: by 2002:a17:902:c94f:b0:1c3:3dae:5869 with SMTP id i15-20020a170902c94f00b001c33dae5869mr9757433pla.63.1694986152952; Sun, 17 Sep 2023 14:29:12 -0700 (PDT) Received: from DougS18 (s66-183-142-209.bc.hsia.telus.net. [66.183.142.209]) by smtp.gmail.com with ESMTPSA id ck11-20020a17090afe0b00b0025c1cfdb93esm5984287pjb.13.2023.09.17.14.29.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Sep 2023 14:29:12 -0700 (PDT) From: "Doug Smythies" To: "'Srinivas Pandruvada'" , Cc: "Doug Smythies" , , , , "'Swapnil Sapkal'" , Subject: [PATCH] tools/power/x86/intel_pstate_tracer: python minimum version Date: Sun, 17 Sep 2023 14:29:15 -0700 Message-ID: <001701d9e9ae$02438120$06ca8360$@telus.net> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Content-Language: en-ca Thread-Index: AdnprML0/P/rI+TGQ42r3UCRGpjUpQ== Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Doug Smythies Change the minimum python version from 2.7 to 3.6. Remove a 2.X backwards compatibility line. Signed-off-by: Doug Smythies Acked-by: Srinivas Pandruvada Reviewed-by: Mario Limonciello Tested-by: Swapnil Sapkal --- .../x86/intel_pstate_tracer/intel_pstate_tracer.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) -- 2.25.1 diff --git a/tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py b/tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py index ec3323100e1a..6b0790e6465a 100755 --- a/tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py +++ b/tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0-only # -*- coding: utf-8 -*- # @@ -11,9 +11,9 @@ then this utility enables and collects trace data for a user specified interval and generates performance plots. Prerequisites: - Python version 2.7.x or higher + Python version 3.6.x or higher gnuplot 5.0 or higher - gnuplot-py 1.8 or higher + phython3-gnuplot 1.8 or higher (Most of the distributions have these required packages. They may be called gnuplot-py, phython-gnuplot or phython3-gnuplot, gnuplot-nox, ... ) @@ -23,7 +23,7 @@ Prerequisites: see print_help(): for Usage and Output details """ -from __future__ import print_function + from datetime import datetime import subprocess import os @@ -562,7 +562,7 @@ if __name__ == "__main__": # Temporary (or perhaps not) cur_version = sys.version_info - print('python version (should be >= 2.7):') + print('python version (should be >= 3.6):') print(cur_version) # Left as "cleanup" for potential future re-run ability.