Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp6130802rdb; Mon, 18 Sep 2023 05:18:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGGBlwQQKvKzmErGU4bEuNd38bO861NZWSAuEtNC45RctnYDtGrAvUNdF7TMsDq439wbLdV X-Received: by 2002:a05:6a20:320d:b0:13d:d5bd:7593 with SMTP id hl13-20020a056a20320d00b0013dd5bd7593mr6989021pzc.12.1695039514798; Mon, 18 Sep 2023 05:18:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695039514; cv=none; d=google.com; s=arc-20160816; b=KkK36wGvfDvI1Z6OCSP2ygjEP1uHHM2kUDAVHplW4XTFD3ioFcPgxQMwDVDr7n6DQy aULowp1RbX/oOUntXzFbTll4yXgkrzN6c9ndiVFjfB4wSh08/Re5lS+dWj9tFLpXRP+A E9SUmUwpvFpgBUGBysV1BAUpZwwHmb6hIzgokDALexlAkbWiJR+0d2DUE1P6FZvu9fzQ C2ib6r5neCYicjUnkjU75PZRPIRPDbxD2kDbZAbX8xhQq62IXl8febu2V502CyGUhuKo lcb72aHxsyJknGcciE+Xbbr/QiJi/wrC8ZCpnzpmddWuKm6IYQgiot8wxBJVprZR0n60 DrEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:content-language :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:dkim-signature; bh=fkj+ilWgLWNJQbtZF0y92BH3EfaM8mYrGUt+ZNYlBcA=; fh=uCSJ1gIZ08UcaODCEnIRDDuAsPDzNmvIP0vkXozk5XM=; b=MhUvnHRIQqe2G5NlWFUI1D8bBIBFc3ktZ9b/9IcRF4PU2nIhHn5wepWEX8/y/ftvpX 8s3+gyKgnkTsiOF46MUYcCXFHPuz/AiWZGZ5uFADXo2ZKNj+5nExF7tABtKciwnnJkyf et+saM4r6Z2rcApb9DxVTpgBzQGZXidXcY5xMU+1M9vHiaTXLEZu2ejolEmUksgYaQnN zXg4g1Eu7d7VVsTszbGCszRkTXfZUozIk7Le0wPIyBgWL+5TjpeX/vRgnfsngCLVKyfg qXKKXYGB0p86Qz9XCk+ityrGwwQzwzZAZW7zVm1NmZowj5YyrSwDoVyTPSokuzErda6Z Q+nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@telus.net header.s=google header.b="W/nLxAil"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=telus.net Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id g25-20020a633759000000b005775e2a7951si7905120pgn.345.2023.09.18.05.18.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 05:18:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@telus.net header.s=google header.b="W/nLxAil"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=telus.net Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 9426081C0CB5; Sun, 17 Sep 2023 21:05:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232948AbjIREEV (ORCPT + 99 others); Mon, 18 Sep 2023 00:04:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232944AbjIRED5 (ORCPT ); Mon, 18 Sep 2023 00:03:57 -0400 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B820FF for ; Sun, 17 Sep 2023 21:03:52 -0700 (PDT) Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-577fb90bbebso2762759a12.1 for ; Sun, 17 Sep 2023 21:03:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telus.net; s=google; t=1695009831; x=1695614631; darn=vger.kernel.org; h=thread-index:content-language:content-transfer-encoding :mime-version:message-id:date:subject:in-reply-to:references:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=fkj+ilWgLWNJQbtZF0y92BH3EfaM8mYrGUt+ZNYlBcA=; b=W/nLxAil9CWx9JnkEq1UDWPvDUb7SRbscy/uiZiKggWF8EyCITE89q0h65Ru2pxUOt aO+3RnCG14nvENQJNZWcSuRadDkeeKw8WwDVL4nMCG2MLmne62tyClkI+C6q4ud2lD7J FmVFvxKYKggItMRlWlRRi3JJyuEBg9HIN3cO9pWju6s9gmFFcqcpWdOQxpWqRswJHf+e ydIAYL66GNhU6prKttO3xXwJfjsBTcKdz6IGg2YyYozuE02reMfUth+Cp8Yk6XtHclSj /UzkcSoXMRTh5aWRZRblOSQLrzKNciQqI3mhcFLzzjSIAvrYsqqigBbdnhUbHIvwjk6q dOuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695009831; x=1695614631; h=thread-index:content-language:content-transfer-encoding :mime-version:message-id:date:subject:in-reply-to:references:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=fkj+ilWgLWNJQbtZF0y92BH3EfaM8mYrGUt+ZNYlBcA=; b=sM4Tgew1BxNgx0WSV25ECS8MYpL5JiQZ2qfDnHbj8LjRQ3Yewndn/KoFsI2QD5XoWS /gWmE774rYmqXmu8WquoWaEcGxKUdss4Dz2lbM8LbRW3nWDlUlvT/wkHi9bOgIgI9kxe lNkltUA5bYy6SaYJcfTkzDUf++tqkFiIiFupD4vmTGqHZnIzvXlZUZoXEsarrK/Na1kF g6fUw2Kxw7w8FMxJ4LLbHiajpMjbVw+79E14CGUTilfSOGLSkJqTsguLUVfxWAvLbIyU HLseUn/BuNOM9JH1fG4VUhHxaOh/KN1ugTDBEnfwFtJgY5Lh1xnhHIgcpRo8vGkXRqFv 4LrQ== X-Gm-Message-State: AOJu0YzYvwLVb4aq15H2FC5GHV7N/T5XaIjvJH2OXiVJw9ipZ4mSH4xe MXtrbC2L1HRB6CsSvlb/tMZkOg== X-Received: by 2002:a05:6a20:8f0c:b0:14c:5dc3:f1c9 with SMTP id b12-20020a056a208f0c00b0014c5dc3f1c9mr9545279pzk.49.1695009831597; Sun, 17 Sep 2023 21:03:51 -0700 (PDT) Received: from DougS18 (s66-183-142-209.bc.hsia.telus.net. [66.183.142.209]) by smtp.gmail.com with ESMTPSA id v2-20020a62a502000000b0066a2e8431a0sm6314133pfm.183.2023.09.17.21.03.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Sep 2023 21:03:51 -0700 (PDT) From: "Doug Smythies" To: "'Srinivas Pandruvada'" , Cc: , , , "'Swapnil Sapkal'" , , "Doug Smythies" References: <001701d9e9ae$02438120$06ca8360$@telus.net> <002301d9e9e2$13424090$39c6c1b0$@telus.net> In-Reply-To: <002301d9e9e2$13424090$39c6c1b0$@telus.net> Subject: [PATCH v3] tools/power/x86/intel_pstate_tracer: python minimum version Date: Sun, 17 Sep 2023 21:03:54 -0700 Message-ID: <002401d9e9e5$248f3d50$6dadb7f0$@telus.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Content-Language: en-ca Thread-Index: Adnp5IxFciJ5SBfmQOq9Nt1eFtgl9g== X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sun, 17 Sep 2023 21:05:47 -0700 (PDT) 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 --- v2 -> v3: Try to fix mess that was v2. v1 -> v2: Fix careless typos. --- .../x86/intel_pstate_tracer/intel_pstate_tracer.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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..38cfbdcdedb7 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,11 +11,11 @@ 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 + python3-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, ... ) + gnuplot-py, python-gnuplot or python3-gnuplot, gnuplot-nox, ... ) HWP (Hardware P-States are disabled) Kernel config for Linux trace is enabled @@ -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. -- 2.25.1