Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp795494ybl; Thu, 23 Jan 2020 07:55:14 -0800 (PST) X-Google-Smtp-Source: APXvYqw9GxpgBSOQQ+o68W+0TmYICTv3S3twA6roHwq2faQgid/H/L/53x3WT3+IcU1Qrz4gcH9w X-Received: by 2002:a9d:4b05:: with SMTP id q5mr11138400otf.174.1579794914129; Thu, 23 Jan 2020 07:55:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579794914; cv=none; d=google.com; s=arc-20160816; b=AXBMdONvuj9wQFdqJdeWsZFFlE2+euZJK59FVENjgqSulRKqlL6rg7kIwhIlqRn5pP SzLOP99eCHmFUS9iL4T0IojbH9jYUdtZeeAFAW7dyuZ+bXIMB/BaCWprqSXopJZ7CoHL x8wgTFelqCUEJmXCkK+nx0cLCFN0U/m5f2eILoJdlIey6I79yiLq5dyV/EBYEKIpspcr 0CHSKaNln9JA8GSODWCOFSxGiCUW1KX7KjbyS+psUownPKMeNTZQ0VAgTjvudUMi0cgE k6kvMDglgGbNeF2cGFsGeCBJ8r2lIDl8cwgXrf004hNxfnjlpJSu5pCbP7CSAcNdMbR8 CRYA== 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=lRZ4uNC8mVuj8A6tJvqghxa1w7cxQ1AHTMf++Epec08=; b=F6ezFT3Hlgr0LT35a5ad9MwmSYzAA/jyYCE/jpWVm5Mhb/yRigtAZg87Zfycc/35Sk hh1eDH7MBopgVVIavnCsPnc7tf02pe9y7a7pNSTWgfinOflHAMfe/Z72WwQvaYyItxnE aq5oIWY5s7kCl1/DtEDoVTkg5q08DAFKoWgzZotrNqbhTdKddEv2Qn1IvXCK5XD4MxyZ sRAf7LhmoSmzkwYsQpY8A4rpzCqNk0Yyv5BBUCH/iszZlQGlhFTjEdRJrue3IxxNzbQ5 FkKfvrTiIfAAbmVYPe5yncgsl/gcMp39hqedalHTbc9VsW+e8/uSpsNO1wX69E/DIMr6 rTUw== 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 v145si972798oia.68.2020.01.23.07.55.00; Thu, 23 Jan 2020 07:55:14 -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 S1727278AbgAWPxx (ORCPT + 99 others); Thu, 23 Jan 2020 10:53:53 -0500 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:32990 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726231AbgAWPxw (ORCPT ); Thu, 23 Jan 2020 10:53:52 -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 00NFrfhf029524 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 Jan 2020 10:53:43 -0500 Received: by callcc.thunk.org (Postfix, from userid 15806) id D1F7642014A; Thu, 23 Jan 2020 10:53:40 -0500 (EST) Date: Thu, 23 Jan 2020 10:53:40 -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: <20200123155340.GD147870@mit.edu> References: <20200122074343.GA2099098@kroah.com> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200122193118.GA88722@kroah.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 22, 2020 at 08:31:18PM +0100, Greg Kroah-Hartman wrote: > With the realization that having debugfs enabled on "production" systems is > generally not a good idea, debugfs is being disabled from more and more > platforms over time. However, the functionality of dynamic debugging still is > needed at times, and since it relies on debugfs for its user api, having > debugfs disabled also forces dynamic debug to be disabled. > > To get around this, move the "control" file for dynamic_debug to procfs IFF > debugfs is disabled. This lets people turn on debugging as needed at runtime > for individual driverfs and subsystems. Instead of moving the control file IFF debugfs is enabled, what about always making it available in /proc, and marking the control file for dynamic_debug in debugfs as deprecated? It would seem to me that this would cause less confusion in the future.... - Ted