Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp782717img; Mon, 18 Mar 2019 14:13:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyYENHUeZKFYLZg2/3lz/BHc6apcUDKN2iXajQyXNpxIaaDZnDxCWgzz5aTiA0shCBKlvXJ X-Received: by 2002:a65:43cc:: with SMTP id n12mr18835395pgp.218.1552943583727; Mon, 18 Mar 2019 14:13:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552943583; cv=none; d=google.com; s=arc-20160816; b=yVTVwv1UMLNI86/IIasKgtWOCqTLG1mDbgqrs1r55xdhspsImVF2D3Erzc1OxKbRNU odUgLJWJ7z9j12NiONap0mDpqIEhtTVC5sjH+DOjai6GwaNikT3+TmpMQqFWeAGCWXOH jiBqMts5SiEDRsn+ywTGbB/41niiVeH8bZ9IHGMO2WvdYjIEO9Tch6xYDt5KSZpLJlrs /5cuonPSFv8m3RPvnB1VAeeWkM2IQSchIG1YAgvssYuXKsu2TQ7gKlqu/wZqhqaD33G/ UpAriBLEZf44ZFe1ad9+M/W1uCi3Uxyx9duJLzQIlmdDfiXvIm/sb7dVIhdDL2Y1IZ0U OLvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=1ILkhe+5q0I/7urwS/c27Sb5MLAkf2cAYnZZe/oHvpY=; b=EqA94A+wwACcqSjWhIX2RTwW3dll8zvh6xahdhOZ2GzyRN/AT39scDv7302dupSi9H f5rBPat9EJrxD4IJ9dLxX637OcSI66+th0WdsKntqLU/A6ji1zQxt/HBE/j3CBXDPwjS aVRe9tKMEWxI8IrBkGhRInDOY/BkG6gRW1AlijvkpeSNTgSVQbdQ2jF5Q/8xTUOlpOHF 6B1nGf03P42/agZ5ml6No2OoHPgJ/SPyqmbr7AcY/7dKt9314IVUDPuZtbsrHw0jY2sL Gvudb/QMYWqu5L3Zbep53JDj05TmkV4n6Ck88HqnavgB3rLELRYfpU2xxOYMQ7bDL5Sl jbsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@opersys-com.20150623.gappssmtp.com header.s=20150623 header.b=HgRNpAAX; 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 e11si10873836plb.140.2019.03.18.14.12.47; Mon, 18 Mar 2019 14:13:03 -0700 (PDT) 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=@opersys-com.20150623.gappssmtp.com header.s=20150623 header.b=HgRNpAAX; 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 S1727529AbfCRVLv (ORCPT + 99 others); Mon, 18 Mar 2019 17:11:51 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:37541 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727000AbfCRVLu (ORCPT ); Mon, 18 Mar 2019 17:11:50 -0400 Received: by mail-qt1-f193.google.com with SMTP id z17so19744366qtn.4 for ; Mon, 18 Mar 2019 14:11:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=opersys-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=1ILkhe+5q0I/7urwS/c27Sb5MLAkf2cAYnZZe/oHvpY=; b=HgRNpAAXOValLWiEzXBr2h4DoilkHB94eMqRxjGOwSrmQkmV4w39e5zzlIUmouFBc/ UOycXHf/qOD2bJ4WS3lnnMWdDOfjGceesEpS0qb4JxW/5lSFxZLVsfXHKScGoha2qY2U 2QE3i2lluRirfFpqkcXfhDePjlFfyESm1H0KzLGs6KJLQX9PJMya4ME2KwwMLh8F5cUT liZWsyMET3CXrWX21liCCet+zljQiLp0JOANWvok0r9hf3BSDZsL9tNLq3ZXS/AMP2/P NC3KO9nL8bPj413LNfG6idarNgcES+CN4vaiHFe5E84rW4JCrIJkW6fCuUKQhRQGb3AG 5Hcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=1ILkhe+5q0I/7urwS/c27Sb5MLAkf2cAYnZZe/oHvpY=; b=tgYftQDpOTYtGgHrdrNNiKbpZtaXmRBWtk2RKI4JtGa00+xij5h7fIdU1qpn/dBnbT WeH1Yav2jr30ZQaR1/FrpA4mto4HNnTxG2/aT60AADXQn0j2uxFmzRc32Vdp0U04oGsz il8fLG4f1LIim+WFZ1xQvhVjbqkIRUQgKM5dCZPoc5wtEK7hHhb/+FUjqabmp359yFf9 E9fgSwG8tDiEMcQfdD4fTX0iGPX5DhG5OEP34VrvnOC097bW+hwvLb3TxHxbu6nYO/ZX 78lp3WBGUgvOex1XZ6ljoYGGQghrjJJ1qSvcLvwicjTpuChZ1TlQg8+cDNrZOsowRMg0 icrQ== X-Gm-Message-State: APjAAAVrJ7z0cAHPoJdB9zZmzyLrUqWjkJqmJlBpGnsIIOTyRak9wJ3e K0FB9DG7H7G56jF7pE3BefM9QQ== X-Received: by 2002:a0c:ad93:: with SMTP id w19mr14737015qvc.25.1552943508863; Mon, 18 Mar 2019 14:11:48 -0700 (PDT) Received: from [192.168.202.103] (modemcable170.15-70-69.static.videotron.ca. [69.70.15.170]) by smtp.googlemail.com with ESMTPSA id t35sm3333553qtc.10.2019.03.18.14.11.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Mar 2019 14:11:47 -0700 (PDT) Subject: Re: [PATCH v4 1/2] Provide in-kernel headers for making it easy to extend the kernel To: Alan Cox , Greg KH Cc: Joel Fernandes , Geert Uytterhoeven , Linux Kernel Mailing List , Andrew Morton , Alexei Starovoitov , atishp04@gmail.com, dancol@google.com, Dan Williams , Dietmar Eggemann , Guenter Roeck , Jonathan Corbet , Kees Cook , Android Kernel Team , linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-trace-devel@vger.kernel.org, Manoj Rao , Masahiro Yamada , Masami Hiramatsu , qais.yousef@arm.com, Randy Dunlap , Steven Rostedt , Shuah Khan , yhs@fb.com References: <20190301160856.129678-1-joel@joelfernandes.org> <20190307150343.GB258852@google.com> <20190307152303.GA9819@kroah.com> <20190318185742.109dee5c@alans-desktop> From: Karim Yaghmour Message-ID: <989e8a5c-28a6-856b-5a69-8d84189bcad5@opersys.com> Date: Mon, 18 Mar 2019 17:11:45 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190318185742.109dee5c@alans-desktop> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alan, On 3/18/19 2:57 PM, Alan Cox wrote: >> I think the compressed tarball is much simpler/easier overall. If >> someone really wants the filesystem, they just uncompress it into a >> tmpfs mount. It's much less moving kernel code to worry about. > > There is an even simpler approach. The people who want this for whatever > strange reason are Android folks. Android lives on flash, so all they have > to do is put the headers in a flash file system that is updated with the > kernel and mount it wherever they like. Simple matter of a bit of > devicetree no ? The Android use-case scenario might indeed have been the one to best crystallize the requirement, but that doesn't mean that all use-cases of eBPF wouldn't benefit from this -- which in fact they would, see instructions here for example on the need for kernel headers: https://github.com/iovisor/bcc/blob/master/INSTALL.md Just a quick $PREFERRED_SEARCH_ENGINE search returns interesting exchanges such as this one taken from a discussion thread on LWN covering an introduction to eBPF: https://lwn.net/Articles/741348/ Effectively this person had to be hand-held in understanding that they needed a good set of kernel headers to make the tool work. Their comment after being shown that this was needed was: "It looks like the headers package you need on Ubuntu is linux-headers-$(uname -r), which contains the entire kernel source tree, and is specific to the running kernel." Surely having Joel's patch in the kernel would obviate the issue for all Linux kernel users, not just Android. Cheers, -- Karim Yaghmour CEO - Opersys inc. / www.opersys.com http://twitter.com/karimyaghmour