From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on archive.lwn.net X-Spam-Level: X-Spam-Status: No, score=-6.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by archive.lwn.net (Postfix) with ESMTP id D22987D04D for ; Tue, 16 Apr 2019 14:21:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729488AbfDPOVW (ORCPT ); Tue, 16 Apr 2019 10:21:22 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:45400 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726576AbfDPOVW (ORCPT ); Tue, 16 Apr 2019 10:21:22 -0400 Received: by mail-pf1-f194.google.com with SMTP id e24so10479633pfi.12 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=XmK/Fk407nQRXbECMlyOOkteqMOXYzvrQLL+Ph3+jgASH2HAI7GHMenh3+cgulySNP +bFUWgEZRwk9sRu1XWcfkLkpXRhNagL7gBnOyAwjsh3MT85/sUJnoJB0d0Y8rY10MYo3 29OAdljhX8xQN6liRbM1Q3QpZtN5W1c1mM5B0KdXy8HNA9vuVbXtpvknVF0bjruSnvTZ mC6zKuKSIOX2Z8qCMK5WPv27r2Gd6pWIrQeuYHcm+qKWTmtV+CpN+NcFcrBjpnviVOOm y2oVWc8WJu2ty4FuvcZCeHi3oEJcfPfMMggmurH+N2DRh/xho2eIrQ5mlQaXaZAKzRhY +aqA== X-Gm-Message-State: APjAAAWVnw1y67LP75kdFxcNIYlUzqL50FmoL40Z7biXbk3v812a1cHu aZ5voXFLcf3aG/5KsRBJ0sNgnA== X-Google-Smtp-Source: APXvYqxQjjwfNZOEEl8zypiPUyzGoXHuwYCAmTnShfmPuTsZQ3PQdyhi2DOTgc9COsjfRGWijp0cLA== 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-doc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-doc@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