Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp370014ybk; Fri, 15 May 2020 02:57:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4VWm9m6bf/6nV1czOFsfUsoO+Xs0vC8lL6PuGLr5IQNUSDsyDgLtD0JrLoKpMY3ZNghSf X-Received: by 2002:aa7:d54c:: with SMTP id u12mr1924057edr.298.1589536626736; Fri, 15 May 2020 02:57:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589536626; cv=none; d=google.com; s=arc-20160816; b=NM5ErMAEWf1FM0B3VhzwEI+GsnpB4zppgAcHAhn2qDU4LR1oGRn3yzW4sW3OwadwmX 1acwFYbLByGhDpGvM3ax6wuo1Ebg5/Hi4AjMuynmFVFc5Kf6QaGkLbczwDsmSSDtwxdv mc2pRSx9tP46l1eT108VC10u9pz/zYFAzv3DJDCc+1rs686sfuzhF1tgR62FtDCyMr9y PKyVHLCxZp3qJQxBstQfDC3eItjUA5EknfUA3ctXD7ZPgukAIjtV4D9sk1KHUfopkf5i RN5ion9Xl/bhGsa5ihIoxwlb3xfaD2gCNzjDHgEzqSddhJvsCE+UhcQHovYBceXW2o0A 4bsA== 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=IBi0bRmZ5R4dPX7uoN+GcH2MJB5SGGiFRt/IbhSt/SA=; b=lqPeQ4pmqb241YcQumn5x2kDptvIvO9FCrlPx08YE+sKSxo2wFka0vsvPzzlwGihJG /zFni6TsoszyZr3Q+VN9SyWDykrFbRkTOkL26xDOb8Z8X2QHqbzCivRrpc02lwnzp0IH m1CrcswjYcwq8Yqd0PeTw1TxGQQh1Co7mRC5lik+6Fg+l3Dmpb7KRLie4EmGDyUTzhOy 2nbN71+T7o6xUda6CwIv8vUOmaZ83q/5u/MIA0jz+/A1XnLuMcFYyKBPlbbSV/h5WiBm COd46s54gcPPFNu63i0nLDi4DjadY0Lqs711wkVK97PrxQNNqsc1068572MT+/DBsIyI /Udg== 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 dc14si910334ejb.209.2020.05.15.02.56.40; Fri, 15 May 2020 02:57:06 -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 S1728088AbgEOJzG (ORCPT + 99 others); Fri, 15 May 2020 05:55:06 -0400 Received: from mx2.suse.de ([195.135.220.15]:45156 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727927AbgEOJzG (ORCPT ); Fri, 15 May 2020 05:55:06 -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 306D9AD31; Fri, 15 May 2020 09:55:06 +0000 (UTC) Date: Fri, 15 May 2020 11:55:01 +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: <20200515095501.GU17734@linux-b0ei> References: <1587408228-10861-1-git-send-email-orson.unisoc@gmail.com> <20200420191014.GE121146@unreal> <20200422142552.GA492196@unreal> 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 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? 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 expect that Google will not release only the single binary. They should release also the sources and build configuration. Then developers might build their own versions with the needed debugging features enabled. Best Regards, Petr