Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1571581pxb; Thu, 14 Apr 2022 08:56:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAIfA57VB4N8sCaZL7WyDArYeaZ94zX6M4eFpeixRTC9guZNaPR1FHbRFAf1R7SHkU/yp1 X-Received: by 2002:aa7:8d47:0:b0:4f6:a7f9:1ead with SMTP id s7-20020aa78d47000000b004f6a7f91eadmr4572901pfe.42.1649951803609; Thu, 14 Apr 2022 08:56:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649951803; cv=none; d=google.com; s=arc-20160816; b=IN163/l5Cp0xLx56fSGUUsCEEp5k1G+Wz3LB4sfsXxhYLnV6vful7yiLxH/JvTKVp9 KADFQA9hKCIH1o68zWOrUe7imnZTWFuglBZluORRobkTMRluympDQNoqUemMFtQTRjC/ StM0E+S+JuwKeraDoLf45eSL7FpQQ1OJln1jnoNTbgIYSZR1Nj33Iu+f3RqCmmuST6Sg NGicrkxRO4ukFgcYmrBCK/ZO/NVD1guYAV3z+WtGxvIKsAR9EL+ZKo2P928DIL8k13sd lNoBO25krxzQwWwgA4KWnGaxTQAQuKI996UDHFdLNbtjo9PpZJvU/hYRpjra3lraBRpv VX3A== 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:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature:dkim-signature; bh=+bwHZBNR8Br/nOEGyo873hVJQ95GV5dktm7kZJEMdk4=; b=frc1xoVB1Cq9ORXVC2ozM3HiaCghOMkw1TItmEtWBtEqQGfm7CSc7JRR153hN4tysR od4fWAo4hmg66anKmHuFxbxdokiBjbFs0SzjirN0pXJrga39FiyttCgPzlFIa6/yNaLz kpPfTjFkEH7WrMG8CWYs4rCuI13kWVcos2j5fvROnHtC+FfCKfLzwtPVcDFxTBiwaHC7 NjpIBDEbbzNYiCTDN7nIb6FPtXZ00Wy6ILWS9vBidBHEEDWt7+7qjC6XmSrzEDrdTDdb sLR+aoGgHd/JwHu7sZYyJF6slJBaoEtopqEyTZJAuoC3NrIifc0rmc5eDZqn0KmPK20e B+xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=X+JA0g9I; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y28-20020a637d1c000000b0039da2fa740esi6826287pgc.109.2022.04.14.08.56.16; Thu, 14 Apr 2022 08:56:43 -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=@suse.cz header.s=susede2_rsa header.b=X+JA0g9I; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240332AbiDNJtJ (ORCPT + 99 others); Thu, 14 Apr 2022 05:49:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242284AbiDNJsP (ORCPT ); Thu, 14 Apr 2022 05:48:15 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0964378041; Thu, 14 Apr 2022 02:44:44 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id B29571F746; Thu, 14 Apr 2022 09:44:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1649929482; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+bwHZBNR8Br/nOEGyo873hVJQ95GV5dktm7kZJEMdk4=; b=X+JA0g9IcMRaqODyc5U8DkQugxHOE/JNTAsZ9dJVA94UsJhuWs8Xj32yna1dpUX594UiJT WXG/MTOvT5r2oepjC0qgc8K5VUyMFioNqT4eaC+WR23b/Qmo7vm9B5MVUhZWMscvz13zk9 NaumvZlpH4C8zWeNzoTgNkLQvw1XXqc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1649929482; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+bwHZBNR8Br/nOEGyo873hVJQ95GV5dktm7kZJEMdk4=; b=Bo5pq9NGDk7G73e7w7H1M33GLzmegIkicaqGqS61UNy8hafougd/Oflt82ir7ip7saQxh5 96HwsXupWRrzdtDQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 94C0C13A86; Thu, 14 Apr 2022 09:44:42 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id GtykIgrtV2KTagAAMHmgww (envelope-from ); Thu, 14 Apr 2022 09:44:42 +0000 Message-ID: <810ab2b8-4138-1506-fc90-ae5c6ab0522e@suse.cz> Date: Thu, 14 Apr 2022 11:44:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH] scripts: dummy-tools, add pahole Content-Language: en-US From: Jiri Slaby To: Masahiro Yamada Cc: Linux Kernel Mailing List , Michal Marek , Nick Desaulniers , Linux Kbuild mailing list References: <20220414091419.7654-1-jslaby@suse.cz> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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.) > thanks,-- js suse labs