Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp561160ybb; Fri, 10 Apr 2020 05:45:20 -0700 (PDT) X-Google-Smtp-Source: APiQypKvzP/1n8Iypo0YQ47dMBl92aLKx2VqZJswuFM6rlLn2WyYTj97+yYWCvSCTFxFLYdU8riA X-Received: by 2002:a37:93c1:: with SMTP id v184mr3766127qkd.47.1586522720183; Fri, 10 Apr 2020 05:45:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586522720; cv=none; d=google.com; s=arc-20160816; b=TN7vzU0qfWa26DOlMYA54K6+vVyrQTO+z7AhmKi35eUVXK2nWhrYYUpkAysk3Ax/tc HGEKNm3on+OMamgsvmHCUQQfjeBh2lOEHiTqQ4kwG9KWwJDjtfcc2zEWe2YQdmeMJfRU 1xHwUKcPeg9B5qGBXi+B78ZdAd1w211DvzrhzFQddWZVSiE5HCkMlIOk7CNjQD+6nwYo qssbUYCM9UaiLxkIMNwfnrMgf/atVKmRvM5Ar3EL6ywrF8D8jafF6Jkk2yt+xkd2nytg lPzvGN2pJ4mQ4QFK8Ar74TXkIW9kZPwHht1fndd7qyPTONoZtg6Gl9krsAQLNGTwKxJC +VlA== 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=1uSAguVMtTS7xLJcDM4Ut3+i2xKJRJ+ITtymZqCfLiE=; b=kYQr4aE4v/ooAD4S2hdQ/EvZO1/XO6SuCcX+fveuOtWa5QO0rFvntflDOxtuOzLFqJ NDfXV0RFwyDFUiJO9WR04fJo7OrBwl2A6ft6xAzJmEvYNYGAYnkpTC4DY0saC1LmlJXb cxTlwYfmeOZryhvk12/OjabOxYsA2JKqf2EMAtPaWSblI9zF3BnFB9mRK3x4dKrGMTys aHlw7Ita04a2H0M0LVpyZxbdYOzVM1lMsRXP6vKWg7DGo+VGX4NjVnEb0JqWinXZZUlZ deKGrjpZHohB8vbyfjkmVKZVb8Q1UF/EXzynKCHu6u4xYmxmknH6Yg+eaQHELm6Tit3M aECA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XyKUuxQJ; 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 m7si1008269qvp.50.2020.04.10.05.45.04; Fri, 10 Apr 2020 05:45:20 -0700 (PDT) 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=XyKUuxQJ; 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 S1726092AbgDJMoT (ORCPT + 99 others); Fri, 10 Apr 2020 08:44:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:43858 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725930AbgDJMoT (ORCPT ); Fri, 10 Apr 2020 08:44:19 -0400 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 F20CC20769; Fri, 10 Apr 2020 12:44:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586522657; bh=CUa1+hFqvCFBDzh9953S1reA+cSlnUCI3GJGVkQCVBc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XyKUuxQJ6wntPFoJ/xbDgcBoS4XbrTowG9Bpqhpqz3OZ0HDdH2GlnG8fTFhnwtasP pAZQQU0j1bfEBrkO0BVolWbswPmY6xRQuyIrRvuEgwYrnFtRgfKgutsv1eu22U5kSe uozERvwqmFvaUnbyaj2FOPe5D6eKp7Y7+dpLjkIo= Date: Fri, 10 Apr 2020 14:44:14 +0200 From: Greg Kroah-Hartman To: Orson Zhai Cc: Jonathan Corbet , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Jason Baron , Andrew Morton , Randy Dunlap , orsonzhai@gmail.com, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, kernel-team@android.com, Orson Zhai Subject: Re: [PATCH] dynamic_debug: Add an option to enable dynamic debug for modules only Message-ID: <20200410124414.GB2091460@kroah.com> References: <1586521984-5890-1-git-send-email-orson.unisoc@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1586521984-5890-1-git-send-email-orson.unisoc@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 10, 2020 at 08:33:04PM +0800, Orson Zhai wrote: > From: Orson Zhai > > Instead of enabling dynamic debug globally with CONFIG_DYNAMIC_DEBUG, > CONFIG_DYNAMIC_DEBUG_CORE will only enable core function of dynamic > debug. With the DEBUG_MODULE defined for any modules, dynamic debug > will be tied to them. > > This is useful for people who only want to enable dynamic debug for > kernel modules without worrying about kernel image size and memory > consumption is increasing too much. > > Signed-off-by: Orson Zhai > --- > Documentation/admin-guide/dynamic-debug-howto.rst | 7 +++++-- > include/linux/dev_printk.h | 6 ++++-- > include/linux/dynamic_debug.h | 2 +- > include/linux/printk.h | 14 +++++++++----- > lib/Kconfig.debug | 12 ++++++++++++ > lib/Makefile | 2 +- > lib/dynamic_debug.c | 9 +++++++-- > 7 files changed, 39 insertions(+), 13 deletions(-) Crazy idea, I like it :) Acked-by: Greg Kroah-Hartman