Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp919168pxj; Thu, 27 May 2021 15:03:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy07lIFHuikQ863Yar+JMnBf28nHTpFqcBkZDAaST8IJqYhInhfqaEZBmKvTfWAbWxC1WQO X-Received: by 2002:a17:906:eb91:: with SMTP id mh17mr3159329ejb.217.1622152991530; Thu, 27 May 2021 15:03:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622152991; cv=none; d=google.com; s=arc-20160816; b=HP6wWOGonOluSL2C/ll0PoG6Ash6Mxf/ICBARU+Dd8Id0O5mwtO2gt5nHE9H7gbti1 y/YT2Eju2qE+llcJTHAW1HdYDreYkohQMnrKx3mOolIaDB5VHen375skMbjKn8/EgHEm 9u4NgvDcLWfXsFCEOwDwIwW6CerIBQLFi4DqAyQrWHI4ykax1sSN8LSWSnbkA3nyvMFO 3tV7zJEtlIm7uC2//WZIU3y4RTuVtNL64panbP0kJX+cGpmmUnxhwP2YNgBcHgxt4lc1 OoKjQadBtJmiWzTY4W8BwFri4KfhJqNyxD4U8QS7XdcpXmUqUORCt53n6j3rbsKZy5YL o4xQ== 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; bh=HRnF4kAS3qhXpOKU/S5e/EyDvZ8VJSiLJYQXCB3/Htw=; b=wUS8XXtGms57huKhXOkDNSNwTOVQbJM3EnCffqv5EPUwxzayD2zn2gotaBWEMhfOGO NdDR7zZHRltsLk2UL5pGVXkbDUGpB4wjXgNGOY7db60/gogYxn+m6lTN3xT/6wAIK4hu oGpyMu1vNQhbt84CDiKlbs4xafDGK+1NcYDkSCB84JDmc+hb51+d6OQ0iG+yDQ4e42yR zeQp1utwTEnHNJXBVO25TApbcq0zsIlmerG0dMveLqtUAI5kckiqoD8h/yvkBjzD4VPY WfmnYrSpwmNC9idrvl6UBhfoV8240TG+wCSwntRNffhAHReLOdrjDi8K2H5Ybe62/RcJ 0hCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XNffNLoz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p31si3404485edb.554.2021.05.27.15.02.36; Thu, 27 May 2021 15:03:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XNffNLoz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233820AbhE0OkB (ORCPT + 99 others); Thu, 27 May 2021 10:40:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236525AbhE0OjL (ORCPT ); Thu, 27 May 2021 10:39:11 -0400 Received: from mail-yb1-xb2b.google.com (mail-yb1-xb2b.google.com [IPv6:2607:f8b0:4864:20::b2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D07DC061574; Thu, 27 May 2021 07:37:35 -0700 (PDT) Received: by mail-yb1-xb2b.google.com with SMTP id e10so969016ybb.7; Thu, 27 May 2021 07:37:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HRnF4kAS3qhXpOKU/S5e/EyDvZ8VJSiLJYQXCB3/Htw=; b=XNffNLozWKxhduxFmbqbzLGjdrxdvvI+Ap0UkIe1KEJ1/tPLDUz6/Wxpl+VYiE82hB tBGq37HnDzHIZg2XNJ/FR+uKaCshHcyXU40xQSjEe9oRgpNbjxU0zhq3pmqrYR2qveWL 4soK6Y+FoW9KQqFaMWZIND95qM+akKPWekrJgoozuDlWRRkGiYdxECS7FaDzKRI2ytax /2V8LbuQ+/c0GLNu8DcIkxnAc3iQuU71vlniIAwY2ly87GF0GN8jFxN/mlaygnZkOF56 e0fEmvY7MQ0gz+b6VEsMPGynntb0Yzo73CZ/l9PLP4357JiApwS91S5fF1K7FYG8EHtY oYAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HRnF4kAS3qhXpOKU/S5e/EyDvZ8VJSiLJYQXCB3/Htw=; b=c5AtwUxca4MLFve8UrmLdDviW2dZ3rEVht8MplI5hMBhkWs3AOT6FvBmkZuhNlcbFH snIgIR5MJm1fp2KdgpLimfz/sFWKvcGU9OI+eWLONKU0wJlnoPv1r2/HO1zzgWBUmwym X0+piyKsVZRnLC3jdnbhpyW3rVwxfdNKvDN77bSGxBPKBJj5+Cpg94aG0KUe9n7wuKy5 A50IAH5jSAI8JID2UEnPmBFRBp9lzMPMshyCMwbEGt71ZZTEk2x42Ejua5egkGkJTB+6 +LLLP6DLRF9Pm5ZUwP31r+GuKw7HMkA6CED8dyrL8jKsXzPQlsxzjmY/L7zCM3BueD/D LP1w== X-Gm-Message-State: AOAM532KgdxgvVQME+Z6HbpgqqfdU3/Xmqh258eu/nupf0Ku4aIgETTX c2T5b691GgTG6MRHPExnN5oRzHcy2g2J2ZFW2Jo= X-Received: by 2002:a5b:f05:: with SMTP id x5mr5170003ybr.425.1622126254450; Thu, 27 May 2021 07:37:34 -0700 (PDT) MIME-Version: 1.0 References: <20210526080741.GW30378@techsingularity.net> <20210527090422.GA30378@techsingularity.net> In-Reply-To: From: Andrii Nakryiko Date: Thu, 27 May 2021 07:37:23 -0700 Message-ID: Subject: Re: [PATCH] mm/page_alloc: Work around a pahole limitation with zero-sized struct pagesets To: Christoph Hellwig Cc: Mel Gorman , 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 27, 2021 at 2:19 AM Christoph Hellwig wrote: > > On Thu, May 27, 2021 at 10:04:22AM +0100, Mel Gorman wrote: > > What do you suggest as an alternative? > > > > I added Arnaldo to the cc as he tagged the last released version of > > pahole (1.21) and may be able to tag a 1.22 with Andrii's fix for pahole > > included. > > > > The most obvious alternative fix for this issue is to require pahole > > 1.22 to set CONFIG_DEBUG_INFO_BTF but obviously a version 1.22 that works > > needs to exist first and right now it does not. I'd be ok with this but > > users of DEBUG_INFO_BTF may object given that it'll be impossible to set > > the option until there is a release. > > Yes, disable BTF. Empty structs are a very useful feature that we use > in various places in the kernel. We can't just keep piling hacks over > hacks to make that work with a recent fringe feature.