Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp996930iob; Fri, 13 May 2022 19:03:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEHzCB3HFLvNhFUY+uH+/aiACWVfObCIFyP1cf5rrPBS207X+o+8GJHbIRUnHr9GvNBefm X-Received: by 2002:a5d:5746:0:b0:20c:dbc2:397d with SMTP id q6-20020a5d5746000000b0020cdbc2397dmr5827253wrw.658.1652493782880; Fri, 13 May 2022 19:03:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652493782; cv=none; d=google.com; s=arc-20160816; b=TaQqCEhO42a55QeLWFMWo4WKj9WLFIvU42GccTdpM/s9YocCjS8H+m7Yu9IvRJ0bX+ Smh75mJTDsaVUJprTk5xr9Jc07IiiCXKGVHX4AgcPpF229HB6JXT6rZio+oha96o43s5 ka+Mz3DH1hy5wj1NQ2etAwl3HqfWkK9cp8SnsZJ8wy31M6RsWHnlGwU8/0/X9Hxusy+w urJFFt8lGeekOw1xdNadxOgLXiVJvcM+X8uI0pZE+oj6BqST/DmWUDzEf6qJAFMyw5Bo qdCAj422CKPV1wTkfzc5fnqKhI7UHqpK874JZh8ZG94/Kllfwjo7Hm5PH0AVYiBfkeZN 45gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=4Pl2nY3w8fYpH6SF/PviQldSB+Fuma2antsy08QwmMI=; b=PZG4AWDsWqCRMmlRA1c8uwNYJlR4OE+a9HZCj3gkxSmRR8lqzueV19MxukVWLIZd+B wcD4OAax257rkyQGfmGVBepOJJ4wvnHogOv9ccKLFImQiM/ggQv4NpuEkJ3M70cZXpM1 zL4/N7QGSUFWZdqXqtQL1f5cExqCJNLRM7NpyGkw6j5aYR1tvTb1kI3VeFxDcJZnpWx2 36RmnzAftfKrHS2zXA+ZpcY56GUyRcHQmx7aM01kx1g9G2TjVRK2Sdh3MNxqnBv/AgIR ngfLNsGQr6j7pFZmUPPDzeYQVgzTOh4TdZFXmKavGGvoFurb93wUCZ9KCc3/bTxZiH4X QNgA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p9-20020a1c7409000000b00393fafa1ff1si6304704wmc.21.2022.05.13.19.03.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 19:03:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D9514E2799; Fri, 13 May 2022 17:24:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382107AbiEMPiE (ORCPT + 99 others); Fri, 13 May 2022 11:38:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382118AbiEMPh5 (ORCPT ); Fri, 13 May 2022 11:37:57 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CFA670902; Fri, 13 May 2022 08:37:53 -0700 (PDT) Received: from fraeml740-chm.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4L0CPq4ns3z67x0m; Fri, 13 May 2022 23:34:55 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml740-chm.china.huawei.com (10.206.15.221) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 13 May 2022 17:37:51 +0200 Received: from [10.47.25.226] (10.47.25.226) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 13 May 2022 16:37:49 +0100 Message-ID: Date: Fri, 13 May 2022 16:37:48 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH v2 6/7] perf jevents: Switch build to use jevents.py To: Ian Rogers , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , "Namhyung Kim" , Kan Liang , Andi Kleen , Zhengjun Xing , "Felix Fietkau" , Qi Liu , Like Xu , , , Nick Forrington , Kajol Jain , James Clark , Andrew Kilroy , "Paul A . Clarke" , Will Deacon , Mathieu Poirier , , , , , Caleb Biggers , Perry Taylor , Kshipra Bopardikar CC: Stephane Eranian References: <20220511211526.1021908-1-irogers@google.com> <20220511211526.1021908-7-irogers@google.com> From: John Garry In-Reply-To: <20220511211526.1021908-7-irogers@google.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.25.226] X-ClientProxiedBy: lhreml748-chm.china.huawei.com (10.201.108.198) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 11/05/2022 22:15, Ian Rogers wrote: > # jevents.py uses os.scandir and type hints present in Python 3.5 released in Sept. 2015. > + JEVENTS_PYTHON_GOOD := $(shell $(PYTHON) -c 'import sys;print("1" if(sys.version_info.major >= 3 and sys.version_info.minor >= 5) else "0")') I think that many - like me - will have python 2.7, so now will find no pmu-events generated any longer after missing this message in the build :( Maybe many will have python >= 3.5 - but I don't know... > + ifneq ($(JEVENTS_PYTHON_GOOD), 1) > + $(warning Python interpreter too old (older than 3.5) disabling jevent generation) > + NO_JEVENTS := 1 It is possible to flip NO_JEVENTS to be JEVENTS, i.e. no double-negatives, like NO_JEVENTS := 0 > + endif Thanks, John