Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1194241ybl; Fri, 24 Jan 2020 17:43:58 -0800 (PST) X-Google-Smtp-Source: APXvYqxJy+2jat7WjKNZANF1BIIJM51dioq4ehcCTJwtiOzlmO42KP7M2Ey9z5LoWT2n4fnAz8iM X-Received: by 2002:aca:2207:: with SMTP id b7mr1226646oic.109.1579916638478; Fri, 24 Jan 2020 17:43:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579916638; cv=none; d=google.com; s=arc-20160816; b=ekmmiK3ov2ElqPBZNhrCUvW7zpgB98i6TR0vDtZ9ickXC7GdaszmyEpU6pdL30FBph ZGo9vJTCDfyD2waKYzmY2ZAzOu2WM4B3Kg+9pLISsy/UcwHAMc80Mo2tXTk9jz/TVczF A2edcOmlM25JebTYTKiVnwXG/k/m/XjnO1qnt1ToBieHpOs5GdTWZhTAWFcL4sosl6AA vXlU09O5Ec9cjtA8QL6cmk1GZ5O+w3+21MRoNuLbspB7wrJF8AWPFQV77WTcWKEa3Se4 B2JyWaG2UYv/5SmJyYpkWlrp/p8l9T19cUJLrbE8I7ee9qMVbVUWNX6mD4uP1tBthEe+ 1TvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=q2zbTLGI02MqnymcY8kZ9G837TGilJIOw5iyaUV2kGs=; b=REtK3JTWl4OkYRIa3F46Kn9nu2o5V5gRQTjPulUQMgvQxcBpN/swuoAkAj1K01CsXW kowLCzrAv1zq/2gBGq1ZUzdYqbmWPdmXb2EpU0TVgBTZjtAFaRKovBDYrEcpo2SW1yMh pqxp7RRkuCWS7iikJwO6+r9Tjt6ZDJzTG6qKBuFHvAAsUMAZDVzg34sq0XpyYfgP5/nq vTzwKSWRG+UsCVa1Mp/YPFufRk/qkzkgzsBA4/V0Ck23MlfFteFTpRqu7NUF2tT7j3ez Afjdq8jh+aUNrmPOKPbhsMEscDyKg9yIw+ZTRzfFbtmOQetWej5MUHhrC/+kdd/Oej/z ScvA== ARC-Authentication-Results: i=1; mx.google.com; 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 g2si3781928otn.117.2020.01.24.17.43.46; Fri, 24 Jan 2020 17:43:58 -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; 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 S2387657AbgAYBmq (ORCPT + 99 others); Fri, 24 Jan 2020 20:42:46 -0500 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:42858 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387601AbgAYBmm (ORCPT ); Fri, 24 Jan 2020 20:42:42 -0500 Received: from callcc.thunk.org (rrcs-67-53-201-206.west.biz.rr.com [67.53.201.206]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 00P1gW7B022073 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 24 Jan 2020 20:42:34 -0500 Received: by callcc.thunk.org (Postfix, from userid 15806) id D91F342014A; Fri, 24 Jan 2020 20:42:31 -0500 (EST) Date: Fri, 24 Jan 2020 20:42:31 -0500 From: "Theodore Y. Ts'o" To: Greg Kroah-Hartman Cc: Jason Baron , Will Deacon , linux-kernel@vger.kernel.org, kernel-team@android.com Subject: Re: [PATCH v3] dynamic_debug: allow to work if debugfs is disabled Message-ID: <20200125014231.GI147870@mit.edu> References: <20200122080352.GA15354@willie-the-truck> <20200122081205.GA2227985@kroah.com> <20200122135352.GA9458@kroah.com> <8d68b75c-05b8-b403-0a10-d17b94a73ba7@akamai.com> <20200122192940.GA88549@kroah.com> <20200122193118.GA88722@kroah.com> <20200123155340.GD147870@mit.edu> <20200123175536.GA1796501@kroah.com> <20200124060200.GG147870@mit.edu> <20200124072940.GA2909311@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200124072940.GA2909311@kroah.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 24, 2020 at 08:29:40AM +0100, Greg Kroah-Hartman wrote: > > It's likely that people who normally use > > distribution kernels where debugfs is disabled will have scripts which > > are hard-coded to look in /proc, and then when they build a kernel > > with debugfs enabled, the /proc entry will go **poof**, and their > > script will break. > > **poof** they didn't test it :) > > Seriously, I am doing this change to make it _easier_ for those people > who want debugfs disabled, yet want this type of debugging. This is > much better than having no debugging at all. > > Don't put extra complexity in the kernel for when it can be trivially > handled in userspace, you know this :) It's also trivial to handle this in the kernel by potentially having the control file appear in two places. Consider what it would be like to explain this in the Linux documentation --- "the control file could be here, or it could be there", depending on how the kernel is configured. The complexity of documenting this, and the complexity in userspace; and we have to have the code in the source code for the file to be in the appear in both places *anyway*. We've done a lot more to maintain userspace backwards compatibility that Linus demands; and while I recognize this is not exactly the same thing, being consistent about where to find the control file would be even *easier* for userspace programmers. And is it really that hard to provide this consistency in the kernel? Cheers, - Ted