Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp908202ybl; Thu, 23 Jan 2020 09:57:05 -0800 (PST) X-Google-Smtp-Source: APXvYqxdY2KHxBqLfVaxsKB8DpJtmIxENyni1z3YHHPa1RBTGMlDj2mYFZsmfhMSBiZCYyWseabJ X-Received: by 2002:a9d:6c99:: with SMTP id c25mr12116752otr.178.1579802224930; Thu, 23 Jan 2020 09:57:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579802224; cv=none; d=google.com; s=arc-20160816; b=s2+Gxx+7TE7XIh9KxlQP2s7hUOmjwUpO2hH+CxNDijzia5HUufzAFpptszyBQH4wTG GZ1cWDm1m8dQog1woFzm2ebMC0+7DoYk49vYiahBQHQIm5efpD+JMQQZNWK2Os9rtnfK FpMXsDvuII4PW0GDFc6ijMPEF+3ZJMICSSKBAa9gVv/c+fwzLGeF7my4HJAbLajxe3Uo ZumFe50wA7IajGCQM9yEafCYfgWtXgaDTQna+xdgtCDDPFXsLQOm2mZtyTzAA8N2dqi2 l9gvke1dYJHlh2TZkoG6mvgEV84QsGSNcVOLgFsPv2VV7qsBgsumKNEIozwuRrddcY29 J0ig== 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 :dkim-signature; bh=cMiPTeQkvinq+aQzeXBr89cEZ9WWw2DMrsAi/L2+yo8=; b=RunKCOSRpie0eiuLjo7yb613j21Q7uFM0R46jLMNwwK3Fifgw3gv8EycTCzreX2+xL Xde+3caJeDnZ6r4+EX8h8lmRc9uyW8l8iNLJk5V+8E5fcRBTH2EQ7L+GpXBCcFU+dapy a4F3HYrYcj6IpZZVUf81AXNvF7JoRaf04z7i8pz6JRkC8oVCXr5v817J/0/dB0gW+G0d xOCUcLTtyj2Df0tg48cU7JF1mtHlNOglwUHZqJnb3hf0ODl2il/hKduRdG23+yN8IjiB ennJNtYNRp0PCN9XF4idPXBw5vnAmGhrqh3FYQkiQ/HYMfDPiH8MogGQeaqfhEVsKF/1 c5dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="izD0sZ/0"; 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 k19si1494986otb.118.2020.01.23.09.56.52; Thu, 23 Jan 2020 09:57:04 -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; dkim=pass header.i=@kernel.org header.s=default header.b="izD0sZ/0"; 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 S1728842AbgAWRzm (ORCPT + 99 others); Thu, 23 Jan 2020 12:55:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:49012 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726621AbgAWRzl (ORCPT ); Thu, 23 Jan 2020 12:55:41 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 28BB920718; Thu, 23 Jan 2020 17:55:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579802139; bh=WQfF52ocBvdFZrGb8gqOqp46CCs46jtplHpqIo6xK7o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=izD0sZ/0eWhZ0V86Gh+KU1CiIJHw7hDsdlomWl779Ou720ttBnLEIfT5g0nvJom66 B9Uw8EsWfyHs3dXpaMxJL172BZLzQSBOnn57ynjeHg6bFSegWBk1hqDkDPRi4c4Yxu d0GtijL0/hb3/8OuG/Q5pagbdf+OJV6A6tahHfyI= Date: Thu, 23 Jan 2020 18:55:36 +0100 From: Greg Kroah-Hartman To: "Theodore Y. Ts'o" 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: <20200123175536.GA1796501@kroah.com> 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> <20200123155340.GD147870@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200123155340.GD147870@mit.edu> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 23, 2020 at 10:53:40AM -0500, Theodore Y. Ts'o wrote: > 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.... Why deprecate it? It's fine where it is, and most developer's have debugfs enabled so all is good. I'd rather only use /proc as a last-resort. thanks, greg k-h