Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp487337rdb; Tue, 19 Sep 2023 01:05:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEZk2Gc3eBPRS+1F8lkIaerqlg7soxUzEg01Gps0rAD0mmMYKhxK3CBphs7Hkaa4po9BHYv X-Received: by 2002:a05:6358:d04e:b0:143:5057:969b with SMTP id jb14-20020a056358d04e00b001435057969bmr1799604rwb.6.1695110711916; Tue, 19 Sep 2023 01:05:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695110711; cv=none; d=google.com; s=arc-20160816; b=ee4j3EXiYEDBU5weX/Q3jcx0wQdkbcy87BIP1J1cUcgx2xrsEBGdnEGN9x+k86Got/ ocjHaYsNorQL8w3qwYKMOJQ05zXzooiHGEzJnxZDrGkY6cz3TBFfwERoJqnLxjzoelCy LoPmehAAqV8R5dvEI9hvuU8L69eHqOIpiJwkcgZ2ghiVR4VTfrGQICl7QbGNnm1fzBBH jI3kTHQvYzOFbr0TG+DOILHjSsBRe8Ao8+0jEanVdMsM0aUPwR2An7qqnAe3s8k59Jig UR6UEEXY44Q63qGD5jd7RoR0gVBPPL3NebT9buW3BKzDYvzefnXksk5wvo2oZhzPNZrs Kz7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=SIG5Q4uL+P053EqzXCbB6Lu6kIje4h7gQ5SWY/pulkw=; fh=khP/vtdOByZcGLLJs8XQmkcx6WgkZ4kxe6zjrYnqqyU=; b=fse+zf49yq8rgVDEXZ19NthNnOqgRh/RbYrzOn6p7ppuqQxbYL4za6KtNY6qkx7I5S R/WJcsrbyl+ZGYtpNkhm+4MMs6pFTlw6C9lmOwM+8EZjhoam8li2zueuugLlbb+4Ikw4 o61+Wnfs3ng0ZLV6RzfyYAOWR4x6FuB2HsGyd1a7S3/UsWgVaMoCOtYHAXVq0SRM8ZbU igEblfBwfoEceFu8XZnWziS4PnnJB80YehuIE59s0WGwj8H6eUBzGAN86rbtLDAO961C y7fD3i+DDIHKiAd/Hs+vU67fHjA0FWVxxoc0guo+qfrCKHw7lCyZzL655xlV1vtbSddS 0rQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=N6mQd0Kw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id d134-20020a63368c000000b005694a4640afsi9274923pga.95.2023.09.19.01.05.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 01:05:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=N6mQd0Kw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 73AB0807E40D; Mon, 18 Sep 2023 10:25:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230177AbjIRRZ0 (ORCPT + 99 others); Mon, 18 Sep 2023 13:25:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230250AbjIRRZW (ORCPT ); Mon, 18 Sep 2023 13:25:22 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3734FE; Mon, 18 Sep 2023 10:25:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695057917; x=1726593917; h=message-id:subject:from:to:cc:date:in-reply-to: references:content-transfer-encoding:mime-version; bh=SIG5Q4uL+P053EqzXCbB6Lu6kIje4h7gQ5SWY/pulkw=; b=N6mQd0Kw5gMXdsfkmYPPHjWAPwGKOKLHiP+hxnljMkawC8O4Sj+BFi/b mYk7Y6oVAY3hY6oyyejf8HpSdkp4jdIVwAHHng/JKPrkXIzebCIbMvB9u YHSK+y6qCIS5M1utFg+irBQJwjdTJPlGGGI93cQ1kuKjCTqUUIvW77sN+ P/6krTXO7CB93dw535DamQ80+0Km8q3MHzqsKG7nybOmZ/2pZh4+ZR8Tq t83oynPZLugJzEBfRhD6MPPVWinAgvf3DAEyp/MfzRfY6OKuEo8T8nQDr ARAuC8UJ6KpSeS/FmCb60n7am5a7+xKMqU4TyHujWj6ZbhLz1dVMXE/rt A==; X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="382466640" X-IronPort-AV: E=Sophos;i="6.02,157,1688454000"; d="scan'208";a="382466640" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2023 10:25:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="739247599" X-IronPort-AV: E=Sophos;i="6.02,157,1688454000"; d="scan'208";a="739247599" Received: from spandruv-desk1.amr.corp.intel.com ([10.209.0.131]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2023 10:25:16 -0700 Message-ID: Subject: Re: [PATCH v3] tools/power/x86/intel_pstate_tracer: python minimum version From: srinivas pandruvada To: Doug Smythies , rafael.j.wysocki@intel.com Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Mario.Limonciello@amd.com, 'Swapnil Sapkal' , Ray.Huang@amd.com Date: Mon, 18 Sep 2023 10:25:15 -0700 In-Reply-To: <002401d9e9e5$248f3d50$6dadb7f0$@telus.net> References: <001701d9e9ae$02438120$06ca8360$@telus.net> <002301d9e9e2$13424090$39c6c1b0$@telus.net> <002401d9e9e5$248f3d50$6dadb7f0$@telus.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,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 morse.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 (morse.vger.email [0.0.0.0]); Mon, 18 Sep 2023 10:25:34 -0700 (PDT) On Sun, 2023-09-17 at 21:03 -0700, Doug Smythies wrote: >=20 Think somehow one extra new line in email. > From: Doug Smythies >=20 > Change the minimum python version from 2.7 to 3.6. > Remove a 2.X backwards compatibility line. >=20 > Signed-off-by: Doug Smythies Acked-by: Srinivas Pandruvada > --- >=20 > v2 -> v3: Try to fix mess that was v2. > v1 -> v2: Fix careless typos. >=20 > --- > .../x86/intel_pstate_tracer/intel_pstate_tracer.py=C2=A0=C2=A0 | 12 +++++= +----- > - > =C2=A01 file changed, 6 insertions(+), 6 deletions(-) >=20 > 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 > =C2=A0# SPDX-License-Identifier: GPL-2.0-only > =C2=A0# -*- coding: utf-8 -*- > =C2=A0# > @@ -11,11 +11,11 @@ then this utility enables and collects trace data > for a user specified interval > =C2=A0and generates performance plots. >=20 > =C2=A0Prerequisites: > -=C2=A0=C2=A0=C2=A0 Python version 2.7.x or higher > +=C2=A0=C2=A0=C2=A0 Python version 3.6.x or higher > =C2=A0=C2=A0=C2=A0=C2=A0 gnuplot 5.0 or higher > -=C2=A0=C2=A0=C2=A0 gnuplot-py 1.8 or higher > +=C2=A0=C2=A0=C2=A0 python3-gnuplot 1.8 or higher > =C2=A0=C2=A0=C2=A0=C2=A0 (Most of the distributions have these required p= ackages. They > may be called > -=C2=A0=C2=A0=C2=A0=C2=A0 gnuplot-py, phython-gnuplot or phython3-gnuplot= , gnuplot-nox, > ... ) > +=C2=A0=C2=A0=C2=A0=C2=A0 gnuplot-py, python-gnuplot or python3-gnuplot, = gnuplot-nox, ... > ) >=20 > =C2=A0=C2=A0=C2=A0=C2=A0 HWP (Hardware P-States are disabled) > =C2=A0=C2=A0=C2=A0=C2=A0 Kernel config for Linux trace is enabled > @@ -23,7 +23,7 @@ Prerequisites: > =C2=A0=C2=A0=C2=A0=C2=A0 see print_help(): for Usage and Output details >=20 > =C2=A0""" > -from __future__ import print_function > + > =C2=A0from datetime import datetime > =C2=A0import subprocess > =C2=A0import os > @@ -562,7 +562,7 @@ if __name__ =3D=3D "__main__": >=20 > =C2=A0=C2=A0=C2=A0=C2=A0 # Temporary (or perhaps not) > =C2=A0=C2=A0=C2=A0=C2=A0 cur_version =3D sys.version_info > -=C2=A0=C2=A0=C2=A0 print('python version (should be >=3D 2.7):') > +=C2=A0=C2=A0=C2=A0 print('python version (should be >=3D 3.6):') > =C2=A0=C2=A0=C2=A0=C2=A0 print(cur_version) >=20 > =C2=A0=C2=A0=C2=A0=C2=A0 # Left as "cleanup" for potential future re-run = ability. > -- > 2.25.1 >=20 >=20