Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp272765ybl; Thu, 23 Jan 2020 23:31:29 -0800 (PST) X-Google-Smtp-Source: APXvYqw5ed9umNxhVGYnYiz6a1N/LN7o/Hgez7NUvzIweB1jVa4jpcLixWsP6+PWbBCp134Bw56/ X-Received: by 2002:a9d:7501:: with SMTP id r1mr1772198otk.196.1579851089678; Thu, 23 Jan 2020 23:31:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579851089; cv=none; d=google.com; s=arc-20160816; b=G8y+OlI7wLsUKhlNmGEBEZz2yCbKu4xtgODLvAscZrekezEls1EByfZVI47a+16rnJ PXC7EjoN+zPwft2IO7hDGZcQ7HlleAgIph4bDRwHhBRzJoil7ZNr8ManHtQDPJLnGaW/ 3UUrIWq8AjTXPXw1r6Y/8ymzbeHw4Xotqm3RyCt1t0B+CSiexpHgy9rVIOhQfaHAIO3K xv8r6/+wTLo9TceI/qoAnUNfUgFzFKL3J8B9gfvyVexJTsqh0c1tR4Key6cr9rAZRkMa Q9MbEfLAFugrHun8uD9dJsdQ4lKHF0HI5kA6ry7VeXVFhVnAX/Rpq87FHWnB8M4uRD+h FiCA== 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=xqYT/F717OVgpxBaCr0aWNuKeAJH98yfXl89MKy9mQA=; b=nxHQ+tP1ekafi6+/BIT45VOzEn5hGlPlv0R4PygQQ4Y4IdYsUUg41SOYX/+d0QnAIh U2z4A8LARWDd9CIUWmNUxzRffuET2aKLIzzs1cUTYCt24yzeV6m7PjlGPyyVAbjILd91 nr1cMZZkRzlDaC6Iu024GEDba4pA6UcaKG0dw5ETfUdE/GQkPrXHVmSt+NGq2qdMujZy yPrfs2mhIPKIDPz4INx1K+nHXtHtJYll465Q9pJg4uGmNMTeTF5aNDDKooT1rml3i1IA nf7eM9l4WnPKlcXVNGe9XWf5sqoQLMasP/jYZj7wnxQFSA7q8AkqpvcfrXfug0m/BRgs twoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vUSS8IiI; 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 s20si2523201otq.28.2020.01.23.23.31.17; Thu, 23 Jan 2020 23:31:29 -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=vUSS8IiI; 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 S1729680AbgAXHaU (ORCPT + 99 others); Fri, 24 Jan 2020 02:30:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:59224 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725817AbgAXHaU (ORCPT ); Fri, 24 Jan 2020 02:30:20 -0500 Received: from localhost (unknown [145.15.244.29]) (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 A17F720709; Fri, 24 Jan 2020 07:30:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579851019; bh=iKMnz5OrMK8n5ERd5b5EaFMDSygKaHPRw/dXXW8Ce3s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vUSS8IiIxtSgtNIFU/LKkzakvw+AAESAjOw97iML0vXo9GL0pQZk6+tv1mpzAsmt+ X9jsqop37UcuFlf7bCiVWPKtHbEA6J4zQyFZfgILF49pWlws5ctwXYtIeOuGvDAkO7 2DF7bGaMKu17ieySgggcr28q1Y8IQ4MO2Rx6RbB0= Date: Fri, 24 Jan 2020 08:29:40 +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: <20200124072940.GA2909311@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> <20200123175536.GA1796501@kroah.com> <20200124060200.GG147870@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200124060200.GG147870@mit.edu> 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 01:02:00AM -0500, Theodore Y. Ts'o wrote: > On Thu, Jan 23, 2020 at 06:55:36PM +0100, Greg Kroah-Hartman wrote: > > > 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. > > This makes life difficult for scripts that manipulate the control > file, since they now need to check two different locations -- either > /sys/kernel/debug or /proc. That is literally 2 extra lines in a script file. If you point me at any that actually used the existing control file, I will be glad to fix them up :) > 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 :) thanks, greg k-h