Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3234735yba; Tue, 16 Apr 2019 07:23:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxo5mnK4RzxL3M7aOGlFo5/G/SFduvWcLxVTOcIW6zJ8R0TZmm2PNRWhFzMAqkJ2lNPQ+1d X-Received: by 2002:a17:902:d70c:: with SMTP id w12mr83423258ply.198.1555424584564; Tue, 16 Apr 2019 07:23:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555424584; cv=none; d=google.com; s=arc-20160816; b=yq5+zKnfBrXzx4WV8QaaKV9Ar6sL9+DRdXXsw/Nkv3j82loURwkr58KoSaslmPuTzn mm1e7fkPM+vjxK7eEnj3IrsgcFwmzw8wUS72K7zSXXCvFv1j2aShRoom4p0SXK0Sf/Tg Eu5D2oqxwZKJX3goS0NCSI9oIA5R5GQVA8XGM0pPozpttrYinLHayfRGPUSapp0fPeMo YfTH4I1m0vievJu6P+ertdRU792ezXNSUWM6pR11cSPKHRW4hzxqOopnL17kyz4eSJSY 5H1/LtpAfvzc80EBPnqHl0p2bxewvFYuU4BbWi0qJ4HCixV6wbfLIPcM8vARH/4vkAwT wpgw== 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=LVdPZJkQVDllMF50IUu8Zl8hYPJEkcJ8Yp+H+NoV2BE=; b=AANkqv/aseiIGdHxnjphbKAW5+LHFwKSPs4429t0AN+JeI2PZYqhd0l8psvKY8XPb6 jm3BkexX38zw8J8MPSXOYdfNRNesj4r91cNfAbAyUMOvPixDjDEShfq3iEzvyq5X/L4Z VnNwEH27+1JO0VYjW6XU+1g6n8A8GjA51MQ9HabA0rty6FaYS9ThYHSmM94TcMG774Za kClkk3HLG234bAVsd3YH5m6NfhLQP+gmCG5OKEQuaNsFjJXaKcpc/WjsxzVHRePwR9tr 1Bqqlqy4g9+AUPmM+SD7viWCYAKXAjEYtCu6YX4UAb/14HVn9mW1Ou2OOjWIlh0y8arI ey5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=lZrx6GQE; 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 p17si48582253pgl.181.2019.04.16.07.22.46; Tue, 16 Apr 2019 07:23:04 -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=lZrx6GQE; 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 S1729626AbfDPOVW (ORCPT + 99 others); Tue, 16 Apr 2019 10:21:22 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:43410 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726986AbfDPOVW (ORCPT ); Tue, 16 Apr 2019 10:21:22 -0400 Received: by mail-pf1-f196.google.com with SMTP id c8so10477625pfd.10 for ; Tue, 16 Apr 2019 07:21:21 -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=LVdPZJkQVDllMF50IUu8Zl8hYPJEkcJ8Yp+H+NoV2BE=; b=lZrx6GQEAmPLDKQ/ogoeRAuiQ8Y4B37jy+lkkRSOqVOiGaCsDn0zoLKmZdvUHhxEoG 5Nl9Bv4I1Hk2Z07EKKP5fPaR013/+30LeBv9+5Y1IbEad/rFq8xiXdF9KvhDpKpGCqkn 5yyKY8y6T6ez6mee03RElRXVMRWR5zSaHIp+g= 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=LVdPZJkQVDllMF50IUu8Zl8hYPJEkcJ8Yp+H+NoV2BE=; b=WPOhYSt539In7Rkjgg+GUGAWjWii1ScXWjvAgQbAxyYZcnTT0FFQBMH5YCKwe8clfq ikDaSGjn+Zp8/TwMfhhxFN8TO/7RmIr+qnQHPu44859fYAlMJ3tkH6A9gc6OXKAhysgJ wM1ead6//h2w0cb/NL6PNJ9TTlf97dCjLHAYhfMUOd2sZDfiHy2j+KXJtLTfMDaybXTO NUCC4Msu4QU2l8n5CBxG24N+7W3jptx7QqKxx8zAx9UkT/Onu9Z8vakkXUoOipi9h6Y1 KtZqZ8COC9xu6ScjM7xgoXNV4rOxCitvhafDFxUTxAXWYivFq0gic2whN9JRuzTSjpV/ ix9w== X-Gm-Message-State: APjAAAWH6aSZt98CeoQ/jTkCXHyMwVdM3tbZq86s2UN8sTMXwzub0P2b 8heN/CNu7R6d7zGji1jXcIUPkg== X-Received: by 2002:a62:ac08:: with SMTP id v8mr81903615pfe.42.1555424480839; Tue, 16 Apr 2019 07:21:20 -0700 (PDT) Received: from localhost ([2620:15c:6:12:9c46:e0da:efbf:69cc]) by smtp.gmail.com with ESMTPSA id h4sm67948873pfo.119.2019.04.16.07.21.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Apr 2019 07:21:17 -0700 (PDT) Date: Tue, 16 Apr 2019 10:21:16 -0400 From: Joel Fernandes To: Steven Rostedt Cc: Karim Yaghmour , Greg Kroah-Hartman , Kees Cook , Olof Johansson , Alexei Starovoitov , Linux Kernel Mailing List , Qais Yousef , Dietmar Eggemann , Manoj Rao , Andrew Morton , Alexei Starovoitov , atish patra , Daniel Colascione , Dan Williams , Guenter Roeck , Jonathan Corbet , Android Kernel Team , "open list:DOCUMENTATION" , "open list:KERNEL SELFTEST FRAMEWORK" , linux-trace-devel@vger.kernel.org, Masahiro Yamada , Masami Hiramatsu , Randy Dunlap , Shuah Khan , Yonghong Song Subject: Re: [PATCH v5 1/3] Provide in-kernel headers to make extending kernel easier Message-ID: <20190416142116.GA183794@google.com> References: <20190411031540.ehezr6kq7ouobpzx@ast-mbp.dhcp.thefacebook.com> <20190415104109.64d914f3@gandalf.local.home> <20190416083306.5646a687@gandalf.local.home> <20190416124939.GB6027@kroah.com> <20190416130440.GA7944@localhost> <20190416094509.1af6326b@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190416094509.1af6326b@gandalf.local.home> 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 Tue, Apr 16, 2019 at 09:45:09AM -0400, Steven Rostedt wrote: > On Tue, 16 Apr 2019 09:32:37 -0400 > Karim Yaghmour wrote: > > > >>> Then we should perhaps make a new file system call tarballs ;-) > > >>> > > >>> /sys/kernel/tarballs/ > > >>> > > >>> and place everything there. That way it removes it from /proc (which is > > >>> the worse place for that) and also makes it something other than debug. > > >>> That's what I did for tracefs. > > >> > > >> As horrible as that suggestion is, it does kind of make sense :) > > >> > > >> We can't put this in debugfs as that's only for debugging and systems > > >> should never have that mounted for normal operations (users want to > > >> build ebpf programs), and /proc really should be for processes but that > > >> horse is long left the barn. > > >> > > >> But, I'm willing to consider putting this either in a system-fs-like > > >> filesystem, or just in sysfs itself, we do have /sys/kernel/ to play > > >> around in if the main objection is that we should not be cluttering up > > >> /proc with stuff like this. > > >> > > > > > > I am ok with the suggestion of /sys/kernel for the archive. That also seems > > > to fit well with the idea that the headers are kernel related and probably > > > belong here more strictly speaking, than /proc. > > > > This makes sense. And if it alleviates concerns regarding extending > > /proc ABIs then might as well switch to this. > > > > Olof, what do you think of this? > > BTW, the name "tarballs" was kind of a joke. Probably should come up > with a better name. Although, I'm fine with tarballsfs ;-) :-) In theory, the headers could also be hosted in tracefs since the scope of the patch right now is to help tracing tools (BCC / eBPF). Although /sys/kernel might be better in case the scope is expanded to other things. thanks, - Joel