Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp502603ybv; Wed, 5 Feb 2020 09:15:21 -0800 (PST) X-Google-Smtp-Source: APXvYqzXW62SaQpJtoad3cG7AkY3GWsXOFCCHHB+KDEokqKAcquJ+8ABuq6bTUhkeC45U1FQsNeI X-Received: by 2002:aca:554d:: with SMTP id j74mr3794916oib.92.1580922921481; Wed, 05 Feb 2020 09:15:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580922921; cv=none; d=google.com; s=arc-20160816; b=I2Q2wBM3DNDXHRR95of0OSsnnFVOz6TTKpTRj+UraX4ZxxHTR0Ii55AdYhnO0S0szJ gzpSL5MhDdvfHbfxNwszQCEHriV+mOIaoxvKNeGXDTvBB1lQRdNCMhS72edPMNFb5PZu 4qsA3RMSimbLbThgY2JtW8+ut6kkR2k10cs4WhCrXBz4Xbf4zJ4u//F6ebh/ow6u10cC kAKNhEBcpKUTAvaMbpjKyp6Y806eEMccNw+TfGQo4wkKND7/KH/K6uDa2/eoLov2cgKV 2wWqctN5Dtrk0FPKwR1pp1C7VUYTsPwVLtb7c00/zfmiV4/vnKvhfq7kq6MlfoLZvdAG Qo7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=vj5+aAzrvoWfPRgkxgs4rxT/s6njvxqAYMRAsIMwuyA=; b=SGPFs2/KpWcRy3fLTumpxPMxK1JJmDVb8DhQvVjXx3SbNckM0m3cagcbWhAhNToZRn T8z0/p/3vZZqp8zaPoT4REOaBJzmaN7B7cnvVnTP1LjFvZozGJgiGl/QzAup9WWiEQxK xQuN9kixbN/Rl0XvafooyPGUTJEGYwOoAJ5Xrh+mgXD7DvSZMlc511j5QyUwNlMn6hga oOKrDG/wrRCAEI2lQNKsJ8bj8s1/mTG8MB4HjBU3x7icNw/Pw8PVIdkS+73t+1PvnF4V Bzv8vOGlC7ptvK+M+0jUVgBX86a9ai30/qcyboUKswuZ2v07LgM85MMhnZl7A98bBxTf m9bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=JrR6YgNN; 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 k15si355629oij.134.2020.02.05.09.15.07; Wed, 05 Feb 2020 09:15:21 -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=@joelfernandes.org header.s=google header.b=JrR6YgNN; 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 S1727331AbgBERN5 (ORCPT + 99 others); Wed, 5 Feb 2020 12:13:57 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:38121 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726678AbgBERN4 (ORCPT ); Wed, 5 Feb 2020 12:13:56 -0500 Received: by mail-pg1-f193.google.com with SMTP id a33so1270554pgm.5 for ; Wed, 05 Feb 2020 09:13:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=vj5+aAzrvoWfPRgkxgs4rxT/s6njvxqAYMRAsIMwuyA=; b=JrR6YgNNHaDuSLy8zQFawVw0/bkB/6qhb1MSHfxFs+yhEb/tvPOBCvMNhPSClrp+uf 4059po+dfZxCFkFcZJYnOWU1F6j+TJYIeycAp4ONZXGz9fMKNUW8zn7tCC3e/EP/rvah GoJ9sivDjZ4yi3GVY7yb8WCCntamIT00bL6WY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=vj5+aAzrvoWfPRgkxgs4rxT/s6njvxqAYMRAsIMwuyA=; b=cWJifAf70sFwzEN2LzPZVWDIMWUtWQ90XdnB6O67HqBBTwpxziTbjyC1mY3GzHyXcK RRoYZbjnfyFiXxjPBQvPxYw64nFXoK94WcnC0wI0SU1aqZQ+K2whS917WeQ0ZnQtZrRv QQ5fKfoK+pvdtm1UQTxsnRdagVEm5idXLTI0VQ4pUfwcfZExNpWKlfX64y3F8sl1Ma4X 2egc9vRALKXSk7NV1iRVD9OJ5STsp7soYp4unVUeWZ6mHuhSSuobQVV+/pBUS6Bjmihj GZq+4WKSCimpkwxdObEDOktZBGVMiyr7letzk92DeSQopmR8Z3h2RaXt3Q5pX7Y4Bsfq xu3Q== X-Gm-Message-State: APjAAAXed9F/yipSE647cDlvwqzmdmQ2s4wbiGQ/yaNMJu2pO+gZBoPO qhpumilACrsgfSAKpldVfbfyxg== X-Received: by 2002:a63:5fcf:: with SMTP id t198mr22895535pgb.383.1580922834404; Wed, 05 Feb 2020 09:13:54 -0800 (PST) Received: from localhost ([2620:15c:6:12:9c46:e0da:efbf:69cc]) by smtp.gmail.com with ESMTPSA id y2sm59968pff.139.2020.02.05.09.13.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Feb 2020 09:13:53 -0800 (PST) Date: Wed, 5 Feb 2020 12:13:53 -0500 From: Joel Fernandes To: Olof Johansson 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 Subject: Re: [PATCH] Revert kheaders feature Message-ID: <20200205171353.GI142103@google.com> References: <20200205154629.GA1257054@kroah.com> <20200205160250.GG142103@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 05, 2020 at 04:55:39PM +0000, Olof Johansson wrote: > 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 The upstream BCC currently does require it since several tools include kernel headers and bpftrace does require it as well. I guess my point was before ripping it out, someone needs to complete the migration of all of those tools to BTF (if BTF can even handle all usecase) following the motto of "Don't break userspace". > 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? I think BCC runs on a lot of upstream machines. I think the migration strategy is a matter of opinion, one way is to take it out and cause some pain in the hope that users/tools will migrate soon (while probably carrying the reverted patches out of tree). Another is to migrate the tools first and then take it out (which has its own disadvantages such as introducing even more users of it while it is still upstream). thanks, - Joel