From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EA535C47087 for ; Fri, 28 May 2021 09:04:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CCA97613E6 for ; Fri, 28 May 2021 09:04:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236294AbhE1JGC (ORCPT ); Fri, 28 May 2021 05:06:02 -0400 Received: from outbound-smtp02.blacknight.com ([81.17.249.8]:45183 "EHLO outbound-smtp02.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236272AbhE1JF7 (ORCPT ); Fri, 28 May 2021 05:05:59 -0400 Received: from mail.blacknight.com (pemlinmail03.blacknight.ie [81.17.254.16]) by outbound-smtp02.blacknight.com (Postfix) with ESMTPS id 0F233BAADB for ; Fri, 28 May 2021 10:04:23 +0100 (IST) Received: (qmail 29895 invoked from network); 28 May 2021 09:04:22 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.23.168]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 28 May 2021 09:04:22 -0000 Date: Fri, 28 May 2021 10:04:21 +0100 From: Mel Gorman To: David Laight Cc: 'Andrii Nakryiko' , Christoph Hellwig , Andrew Morton , Arnaldo Carvalho de Melo , Michal Suchanek , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , open list , Jiri Olsa , Hritik Vijay , bpf , Linux-Net , Linux-MM Subject: Re: [PATCH] mm/page_alloc: Work around a pahole limitation with zero-sized struct pagesets Message-ID: <20210528090421.GK30378@techsingularity.net> References: <20210526080741.GW30378@techsingularity.net> <20210527090422.GA30378@techsingularity.net> <8fe547e9e87f40aebce82021d76a2d08@AcuMS.aculab.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <8fe547e9e87f40aebce82021d76a2d08@AcuMS.aculab.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Fri, May 28, 2021 at 08:09:39AM +0000, David Laight wrote: > From: Andrii Nakryiko > > Sent: 27 May 2021 15:42 > ... > > I agree that empty structs are useful, but here we are talking about > > per-CPU variables only, which is the first use case so far, as far as > > I can see. If we had pahole 1.22 released and widely packaged it could > > have been a viable option to force it on everyone. > ... > > Would it be feasible to put the sources for pahole into the > kernel repository and build it at the same time as objtool? > We don't store other build dependencies like compilers, binutils etc in the kernel repository even though minimum versions are mandated. Obviously tools/ exists but for the most part, they are tools that do not exist in other repositories and are kernel-specific. I don't know if pahole would be accepted and it introduces the possibility that upstream pahole and the kernel fork of it would diverge. -- Mel Gorman SUSE Labs