Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp926443pxb; Thu, 21 Apr 2022 13:43:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwH6oZhl8XBhycMDBotzOar6JuFzJ8P1JqjA+zHSW3SVIubCFeKI5c18Donaiy5NOmFGG/I X-Received: by 2002:a17:902:aa88:b0:156:914b:dc79 with SMTP id d8-20020a170902aa8800b00156914bdc79mr1245184plr.138.1650573785811; Thu, 21 Apr 2022 13:43:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650573785; cv=none; d=google.com; s=arc-20160816; b=nZ5XppOJobK9B3+bLdX+vPNbpbrnsn6RwSyWYb+B0PMbElWExkHtOP41anyxN7nYrA v8W7Uj5IGvT394mxxMA8MMJwvII7KGDyjHXXQkycKXeozJ7osI0oaqigHlRl3J6B78Pq wRLgvOffoVGp42lNTm6schCnotaEFEZFzirIC/ok4SIZIAhiMi3mHsrDFk5xg+cJFTk6 lY/aY2ZHqZdo26rWebGN+SIl013MzWnQyhBbKEbTxk88LHoRcd540xhrit42Nq421E+m 3Q9G0Xy4HtJALRnF4WAIlfahbj3ia2KuJYxOfabaMtuLsXuIn77nXyPBdT0o93rBGmHM P3mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=eers+BWbGc+1iHyvVXcqWTntrGa8/fIk6MV3Gi4a3aA=; b=THtE5zJ/C4PS0XfU3FmIxGIF5ZiZE9wS2AoA84U9RXBTAO2CobS2VPp624/ZpVlymK UryRE7s2jr+Tyj6q2VUFBnAP6sJSzfN9bMaFXox75RCBe904Cyup8nWTAaTe4S9nxVWZ a6JNeQq+uFymRVH7l7NpYtBx8RgxU7w7MTyqWRK7GwQpegimyxZODavaaFJQhlShZ/L9 7hsIIE2P67WSdVykv272gccwovoO3IrkdHSzj6EbtfNKt8gcppwH/Mhp5nybECGboIeS NWNrUqu/zp0L+ZpZmIMT8M67Vxcz7pnRooctlzzHcUDMjeLzfOVwvicWwtl88ZWdSARb yDZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=V0bDgUE2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b1-20020a17090a800100b001bd14e01fcdsi8936075pjn.187.2022.04.21.13.42.15; Thu, 21 Apr 2022 13:43:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=V0bDgUE2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377810AbiDTLCz (ORCPT + 99 others); Wed, 20 Apr 2022 07:02:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351910AbiDTLCz (ORCPT ); Wed, 20 Apr 2022 07:02:55 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E37C1C91C for ; Wed, 20 Apr 2022 04:00:09 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id DC3E21F74E; Wed, 20 Apr 2022 11:00:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1650452407; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eers+BWbGc+1iHyvVXcqWTntrGa8/fIk6MV3Gi4a3aA=; b=V0bDgUE2UNQ92tNHVJmhOnooRsRtw1Exrf59ACs0jRyUznidnlHJyICFCqBzZXwPHmXSx0 fMkY62Ojyz1kNR2qRMbSXgsiCOJ0cpNDdOl5b4L1WONp1bdANxpzA53pRRGD/h+3HfO5HU ybDJs/10o9JYyJ0WLXl0qm8jWnmewKU= Received: from suse.cz (unknown [10.100.224.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 8A8EC2C141; Wed, 20 Apr 2022 11:00:07 +0000 (UTC) Date: Wed, 20 Apr 2022 13:00:03 +0200 From: Petr Mladek To: Maninder Singh , "mcgrof@kernel.org" Cc: "rostedt@goodmis.org" , "senozhatsky@chromium.org" , "andriy.shevchenko@linux.intel.com" , "akpm@linux-foundation.org" , "wangkefeng.wang@huawei.com" , "wedsonaf@google.com" , "boqun.feng@gmail.com" , "christophe.leroy@csgroup.eu" , "swboyd@chromium.org" , "ojeda@kernel.org" , "ast@kernel.org" , "gary@garyguo.net" , "mbenes@suse.cz" , "ndesaulniers@google.com" , "void@manifault.com" , "jolsa@kernel.org" , "linux-kernel@vger.kernel.org" , Vaneet Narang , Onkarnath Subject: Re: [PATCH 1/1] kallsyms: add kallsyms_show_value definition in all cases Message-ID: References: <20220413055305.1768223-1-maninder1.s@samsung.com> <747830777.1512786.1650256482294@mail-kr5-3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <747830777.1512786.1650256482294@mail-kr5-3> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 2022-04-18 10:04:42, Maninder Singh wrote: > > It is really weird that the function is declared in kallsyms.h > > and implemented in vsprintf.c. > > > > Yes it does not look good. > Initially we thought to make it as static inline function in kallsyms.h only. > But as function is little big and it will increase code size, so we added > definition in vsprintf.c, because its alwyas compilable code and also it has > some wrapper APIs for kallsyms. > > But as you suggested to make a new file, it will be good. > > > What about splitting kallsyms.c into two source files where one > > would be always compiled? It would be usable also for the > > spring function introduced by > > https://lore.kernel.org/r/20220323164742.2984281-1-maninder1.s@samsung.com > > > > It might be something like kallsyms_full.c and/or kallsyms_tiny.c. > > > > This patch is not taken by Luis yet in module-tetsing branch. > So what will be the best approach to make new version of this patch ? I am not sure about Luis' plans and if the patch applies on top of the current module.c split patchset (linux-next). > A) to make new file kallsyms_tiny.c and add only one definition in that file > and when above patch of spring functions is merged in next we can move definitions > to new file > > or > > B) we send patch to Luis's branch of module-testing with moving definition(of earlier patch) > to new file and current patch also. I wonder how many conflicts it might cause. The patchset splitting module.c actually does not touch kernel/kallsyms.c. Anyway, I would probably prepare it on top of linux-next. Best Regards, Petr