Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1378914yba; Thu, 9 May 2019 15:49:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzjkeNtIimoSGQMqPVVn32Aqs8itKEsuUZ5sfFaCySELbGBvVhoijdZMrty0OvE8SYaN1HT X-Received: by 2002:a65:6554:: with SMTP id a20mr9248133pgw.284.1557442143630; Thu, 09 May 2019 15:49:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557442143; cv=none; d=google.com; s=arc-20160816; b=SN7Di/t99FYfMa1X5PcqC5UsADF3lgBM8IpikTS1JMT+pY+QX/L7z83pUVx31JOxUS uVdjmD1BFkgwtqELhzA2zpKH1VvqM/lJgAr+TR6rDBIrNOtEgDMF4XSWsFZN/0OHaNk5 CevyX93btdH/PC7XnWcXwYqu9ry+RA0RQoNjR0DSGAu/Pta2KC4Bl/YS9Wv8lWf++4BR yZo0ucvIhYyx1HweiEdLTe3geX/PC6x1ZKmo3rRbnU5qtOdpR2TE6fPk0LO11rviG4HW JoMOUFsfVYh8tGUhNSRlJUKIqzPQCV8QRrod/WYuwvVqkbGzjwE0FKa+4Ri2ONRFu4MC 9eHA== 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=vZRf/O+AYO1pjasRFrKqOyps3I4eNGFPQS8KhShdX90=; b=KBCdHg/wEGtf/1ApkerKzfxP2ReQ0nn8QH65OBeyQ+5I4Fgub2BAOTDLhsVPPh1FrH HFMOD6y/Ibg70C7jmGZPu5T/AZzlfn5X3yy8CCduuznIyAoG8QsmshcKXumqs6ovF7Cu x4EbbWTkaHLaHM4jzqQV8JZBam4syOPSyyGvgVUrdRy1kMjFL+ZKvNzdauntr2E++uhI AzpkWp1HA1DbXZWSLV7JpOwrAL+p5rMrYtkqAe4Ebvw0vr94DEChTXLxkJu6Z8gGpw0w X7EQVUxZ0XZnNKHkU8ubMjEIAec0D7UQKnubDgPSfIKJkePa2BWd/SvcuuMf/c1xB6Cy idYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=Ye5VPeIC; 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 z3si4505948plk.378.2019.05.09.15.48.47; Thu, 09 May 2019 15:49: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=@joelfernandes.org header.s=google header.b=Ye5VPeIC; 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 S1726821AbfEIWrs (ORCPT + 99 others); Thu, 9 May 2019 18:47:48 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:34348 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726710AbfEIWrs (ORCPT ); Thu, 9 May 2019 18:47:48 -0400 Received: by mail-pf1-f193.google.com with SMTP id n19so2083225pfa.1 for ; Thu, 09 May 2019 15:47:47 -0700 (PDT) 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=vZRf/O+AYO1pjasRFrKqOyps3I4eNGFPQS8KhShdX90=; b=Ye5VPeIClHIvOa3yb/Txa2nZfvUQR7hyXGf8jlN8r7iBdWzaJtSWZksEgYFQpdW+le CqqejGHpFq3qNoZ6SId2I8t2xH38UIuS4VQ0klh21WPl8hWhSZnaIBHQpZQdxggBGLJb zkdOrKjnmeaLHbdYu1LbpWW+AHV9M7rizlsQA= 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=vZRf/O+AYO1pjasRFrKqOyps3I4eNGFPQS8KhShdX90=; b=gKE9AvBtRKLsfB69DYMy+82cGQ39yS2Jn2acntoN8RwgcfecV5oJXPHpnhsDI6iPE7 2GngBeQ7JhiX7E+ktAci6Bze6FXcJavQMz4OqSG5NRUZ6aV+rOCLGNnpXGkEjWT5kWas OKmiHhgdAfyWT4cOOf0IzxAc4+Zm2dQlFTw707P2ggh2n6xSy6lZjTnXW01bc9HXC8+8 omj+ugMqG2AtHuBkZ9DC9dlaHocEqqENqD0DEspJogeOL3tztyW0ZkV+OnerCw1wbDRg Nh00WWQl8hOSIv5XGyC3GILiRUwGacQPS593ISUuTMFdCaA8WDgsZhGL2gVo2pKfmbVN s2/g== X-Gm-Message-State: APjAAAVe/Pde/LPj9WTPawZBxapQxRfAML8osu6ZTiZr02YP3yMNNBFQ 8b/3X8Q2vh0Vjjj03wQXzksJOA== X-Received: by 2002:a65:43c8:: with SMTP id n8mr8758516pgp.365.1557442066517; Thu, 09 May 2019 15:47:46 -0700 (PDT) Received: from localhost ([2620:15c:6:12:9c46:e0da:efbf:69cc]) by smtp.gmail.com with ESMTPSA id h6sm8950991pfk.188.2019.05.09.15.47.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 May 2019 15:47:45 -0700 (PDT) Date: Thu, 9 May 2019 18:47:43 -0400 From: Joel Fernandes To: Masahiro Yamada Cc: Linux Kernel Mailing List , Steven Rostedt , Adrian Ratiu , Alexei Starovoitov , Andrew Morton , atish patra , bpf@vger.kernel.org, Brendan Gregg , Brendan Gregg , Daniel Colascione , Daniel Borkmann , Dan Williams , Dietmar Eggemann , duyuchao , Greg Kroah-Hartman , Guenter Roeck , Jonathan Corbet , Karim Yaghmour , Kees Cook , "Cc: Android Kernel" , "open list:DOCUMENTATION" , "open list:KERNEL SELFTEST FRAMEWORK" , linux-trace-devel@vger.kernel.org, Manjo Raja Rao , Masami Hiramatsu , =?utf-8?Q?Micha=C5=82?= Gregorczyk , Michal Gregorczyk , Mohammad Husain , Olof Johansson , Qais Yousef , Randy Dunlap , Shuah Khan , Srinivas Ramana , Tamir Carmeli , Yonghong Song Subject: Re: [PATCH v3] kheaders: Move from proc to sysfs Message-ID: <20190509224743.GA29215@google.com> References: <20190506013456.86061-1-joel@joelfernandes.org> 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, May 08, 2019 at 12:43:34PM +0900, Masahiro Yamada wrote: > On Mon, May 6, 2019 at 10:37 AM Joel Fernandes (Google) > wrote: > > > > The kheaders archive consisting of the kernel headers used for compiling > > bpf programs is in /proc. However there is concern that moving it here > > will make it permanent. Let us move it to /sys/kernel as discussed [1]. > > > > [1] https://lore.kernel.org/patchwork/patch/1067310/#1265969 > > > > Suggested-by: Steven Rostedt > > Signed-off-by: Joel Fernandes (Google) > > --- > > This patch applies on top of the previous patch that was applied to the > > driver tree: > > https://lore.kernel.org/patchwork/patch/1067310/ > > > > v2->v3: Fixed sysfs file mode nit (Greg). > > v1->v2: Fixed some kconfig nits. > > > > init/Kconfig | 16 ++++----- > > kernel/Makefile | 4 +-- > > kernel/{gen_ikh_data.sh => gen_kheaders.sh} | 2 +- > > kernel/kheaders.c | 40 +++++++++------------ > > 4 files changed, 26 insertions(+), 36 deletions(-) > > rename kernel/{gen_ikh_data.sh => gen_kheaders.sh} (98%) > > > > diff --git a/init/Kconfig b/init/Kconfig > > index 26a364a95b57..c3661991b089 100644 > > --- a/init/Kconfig > > +++ b/init/Kconfig > > @@ -579,15 +579,13 @@ config IKCONFIG_PROC > > This option enables access to the kernel configuration file > > through /proc/config.gz. > > > > -config IKHEADERS_PROC > > - tristate "Enable kernel header artifacts through /proc/kheaders.tar.xz" > > - depends on PROC_FS > > - help > > - This option enables access to the kernel header and other artifacts that > > - are generated during the build process. These can be used to build eBPF > > - tracing programs, or similar programs. If you build the headers as a > > - module, a module called kheaders.ko is built which can be loaded on-demand > > - to get access to the headers. > > +config IKHEADERS > > + tristate "Enable kernel headers through /sys/kernel/kheaders.tar.xz" > > > I suggested "depends on SYSFS" twice, both in v1 and v2. > > https://lore.kernel.org/patchwork/patch/1069806/#1266147 > https://lore.kernel.org/patchwork/patch/1070005/#1266279 Sorry about missing that. I have made a note of this, and can address it in a later patch. There is a more pressing issue with allmodconfig regression times so I will look into that first. Also a vacation is taking up some of my time. Needless to say I will get to it soon and the point has been duly noted! thanks, - Joel