Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1172822imj; Sat, 16 Feb 2019 23:09:53 -0800 (PST) X-Google-Smtp-Source: AHgI3IbsvvQwcCmn+M8eRIhRhtV2FKJLdHUhhZDwnXshJnHE4aTD/zFZZSjonvPTs+uyNFfvAe1i X-Received: by 2002:aa7:83c6:: with SMTP id j6mr17937494pfn.91.1550387393305; Sat, 16 Feb 2019 23:09:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550387393; cv=none; d=google.com; s=arc-20160816; b=QfVKWfc3LOoZAHutibAJlzfwgpkcFSR6r+9LcwFD7aXJMhKEz1hMNe/eZ/nYG8J+6Z YtaYimqQhOCIdJZrE7P6mRpRMAtPmrAvOeGbdv2/QUpddvcNgR82+SR8QTvvzBxxtqTG uJM0H25Lrb5CCJUFkgTgLosAoUXdaX/qrX1gB6RfU9bL35OSdSvKG9VZAiuS5NHfw02m 3BVIPpQMHNQUoMsW96+AojXG7NBwwAjscLCySGpioU5MUlPonlx1vA7D3wZ6iK8kQZJc Np7HOSbGn4SgT/f22Uq8h4Tzh2A9lDcCeGwmw9Lqj1Vrhfz8sxiG18gplsfjangL8dCM RZ3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references:dkim-signature; bh=Eh1jaq667dFAHSieu8gZf75SHj7h+C4iXs741KKYZic=; b=SAbE0xjcuSdRqDXOcRuLHdKSjg5Hxkh+bKIBU51h1hcOqakOe5Avlm8IqTRa9/WCb4 6NkN8uQBxYLFGT/eKYhTpszB9hOo7io/WFNGhWP0UDkPE6SZK1PCQs2S0GjZR6fiqXlH IlKTxKgdgIv1JHtLf2AukiHC0Ad4uFXA5otNv1z9uqZusW3omJsL4G6NEKm8u7AA8hqB v0ZiBw0DkzN0NytosGKUwXKeN8wcZmowgYsKof2YxxQzBEq10AicqXhzkqAQoQX4nh5f cj3WzJvEZv7xpBAJR+nNAvCNCJy2VnuZFsCpqGKFXVFUkbfjD5LH52QU/wi0iWJxjpt/ fpCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@manojrajarao-com.20150623.gappssmtp.com header.s=20150623 header.b=zWmTgeqt; 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 c24si4364020pgg.534.2019.02.16.23.09.37; Sat, 16 Feb 2019 23:09:53 -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=@manojrajarao-com.20150623.gappssmtp.com header.s=20150623 header.b=zWmTgeqt; 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 S1732547AbfBPTMa (ORCPT + 99 others); Sat, 16 Feb 2019 14:12:30 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:46183 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732506AbfBPTM3 (ORCPT ); Sat, 16 Feb 2019 14:12:29 -0500 Received: by mail-pl1-f195.google.com with SMTP id o6so6620805pls.13 for ; Sat, 16 Feb 2019 11:12:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=manojrajarao-com.20150623.gappssmtp.com; s=20150623; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=Eh1jaq667dFAHSieu8gZf75SHj7h+C4iXs741KKYZic=; b=zWmTgeqt2+3yz7+adKjkxVdqtrHNSVPem7jiAkNHzD87UcdwrflOAOCYk3Z0TC9+h5 uGLd+crEIJu5Zqw2831hyEkDZEkW3qGacz+qBvdt7r67ZSC9Pit+Fm8+ncoeq9kPAjVF enSGTQ5/Grdn+UkYrhx70x6Sq07H2glO2DIk0Z/o0J8IrccVYkyXDk2e/EOQNs/GFeWN gd4i5/5n08kbzi3NSz89Y5YTwTCB1uIHsuLal2jKmKuYZc+9qwAQt2RGNMyZWIbI+ZVY x6dX+70kVO8od2kfYn4S5883eTuZHh5KeI1BZ9ShDkaViQMFva/lq593gMnho4RIdXda UH6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=Eh1jaq667dFAHSieu8gZf75SHj7h+C4iXs741KKYZic=; b=djSYh5BAKdUa/FbWWQaab9Gzn/BrMK+eHHfWF2YJ1ruvgbZ8x5l7ygN14qLRajQQ4J iL69ZritgdxWbX6+kc8NMfUhATcxjvZRRTvjRCV+dlZGtATKmH8ygXxHlDcXjuAmlUWO bUPwx4pYVUwdrs4WlpZ283UdVHm0bpNPvxBbl+Ql7Dv893SOVUOLzlQCFutEpM5PEkaR GOv8QasAiECRTlsah2r2Tc8gtM4TA1fS/JIy9nwaV8Np3qxXvFG2DKcKDzGrD9GjnBmv C+c+qV5UpfFpl0dGRQ3VZ30R3NBbWY4CyX7hyMmvnbjjiIXiNFo/6VeMRrabnM1XEySZ LHGg== X-Gm-Message-State: AHQUAuY85FLy+Vw6btu6LJq+jDpcO1808QUxD3OGHzg4E0DzjK0Y5j1C k/l4QR2zR7UGbiZKCIXSRoltMQ== X-Received: by 2002:a17:902:6949:: with SMTP id k9mr17003011plt.188.1550344348855; Sat, 16 Feb 2019 11:12:28 -0800 (PST) Received: from manoj-desktop (c-24-6-55-244.hsd1.ca.comcast.net. [24.6.55.244]) by smtp.gmail.com with ESMTPSA id b9sm11267019pfi.118.2019.02.16.11.12.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 16 Feb 2019 11:12:28 -0800 (PST) References: <20190211143600.15021-1-joel@joelfernandes.org> <20190215031926.ljzluy2cfxp64u6o@ast-mbp> <20190215034720.GA230433@google.com> User-agent: mu4e 0.9.18; emacs 26.1 From: Manoj To: Joel Fernandes Cc: Alexei Starovoitov , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Morton , ast@kernel.org, atishp04@gmail.com, dancol@google.com, Dan Williams , gregkh@linuxfoundation.org, Jonathan Corbet , karim.yaghmour@opersys.com, Kees Cook , kernel-team@android.com, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, Manoj Rao , Masahiro Yamada , paulmck@linux.vnet.ibm.com, "Peter Zijlstra \(Intel\)" , rdunlap@infradead.org, rostedt@goodmis.org, Shuah Khan , Thomas Gleixner , yhs@fb.com Subject: Re: [PATCH v2 1/2] Provide in-kernel headers for making it easy to extend the kernel In-reply-to: <20190215034720.GA230433@google.com> Date: Sat, 16 Feb 2019 11:10:14 -0800 Message-ID: <8736on1re1.fsf@manojrajarao.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Joel Fernandes writes: > On Thu, Feb 14, 2019 at 07:19:29PM -0800, Alexei Starovoitov wrote: >> On Mon, Feb 11, 2019 at 09:35:59AM -0500, Joel Fernandes (Google) wrote: >> > Introduce in-kernel headers and other artifacts which are made available >> > as an archive through proc (/proc/kheaders.txz file). This archive makes >> > it possible to build kernel modules, run eBPF programs, and other >> > tracing programs that need to extend the kernel for tracing purposes >> > without any dependency on the file system having headers and build >> > artifacts. >> > >> > On Android and embedded systems, it is common to switch kernels but not >> > have kernel headers available on the file system. Raw kernel headers >> > also cannot be copied into the filesystem like they can be on other >> > distros, due to licensing and other issues. There's no linux-headers >> > package on Android. Further once a different kernel is booted, any >> > headers stored on the file system will no longer be useful. By storing >> > the headers as a compressed archive within the kernel, we can avoid these >> > issues that have been a hindrance for a long time. >> >> The set looks good to me and since the main use case is building bpf progs >> I can route it via bpf-next tree if there are no objections. >> Masahiro, could you please ack it? >> > > Yes, eBPF is one of the usecases. After this, I am also planning to send > patches to BCC so that it can use this feature when compiling C to eBPF. > Tested-by: Manoj Rao I think this can definitely make it easier to use eBPF on Android. Thanks for initiating this. > Thanks! > > - Joel -- Manoj http://www.mycpu.org