Received: by 2002:a19:f614:0:0:0:0:0 with SMTP id x20csp64220lfe; Fri, 15 Apr 2022 19:42:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSdjjj3U2Q31rfvb3Wq83cNAhRom96uW4LhFa5b2XVFHrMFMuNa7Lc8JHB5nkWs02Rmxgl X-Received: by 2002:a17:90b:4f4e:b0:1cd:49fa:911d with SMTP id pj14-20020a17090b4f4e00b001cd49fa911dmr1871218pjb.26.1650076945346; Fri, 15 Apr 2022 19:42:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650076945; cv=none; d=google.com; s=arc-20160816; b=aj1hfNEvahUDRLWfysa7h806yqftaHdvQHi0lwfb/wZKMDY1EncknXz2jYri1Mewgz SZmV3YIMx9UkxK4tYlYaD25SRavcASjFbwYn1AhJ1ew4Yrc0ellZKJeTm/xiaF8IUxyk NZVmjYdzG2b4a7CJMLF1mxQ16Y2ZZj3kvJTLedhqs6emdtOHqzxApmeQGPUgvoGKwnBZ 9LyiLaswX77yiORrrBmRYOqUQTiCCLyHO9YvKcPenp+oT6hLfCaKMm6wM/TT6r190vfG l3I7XPgekOCstlze5Eyah3gvmEpO4xFhjAGLu4S8oF5e/V59tEOwW+1sS+u6pyWAiXX7 E65w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=XPLvg0xD6eFIIDd3CQ6jmzggfMRcYlU0deeya24rkks=; b=RplEkksRSau4Di+J0AfPuwUEz7IfC+9w81vnFNZwOTauxmbtn9yiJJsii5pfuKMMfK UNlHtvtFmWiQNLmJBxlCDVwaIl5FpjfAyrpZZCB45Uakk/W/k2YsNWwcOBrWqSvVgJgD jteOPE9QLCCXuP3zSZthnAFbmwAAdtfLmgZMtqv7HC9yw7F205K9BIyetUdltH409gL3 xXVVTH4wZNZvDrlU7SvBaVt3/UCNcUbOJ0H1XTNb5vcOS0+nqzsfeLuMLfLUdJnTEffW C7BKnwHCp8ciBpeK+R0WSDK3FteLYP0+Lx3a7GoYhW3cFOx2tfBMCRT7Ya43MzgmIfFo woVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Sld9SLge; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e12-20020a65648c000000b0038234dbb532si2773633pgv.378.2022.04.15.19.42.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 19:42:25 -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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Sld9SLge; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1C24F1864A9; Fri, 15 Apr 2022 18:49:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349902AbiDNP7q (ORCPT + 99 others); Thu, 14 Apr 2022 11:59:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349684AbiDNPkQ (ORCPT ); Thu, 14 Apr 2022 11:40:16 -0400 Received: from conssluserg-02.nifty.com (conssluserg-02.nifty.com [210.131.2.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FA881117; Thu, 14 Apr 2022 08:19:27 -0700 (PDT) Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (authenticated) by conssluserg-02.nifty.com with ESMTP id 23EFJ9P0009346; Fri, 15 Apr 2022 00:19:10 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 23EFJ9P0009346 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1649949550; bh=XPLvg0xD6eFIIDd3CQ6jmzggfMRcYlU0deeya24rkks=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Sld9SLgesc7VNKrWrEHfazd04aip0hDyZzcvdu4Ib+XS2hqXQIJa2zT898kNCkndd u+gZG24HlPqh+XA4WdmKxOw6FQvJo+QbvGLKn2fkt+66N3o2JQdD+qAU6pELNmQAdn 274y5Tf0t/hdOzyn3l3vDmF5BtYjKNf3j4YcXfnHruJg2907af+YLWVyppo4eTEVKG n4OHTDgeHZETgJjjVY59OdQS3RS3SfvkPRH7qVmuzsd1qQRSLTHEljBtmcUiYAA8yu N78/4FHfpXZqvPZCuuCl/WRk/1M6pzBERHwHYEF21GZte9dqF0qx+dWZNrLD2q0aNq J2aLWwidlH9QQ== X-Nifty-SrcIP: [209.85.214.176] Received: by mail-pl1-f176.google.com with SMTP id s14so4896855plk.8; Thu, 14 Apr 2022 08:19:10 -0700 (PDT) X-Gm-Message-State: AOAM530zPfWgSTG1+gP6OBPFA5f0tHkB++yDHp5MkIgeOC7vXfpI+s4n 5OWFVvQpQ55j9Na7M7SaO6lU0n+Y+xgNP0Ptoek= X-Received: by 2002:a17:90a:b396:b0:1cd:44cc:15a9 with SMTP id e22-20020a17090ab39600b001cd44cc15a9mr4166506pjr.77.1649949549457; Thu, 14 Apr 2022 08:19:09 -0700 (PDT) MIME-Version: 1.0 References: <20220414091419.7654-1-jslaby@suse.cz> <810ab2b8-4138-1506-fc90-ae5c6ab0522e@suse.cz> In-Reply-To: <810ab2b8-4138-1506-fc90-ae5c6ab0522e@suse.cz> From: Masahiro Yamada Date: Fri, 15 Apr 2022 00:18:14 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] scripts: dummy-tools, add pahole To: Jiri Slaby Cc: Linux Kernel Mailing List , Michal Marek , Nick Desaulniers , Linux Kbuild mailing list Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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 Thu, Apr 14, 2022 at 6:44 PM Jiri Slaby wrote: > > On 14. 04. 22, 11:42, Jiri Slaby wrote: > > On 14. 04. 22, 11:33, Masahiro Yamada wrote: > >> On Thu, Apr 14, 2022 at 6:14 PM Jiri Slaby wrote: > >>> > >>> CONFIG_PAHOLE_VERSION is a part of a config since the commit below. And > >>> when multiple people update the config, this value constantly changes. > >>> Even if they use dummy scripts. > >>> > >>> To fix this: > >>> * add a pahole dummy script returning v99.99 -> 9999 > >>> * call it in Makefile taking CROSS_COMPILE into account. > >>> > >>> The latter happens only if $(CROSS_COMPILE)pahole really exists. This is > >>> because a cross pahole likely exists only in dummy tools now, not in > >>> real cross tools. > >> > >> > >> I do not think this is the right thing to do. > >> > >> (As I said somewhere, I am opposed to checking pahole version in > >> Kconfig). > > > > If you ask me, I am all for removal as this causes pain. But it's there, > > so I cannot do anything about that. > > > >> Also, $(CROSS_COMPILE)pahole looks insane. > >> > >> You can create a dummy pahole in your local system. > >> > >> $ echo 'echo v99.99' > $HOME/bin/dummy-pahole > >> $ chmod +x $HOME/bin/dummy-pahole > >> $ make CROSS_COMPILE=scripts/dummy-tools PAHOLE=dummy-pahole menuconfig > > > > Well, the question is how do I that for every kernel developer in SUSE? > > IOW it'd be quite easier if the scripts/dummy-tools/pahole part of the > patch was in the tree. (I don't insist on the Makefile change.) I do not mind scripts/dummy-tools/pahole although you need to do make CROSS_COMPILE=scripts/dummy-tools PAHOLE=scripts/dummy-tools/pahole menuconfig > > thanks,-- > js > suse labs -- Best Regards Masahiro Yamada