Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp483228ybv; Wed, 5 Feb 2020 08:57:10 -0800 (PST) X-Google-Smtp-Source: APXvYqzcKRClpXvyfb0xg0fY/TJGanxnQu/Zyi2NoZJiPVZu7QIwJV36sgqqU7oWurPBp5ikcbLq X-Received: by 2002:a9d:4706:: with SMTP id a6mr25009842otf.331.1580921830774; Wed, 05 Feb 2020 08:57:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580921830; cv=none; d=google.com; s=arc-20160816; b=u54caw2NfnG8SGDIl8VANTYk+1aECaXiW46ghD50pqCo5bWBfI8FOrAb9MLJjOqVP1 pAHU0ZpNoV4hJLbNm59BgMHo+ucl+GXG4EiHaLm0LApBrF80Gdr68McDWQ2U83eO2kWY eFqXEjckJH3ji5jsPxjf2kEbXaKJSl6d7DSx/uwWgAhtuv1N1twDoL6ZhF32PHl9pw1c daI6nVLjcHKt52nQTvqvTFPHLc6Rg40JyDnyKGfDtxaICDTLOa5lWJQMOmMXI41gk1fF 3uMmnbB80ZmlwZ8xQdvH6+gA1uoMxd+rIapjr8s2/l93OQOJxbnRQa4I9eJ89sLEwoRM Mewg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=c1mB8S8mfdhuwR/BwjXb5N4vKJpT74x0hbeAD2IdkgY=; b=F8nFPlte8pxn9sHMlVwAA82fA5SuFWK0usVb3NAqJLB0ETjS2ORXHQf66UnpyaLTF6 h2Vo3C717h2z77/klQginshmRtBoPvpwwu9RKO4hLJpr6osGlf40UigVOH9nQK0Wk+EF 8zbA0ep347uBwy1B8j8utjprQdUph3XPgFUgqrr9E88JY8aXjZfDppduxwN20t/qqmVV POg9uMrr6Bzv4Bi9exEELcQ9TrFjuT6llNNmzAgTjWcEc3fmPYIAexDgbX9qzQVRzcCq iFLNI6WNWvAC75eIgaxbC5kj2ixrCsu/yZNDFRAAoAn41pj9l+tpcx0CkxwYkCVqC+Ju zzCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=ZUyawLSS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n14si13625570otk.179.2020.02.05.08.56.58; Wed, 05 Feb 2020 08:57:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=ZUyawLSS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727500AbgBEQzx (ORCPT + 99 others); Wed, 5 Feb 2020 11:55:53 -0500 Received: from mail-io1-f66.google.com ([209.85.166.66]:36238 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727455AbgBEQzw (ORCPT ); Wed, 5 Feb 2020 11:55:52 -0500 Received: by mail-io1-f66.google.com with SMTP id d15so2919948iog.3 for ; Wed, 05 Feb 2020 08:55:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=c1mB8S8mfdhuwR/BwjXb5N4vKJpT74x0hbeAD2IdkgY=; b=ZUyawLSS6+asFKie9PrgKPK6O5WRvYEAXrUxR404qJAB3HHEyV8RJ3jrkZnz4D/dqK rMbjufgbNCLZOC5J0A8c7nK6nG2xfTq9/wtCLVyxVtQ2AiKenNIXCXChY5T5Q7AoW4U0 S0HHVz1JpiFXQBVnNPP7C251gtl29Q/5pN2f94ytYosXea/F5dzX3fMTb1YoKRwykWuH nO4IJZEfOV6I7nq2p50vNb/P+FyFbFZDp3BczaO9h8N89VmwrJIdqFNmG4EzbHl5DBU8 vN50dyMz+CRdFzMXWOpWqeiZRyofzz6Ra/I3GDugHmvvf8aI8wxxiF1ZqVhv+vbEadau VwWw== 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=c1mB8S8mfdhuwR/BwjXb5N4vKJpT74x0hbeAD2IdkgY=; b=pIIAruKSVxq3IhBE0ZwSfM9kxXnWg8QOwUFdiN7Xz6at/z+DdgFIzxoGNeh+7hVF0I mhS1NrZh8E4jBkyQiDDL/mFJYzJhJnRn4B2/99xsm40CDWGXVQ3buHXVEPqVNWTFtoDA jcmgLzvcr7WfLS6CphhFdK6fHKzA7yVQ4HdGj/m0i97Z+U9sUy+6mzO5aDde1xTGQAji OzAYXH4daqItj5alBzgTTIarvknEQCOYvmwHBhlGfuX0Uw3GowW8nv5KZiszfdL4br6d 67WJAAYTWDL0StITaXjDjHtJphqtWgSBbVBVHeMYvozN9gL5jBPe+Twye8prRUw76TwE z8fw== X-Gm-Message-State: APjAAAXOECnL/AFtmkIZ2zwqLWTG/UzLYRYiP6j/HpxmHyYQcyf6F3Yx +IKRLWHwl3zJ/q6lTWFnSh3tRkHi1rIHkwEYzVvupQ== X-Received: by 2002:a02:ca10:: with SMTP id i16mr30514268jak.10.1580921750491; Wed, 05 Feb 2020 08:55:50 -0800 (PST) MIME-Version: 1.0 References: <20200205154629.GA1257054@kroah.com> <20200205160250.GG142103@google.com> In-Reply-To: <20200205160250.GG142103@google.com> From: Olof Johansson Date: Wed, 5 Feb 2020 16:55:39 +0000 Message-ID: Subject: Re: [PATCH] Revert kheaders feature To: Joel Fernandes Cc: Greg Kroah-Hartman , Alexei Starovoitov , Masahiro Yamada , Michal Marek , Jonathan Corbet , Thomas Gleixner , Tejun Heo , Mauro Carvalho Chehab , David Howells , Patrick Bellasi , Krzysztof Kozlowski , linux-kbuild@vger.kernel.org, "open list:DOCUMENTATION" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 5, 2020 at 4:02 PM Joel Fernandes wrote: > > On Wed, Feb 05, 2020 at 03:46:29PM +0000, Greg Kroah-Hartman wrote: > > Now that BPF does not need a copy of the kernel headers anymore in order > > to build programs, there's no real need for putting the kernel headers > > into a kernel module. So drop the feature quick, before someone starts > > using it :) > > Temporary Nack. Adding Alexei to the thread. > > I believe at the time of this going in, the BPF's BTF feature was not fully > ready or able to support the usecases. Especially because BPF programs can > call or use macros in kernel headers as well. > > Also, now BCC project does depend on this and so does bpftrace. Have both > of these tools migrated to use BTF and don't need CONFIG_KHEADERS to be > compiled? Sorry if I lost track. > > Just last week someone was using CONFIG_KHEADERS for BPF tracing purposes at > Google and pinged me as well. There are several others. This would at least > them some amount of pain. > > I'd suggest let us discuss more before ripping it out. thanks, Greg, please use olof@lixom.net on the patch, I try to keep LKML out of my non-upstream inbox. :-) Alexei was part of the discussion, and from others in the same room it sounded like there are no users of the upstream version of this feature. Posting this patch is the obvious way to find out if that is the case. I.e. even if there was a version of bcc that required this, it sounds like the BTF approach is significantly better and said users are hopefully moving forward to it quickly, and if they can't move forward, then they're likely also not going to move forward to newer kernels either? -Olof