Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1539962pxj; Sat, 29 May 2021 17:50:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMNnVBtAItnCTIWACmUs3l1s6ucKEH+Ad+FHxd9TXQURk3OsxiBG4ynbLziIubgb2+l79B X-Received: by 2002:a50:8e57:: with SMTP id 23mr3892206edx.354.1622335827502; Sat, 29 May 2021 17:50:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622335827; cv=none; d=google.com; s=arc-20160816; b=RPR5qhTP+v0/y76Xk/YuErBLQvKiOeo7vzLaaIGuvN4Czg401EXyazNn4NB5qEDmo6 bZS0DNxKtvvyPm2Cq5OcwSDEGz46wPtSsHqoS0v/hacjQ4T13qndgboJv1LNlZZCSwtZ lc/vZeAy8K/622Xc1Nhyy6moDG2+YZ/UknhpzC+7yD+NtJJBQ8O8JRs9sBHF/JngJKNV DPD/4oX9PKcKc9vTOJiHugAiALassIXAbSzDuv5qpL/fZW+GnxC/zRLWClJa50mnxsqI nqr+PZ1ReGce2PdmyFWa65KVMvp8+3ABWwKcee7GH9iVJslgrsoWmV7Xn1KgI5h4h4BD OMYQ== 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=wHVx+VBhplvwzx2toCSsFH2zHsatsW41FO7wcaTFWzA=; b=TUNPUB3LYC6s541mpqbajHGzjZDQMofkMM3MOcjoD3xYFUQMcncaDFBpKpUI/3tnkM ygDQJe8pa14Imncv4H22FvyWVCgygAUi/u0MBP6DO4E4m7tCgATQl51pZ16REFKwArUS GxQXpcaMqxZs8zkTcylSlgI/bdw3/87FsLH4mxx1lYtQUYdBQ5pEemPgRMDDGhY4sYij xXKGlRPX340TMb54B4FODOMJcDdWDnyQBRngDd2yJUMdazG1q2M330TD6zrQv4U9qAwx VG8EnDmLTOOTmphp8CVQsvJxVoMaJn3zf+OAxFyb+cecUuIobV/VVIhPmYZOFS44vx1v l5Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gJN7A3ul; 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 p17si8499850edu.487.2021.05.29.17.50.01; Sat, 29 May 2021 17:50:27 -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=gJN7A3ul; 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 S229604AbhE3Asn (ORCPT + 99 others); Sat, 29 May 2021 20:48:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229546AbhE3Asn (ORCPT ); Sat, 29 May 2021 20:48:43 -0400 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11418C061574; Sat, 29 May 2021 17:47:06 -0700 (PDT) Received: by mail-yb1-xb33.google.com with SMTP id f84so11184162ybg.0; Sat, 29 May 2021 17:47:06 -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=wHVx+VBhplvwzx2toCSsFH2zHsatsW41FO7wcaTFWzA=; b=gJN7A3ulotTcEQc2Wa/lHhxAVfgLkvK3/aFtXAZrmwQauqXYPLfU49tN9cKmqp3Cgt y/MIgJ9krRME6CKdOFngV5d9Mk6yQK1DO59Bu8sMbAmQTiylPNbeIredhPLhb/zYceYR 6SGIW5ciEZK5Zwriyetu0FvabLdtod8DO55qHoG1Rrbk9n4aqszLigI1tXnNZ7ONOIrL py97cqhYGjAKzpM1jxANBb1CxlhV8MpaR107zMeWICa7f4t6bh35fi5QfWlHiO1lLUq6 vyYPMkbOW4JIkqwRc0TAQCAdIlbKvKEfz3eISBrM4Lmbnm2uVJkvt0u60sU9ejPapkH2 mpNA== 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=wHVx+VBhplvwzx2toCSsFH2zHsatsW41FO7wcaTFWzA=; b=tSIBDNzADAqNtcqvdF6Q23gAA+5sjm1PIDp1YQVlXm6gJbHvhtuSe2HzxC6RSIJSZM GUkJC8oMFUZBd0+5oT6Td4luQQkK8S94GP5e/ddLlfJ57U0bcy57NX4ZXrSMI93o5kAV 1z3sc3LFgIqb9VnS0v5U8rLR1cOvlJZoDyoUXhulIMxdl+rhNu+lK7Wsfbzs+qOMUUGT XgR66fGjQfO+knHCxR2Cp/iXfNJTJ4S5YEzwqBy9anNcj/uw3k6Fz/ZzSKYtFjwODQdJ /DNDr4mWDNk6A6n0lTwM99UUEq4LWXs8JWe7a/FWbFe+2FkJSk0pSn9c4XB1JOntVV7o uXgg== X-Gm-Message-State: AOAM5321eFdan4m4mTocTYfrQCaN39KLKKZ+IVqIsfxDy70AXbFf4Ax9 w9BpgXXKjbHhdnWuCJaxWroNzOI2RVWkx6n1uCtHeRqK X-Received: by 2002:a25:ba06:: with SMTP id t6mr20800026ybg.459.1622335625288; Sat, 29 May 2021 17:47:05 -0700 (PDT) MIME-Version: 1.0 References: <20210526080741.GW30378@techsingularity.net> <20210527090422.GA30378@techsingularity.net> <8fe547e9e87f40aebce82021d76a2d08@AcuMS.aculab.com> In-Reply-To: <8fe547e9e87f40aebce82021d76a2d08@AcuMS.aculab.com> From: Andrii Nakryiko Date: Sat, 29 May 2021 17:46:54 -0700 Message-ID: Subject: Re: [PATCH] mm/page_alloc: Work around a pahole limitation with zero-sized struct pagesets To: David Laight Cc: Christoph Hellwig , 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 Fri, May 28, 2021 at 1:09 AM 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? > > That would remove any issues about the latest version > not being available. That would be great for the kernel build, but pahole is more than just a DWARF-to-BTF converter and it has a substantial amount of logic for loading and processing DWARF before it gets converted to BTF. All BTF-related pieces are provided by libbpf, which is already part of kernel sources, so that's not a problem. DWARF processing is a problem and would add a new dependency on libdw-devel, at least. > > David > > - > Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK > Registration No: 1397386 (Wales)