Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2872560ybv; Sun, 9 Feb 2020 09:22:43 -0800 (PST) X-Google-Smtp-Source: APXvYqyQQNZt4jR0KYg2MnlwudLkIoTRPJABLfmEvh4QLaqkTCOoIKRr2bzLUbx9P0nOn8JiBUm+ X-Received: by 2002:a05:6830:1218:: with SMTP id r24mr7695672otp.144.1581268962933; Sun, 09 Feb 2020 09:22:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581268962; cv=none; d=google.com; s=arc-20160816; b=A/f+aMnHXmUzkWSB/U10Zzq6dSI4or4qPSW8+0tX5rXOPtsGCTu0B5D3+9lvoVWO7s AEa+wrA9xY209Ay1HOAudQql2/UM6a6/XHlGAfO7eo2bgaWaMLeqH29CXzGEjri3IXD9 AEAXUND9+Trh35Fe/7SCHVkKxwu9nqIorGzXq20fZP8eeC3Y6489eWoYch2eL1dQmkUU cFBhoHmm4SMWIAG5QU6vhCjRpRlEjaRwLfNr4QmssvBbEhjN1dbPaQmAlrTya8S69wVb HNm54+G7EH8rbiwgtfJrhpOwaLY1AzkfUOZmForA45hRpygD1NtSKy5/dlG9l8EK3JJc d3mg== 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=zDl9nvC6A4ITpEgb3tRW8u+D7xQCRDRuj8v/NiacFJQ=; b=zPUOaeCzF5Kf5/Knom795d1w6pIkL//LCLXCvN7HUaDMzlX/lRKyQ2INEM4xUCs5dU iIZ//9nMy23Ch7QLVIpbdYi0y61aJW95XdgIPqcOC7oOJ3u1KsgS7WqwP2kfhMm3npdW sW/vCbYoqVN0vRDGdCThNNX2B7xn43y8eakv4ufbzNoRHS8t+YH/AThsD75i/aSZsDVu xgd4J2BomP18khqbZKXj+mCCoZK60XJHLr3XTlfTJKLdegaAKzAe75SzdXRkqH8dWibI pbWI5NjymSez20dmuKX57ypunGnRfJP/4DW/2SeDJohLov4uLB6LbIKTYHYBL3ZYNG6L kXNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="udkq/bFb"; 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 v14si3657454otn.293.2020.02.09.09.22.29; Sun, 09 Feb 2020 09:22:42 -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="udkq/bFb"; 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 S1727416AbgBIRWX (ORCPT + 99 others); Sun, 9 Feb 2020 12:22:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:42050 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727399AbgBIRWX (ORCPT ); Sun, 9 Feb 2020 12:22:23 -0500 Received: from localhost (unknown [65.119.211.164]) (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 0659720820; Sun, 9 Feb 2020 17:22:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581268942; bh=ujcfnHYmz8R2DbxTxTdwyljZisy88cEdqZ0OMHLjams=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=udkq/bFbTtxy8OEpqC8C/uG4CRo6zwAfi9+CP61nXVTxf+5eOyju9yw5gZQkroOJh lCO+7B6a86VN4z2Hc8RM9FFZJ4sNJ9jEm4DZseKm4k7T5yTXol2H7aH6ngPvBl953O 0bbs7/9GQxql6br2SfAv9iiCLhMO+MlOzWFAhDV0= Date: Sun, 9 Feb 2020 18:03:54 +0100 From: Greg Kroah-Hartman To: Joe Perches Cc: "Theodore Y. Ts'o" , Jonathan Corbet , Saravana Kannan , Jason Baron , Will Deacon , linux-kernel@vger.kernel.org, kernel-team@android.com, Randy Dunlap Subject: Re: [PATCH v5] dynamic_debug: allow to work if debugfs is disabled Message-ID: <20200209170354.GA3171@kroah.com> References: <20200209110549.GA1621867@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 09, 2020 at 07:53:38AM -0800, Joe Perches wrote: > On Sun, 2020-02-09 at 12:05 +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, also create the "control" file for dynamic_debug in > > procfs. This allows people turn on debugging as needed at runtime for > > individual driverfs and subsystems. > > > > Reported-by: many different companies > > Cc: Jason Baron > > Signed-off-by: Greg Kroah-Hartman > > --- > > v5: as many people asked for it, now enable the control file in both > > debugfs and procfs at the same time. > > So now there can be differences in the two control files > and these are readable files are sometimes parsed by > scripts. What difference will there be? They should both be the same, as they point to the identical fops behind the virtual file. > It'd be better to figure out how to soft link the files. A symlink is not going to work, but this should be fine from what I can tell. I'll do some more debugging tonight, but all was fine last I tried this last week. thanks, greg k-h