Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2584796ybk; Mon, 18 May 2020 02:53:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhcdotzdqgsytbcdzfWJ7+ogBQshs/EscjWQN3MHa922xhIrimIITkID70Z/wughdY3TxP X-Received: by 2002:a17:906:3b8d:: with SMTP id u13mr13746457ejf.256.1589795583832; Mon, 18 May 2020 02:53:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589795583; cv=none; d=google.com; s=arc-20160816; b=yZtiAUfzYZvBUXf0rrkxQj+blAtZQ2dPNg9vWiVyhl/sThpQzgvTZI3VUHOuc6vkqX E7x52IU2CD5dlKKbJyeAD5wmDJ5NfLPwOPHyBMQnZjKsuE4w/Y3EHm6L7ClvdGZ/Rx67 JTTgCTN4PiK9OpCDtUGYh2y9c2LgG2gnJS/678q9St+XBg2pTLOQWeVz+T3jcKiXJUph ofvNlRvmoKNxUVLFMH52M5yxH+ZgUiD3iJ5PAxPDlhkmlz6pWKovd630Ib1YEXgVI1LL XBWicx9GYUqIWAQQN/4b+/gri6HJM5IQMsxWAsaDv+URfjpdZRrEq1C3M2C4OwPmEK3A 30jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=lj5eI/DSDvwU20xhFr98rCjTMPN1Hdyz1rZzmh+X0aU=; b=MYXS+a4YLKWs0iwEqokkyWvf/eckv3IFP7SlgsR0YMBxSYBv8SdO9oBmcU+78Kqtp4 hT8V53FKQ3wXKuIPQLLQiS1L6xbwVbAseT2Y0a+H0BGqalDCg3+O+7jKNCB7qZr5uwdv iOzfb2oRsP0uWhtEYf855eMqEdltpN6k2SRWfMYO+h7OfRmNFWa0qotDKmJvRUFqnRel lCqtg/X6AQPhATSsSGyFc309VEyVNY58B0tpb+f9RHNJQPU/G3YG9V6nGihkZiPYVLsO qkHaHB+htQ4iwn/xE3Z+PANOYu7+3j8RVzhhk9YgELShJbKa2rMrEh3StcUkrZVmVA27 hvrQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d9si6105712ejy.431.2020.05.18.02.52.40; Mon, 18 May 2020 02:53:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726432AbgERJub (ORCPT + 99 others); Mon, 18 May 2020 05:50:31 -0400 Received: from mx2.suse.de ([195.135.220.15]:57590 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726040AbgERJub (ORCPT ); Mon, 18 May 2020 05:50:31 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 88A57B155; Mon, 18 May 2020 09:50:31 +0000 (UTC) Date: Mon, 18 May 2020 11:50:26 +0200 From: Petr Mladek To: Orson Zhai Cc: Leon Romanovsky , Orson Zhai , Jason Baron , Randy Dunlap , Linux Kernel Mailing List , linux-doc@vger.kernel.org, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, Jonathan Corbet , Sergey Senozhatsky , Steven Rostedt , Greg Kroah-Hartman , "David S . Miller" , Jakub Kicinski , Doug Ledford , Jason Gunthorpe , Andrew Morton , Android Kernel Team , Orson Zhai Subject: Re: [PATCH V2] dynamic_debug: Add an option to enable dynamic debug for modules only Message-ID: <20200518095026.GL7340@linux-b0ei> References: <1587408228-10861-1-git-send-email-orson.unisoc@gmail.com> <20200420191014.GE121146@unreal> <20200422142552.GA492196@unreal> <20200515095501.GU17734@linux-b0ei> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat 2020-05-16 11:55:04, Orson Zhai wrote: > On Fri, May 15, 2020 at 5:55 PM Petr Mladek wrote: > > > > On Thu 2020-04-23 00:02:48, Orson Zhai wrote: > > > On Wed, Apr 22, 2020 at 10:25 PM Leon Romanovsky wrote: > > > > > > > > On Wed, Apr 22, 2020 at 09:06:08PM +0800, Orson Zhai wrote: > > > > > On Tue, Apr 21, 2020 at 3:10 AM Leon Romanovsky wrote: > > > > > My motivation came from the concept of GKI (Generic Kernel Image) in Android. > > > > > Google will release a common kernel image (binary) to all of the Android system > > > > > vendors in the world instead of letting them to build their owns as before. > > > > > Every SoC vendor's device drivers will be provided in kernel modules only. > > > > > By my patch, the driver owners could debug their modules in field (say > > > > > production releases) > > > > > without having to enable dynamic debug for the whole GKI. > > > > > > > > Will Google release that binary with CONFIG_DYNAMIC_DEBUG_CORE disabled? > > > > > > > In Google's plan, there will be only one GKI (no debug version) for > > > one Android version per kernel version per year. > > > > Are there plans to use modules with debug messages enabled on production > > systems? > > Yes, but in a managed way. They are not being enabled directly to log buffer. > Users / FAEs (Field Application Engineer) might control to open or > close every single one on-the-fly. I see. > > IMHO, the debug messages are primary needed during development and > > when fixing bugs. I am sure that developers will want to enable many > > more features that will help with debugging and which will be disabled > > on production systems. > > I agree with you in general speaking. > For real production build we usually keep a few critical debugging > methods in case of some > potential bugs which are extremely hard to be found in production test. > Dynamic debug is one of these methods. > I assume it is widely used for maintenance to PC or server because I > can find it is enabled in some > popular Linux distribution configs. Fair enough. Feel free to add: Acked-by: Petr Mladek Best Regards, Petr