Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2562971iog; Sun, 26 Jun 2022 20:15:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u5bioQm6iI26a46jRYyeuwZxdGHlHB+K3INbx+c05LvuzfPfJUJk6ogqAie+X5SQsmyYa1 X-Received: by 2002:a17:906:1018:b0:718:dd3f:f28c with SMTP id 24-20020a170906101800b00718dd3ff28cmr10975274ejm.55.1656299717296; Sun, 26 Jun 2022 20:15:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656299717; cv=none; d=google.com; s=arc-20160816; b=AmkM1CrwTVoR9nBF+tBIsmiTpmnCt+GcoKx5xK9927FrtkGUEBFUerkA/EAFYFzedP d0AG4LlcUUc18+DCnCXRNMzCxk9+ZRqSTBSRMevX97F2IJqbMltd/ZqKC2Nl0GHjRaKr 7/YYE+YVaHq9C9NM0iFm3Q4ORRawycR4f2vbPL13lbRCObSJre8OWF+fh9hT0RakV5h5 kl+qGpLwb1/86RzIwX4/cy/n37L0n6K190ZQPv5Pj+fRTvuno4k9MYGn7aeLzNnDSJ5c vNojqSeN2flKs4ky+ZwEdONvPApUv4ucG0Hx2JsDxt7fAjvocujA9qFoYxN7HHqASpxD 9AXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=tzj7ylrYrsJBExl0Lk41LyqA59fkITJKPr6Jgpr6q2Q=; b=Lx2yuarucnEx1Xn/PeIhZZCFgQlwBlLCw3LT1WAcbovLg4nRepxCRJ3CEevMMqNHdR yShpXtgcrKMrRBy9bbjK6sylKzb39eNMTsmcHh/sAYdZGLnu8rWRU8dPV8YqTjKwyb46 9wOE6MeMjQ2mBzY1QyKwdQTB+LijbSNQLFTZ5AtF2Zi4TSy2omzPxGH+ETEZy3lrbG3F bIscYETDcTLh64H4kZXV2QiXRHWN9dS9603oCqlNWP9vNeFv3mjHetrKzRcHub+Jw/XA /zIzbxqa624M8sVbIMdw7dSnsk+XH7Hz7OCcKKp/H6r+w//+gMRXAjesNUu6KmX4df9W WVjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=XszNzJBM; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z16-20020a056402275000b00435778401cdsi11687267edd.349.2022.06.26.20.14.53; Sun, 26 Jun 2022 20:15:17 -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=@google.com header.s=20210112 header.b=XszNzJBM; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232438AbiF0C6K (ORCPT + 99 others); Sun, 26 Jun 2022 22:58:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232432AbiF0C6A (ORCPT ); Sun, 26 Jun 2022 22:58:00 -0400 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1605938A2 for ; Sun, 26 Jun 2022 19:57:58 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-2dc7bdd666fso67680517b3.7 for ; Sun, 26 Jun 2022 19:57:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=tzj7ylrYrsJBExl0Lk41LyqA59fkITJKPr6Jgpr6q2Q=; b=XszNzJBM+rUdzKZ19YdcKNR9NIYYn4y+1xodUKsX0Vee1ppX64Wn9auhmAKV9sCZMs z0qmsgFZxWhHHh7Ar/OlLRr7qb/3MDl9OZz2TafV3TzYiJzLaDxvUkJ05U4mL6gSbx6H ogjCAFX3grIom59jr6dIHkITC8AQSD1+02mcC9fWVJR2PxfQABKztHZh6S+07TFiojjz unrVzUsMXHwfX0NSotudGfKxL3TZHeZa3DoWVe+dtFl+6bi4+ISNokuRBDU4ioar4mhx n7nOa+AeiGGFfmqCd3jAnToNkvC0RhK4tNnpRHu79frUfYM+ZMo61xPMDVZd4Zzl+lcZ 6MkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=tzj7ylrYrsJBExl0Lk41LyqA59fkITJKPr6Jgpr6q2Q=; b=DKfF+RbNjnqum5W62wTdDjwXVplCIL2fQrZvx7JehpwJNkezL5S1591SWYLdQawL8v 5Ehf1Bahu+Mpdv6sQj/UpLYkb5A+KKW5YULk4OQE2nzRPJL8X/++cxlebK/hwAPJ3mzq 1MpkarpPCVY27m73QVOT9/zvuoj2/Ttr2kQ5y2olpVL92OvNUJLR/XlOx/KxWvG+D6Qo 6GlJdLsHx/fIeTQ1eHnJzJn20k1hKLPFoYiuU9ih2qXTBNJLNop2itQnf/5LWDMCgyJr GuozsSrr2eQaHcgqJ/Gdd9Ih5rDUHV2i6f3VkzVpAaNLNd4BfHq+pklTk1Qcj80SeJz6 de3w== X-Gm-Message-State: AJIora8nsE5M740I+nFMAR6hwLSks7pOId/Xon0f0X8F93OXlR4P1Wpl FHsxcqQ1PHfHgGLMeZzBkcR2Pt4fHfV5 X-Received: from irogers.svl.corp.google.com ([2620:15c:2d4:203:646b:8b65:8f13:1c18]) (user=irogers job=sendgmr) by 2002:a5b:c45:0:b0:66c:cbc4:45a with SMTP id d5-20020a5b0c45000000b0066ccbc4045amr3632113ybr.356.1656298678460; Sun, 26 Jun 2022 19:57:58 -0700 (PDT) Date: Sun, 26 Jun 2022 19:57:41 -0700 In-Reply-To: <20220627025744.106527-1-irogers@google.com> Message-Id: <20220627025744.106527-2-irogers@google.com> Mime-Version: 1.0 References: <20220627025744.106527-1-irogers@google.com> X-Mailer: git-send-email 2.37.0.rc0.161.g10f37bed90-goog Subject: [PATCH v6 1/4] perf python: Prefer python3 From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , John Garry , Kan Liang , Andi Kleen , Zhengjun Xing , Felix Fietkau , Qi Liu , Like Xu , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Nick Forrington , Kajol Jain , James Clark , Andrew Kilroy , "Paul A . Clarke" , Will Deacon , Mathieu Poirier , ananth.narayan@amd.com, ravi.bangoria@amd.com, santosh.shukla@amd.com, sandipan.das@amd.com, Caleb Biggers , Perry Taylor , Kshipra Bopardikar Cc: Stephane Eranian , Ian Rogers , Ian Rogers , Thomas Richter Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL 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 From: Ian Rogers The PYTHON_AUTO code orders the preference for the PYTHON command to be python3, python and then python2. python3 makes a more logical preference as python2 is no longer supported: https://www.python.org/doc/sunset-python-2/ Reorder the priority of the PYTHON command to be python2, python and then python3. Reported-by: John Garry Signed-off-by: Ian Rogers Tested-by: Zhengjun Xing Tested-by: Thomas Richter --- tools/perf/Makefile.config | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index 73e0762092fe..16c1a87444b8 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -241,15 +241,15 @@ endif # Try different combinations to accommodate systems that only have # python[2][3]-config in weird combinations in the following order of # priority from lowest to highest: -# * python3-config -# * python-config # * python2-config as per pep-0394. +# * python-config +# * python3-config # * $(PYTHON)-config (If PYTHON is user supplied but PYTHON_CONFIG isn't) # PYTHON_AUTO := python-config -PYTHON_AUTO := $(if $(call get-executable,python3-config),python3-config,$(PYTHON_AUTO)) -PYTHON_AUTO := $(if $(call get-executable,python-config),python-config,$(PYTHON_AUTO)) PYTHON_AUTO := $(if $(call get-executable,python2-config),python2-config,$(PYTHON_AUTO)) +PYTHON_AUTO := $(if $(call get-executable,python-config),python-config,$(PYTHON_AUTO)) +PYTHON_AUTO := $(if $(call get-executable,python3-config),python3-config,$(PYTHON_AUTO)) # If PYTHON is defined but PYTHON_CONFIG isn't, then take $(PYTHON)-config as if it was the user # supplied value for PYTHON_CONFIG. Because it's "user supplied", error out if it doesn't exist. -- 2.37.0.rc0.161.g10f37bed90-goog