Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4529572ioa; Wed, 27 Apr 2022 05:56:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQi3R+Kxo91PGKBK/SgBtg+igXxFiyKwqW2fQtcpYpbcHy7iWxO3mloEbSqh1qYo+bzr9Y X-Received: by 2002:a17:90b:4c8f:b0:1d2:90e4:26ef with SMTP id my15-20020a17090b4c8f00b001d290e426efmr42832321pjb.120.1651064192087; Wed, 27 Apr 2022 05:56:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651064192; cv=none; d=google.com; s=arc-20160816; b=w0NutkZh9uAupUScQR4xolhOnataHhUfUCPZ3EQnCHEeNzxNMSuglbjj6zK1Q8QT+l QqZoRbLfk3dk9QNT1c3ohtHJRmV5odCY/VCnlSkGg0o9C/RKl1W24OMwuIOjAOGvdetw 26dqopa3RE8xwTe+Mc1Ty5y5JbIc6jZA4UBXHIje2ylXAT8Kq55KKdxhBZjACtdHdDpW Tujl6WxOQBBXSTeQn9DXzGe52mRPVGFyo4jHDg3ovq2DpisLhw50k22D1d74XBnjLbHg h3hAjXrVq67vgSAM9qglJ4IZ8y/L0+VwX4yDeIAvM0QLbHWjlf9nnfcKTIMNH2ojOEI8 XKXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=hGcMZHnjSns8JTuzYE9jTqed4AGG4r5oPIvvfDMdW4c=; b=twg1ZAyK5odrgDTBtDCXLKRnysMDBMKmEgQym0ZXq7287YVEgUOUUKDmDba4/DJtYM 9xvnWJGY1pyspO1LqQe1rQCknX7OIV3SRl8/SApJil9Z44Ex8pptnBnbZWVj+w0nBUXa nRKzfyvE39J8Q1UuutW2OhHIAMQlBCWKbXpUafzkG30dSuWWCVzVOtlVfC5Yeyk7e/oU UYemJEm5O/Mc9SZrbRwPcVLhz5VlWh48VqYG1Itb28U9jBX3xI3s1ndjMnm3pN31qyQ3 RSi5MSdAvRJKdh60QPgoP8Txutyx3DlpIE4jMV+kf/ZuEO8T1ihtJyhoXomJFVgibDAN SYDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ctLrqDJV; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id cr8-20020a056a000f0800b004f784a59a59si1456032pfb.0.2022.04.27.05.56.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 05:56:32 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ctLrqDJV; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2D1CF4BFCD; Wed, 27 Apr 2022 05:31:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234255AbiD0Me6 (ORCPT + 99 others); Wed, 27 Apr 2022 08:34:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234196AbiD0Me4 (ORCPT ); Wed, 27 Apr 2022 08:34:56 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3116A4BBBF for ; Wed, 27 Apr 2022 05:31:46 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id b12so1419001plg.4 for ; Wed, 27 Apr 2022 05:31:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hGcMZHnjSns8JTuzYE9jTqed4AGG4r5oPIvvfDMdW4c=; b=ctLrqDJVyjW8JBHbFLUPVekF8onbzNl/a4t84wK81WekIWLRCuh6Sw4R+qBreLXPnD UcNRk83XmMea5li6P0bAyVfq6VP5NOXBZjFqEUVVnCrDGPuHnWxV6PDUaOCy+5yPru+r Q6eD1QY+PNuHzH0iGGi5t1uzCeQajfU6siOQhYtgETdAiR6g9TyBqXXXncaeL4qZkc4J wUA09XqVZxR/pdatWBk9mGjeXXPf5/am9eadh+65hS6Fhln13LYtcy2WApnGZiDa5+P2 Fz4jeLYDuXobHESeJXnl1+1l8NliE6Q99MosI26xJBw8Xo1THTFZpAzPN6g5fVJfrBrQ qvWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hGcMZHnjSns8JTuzYE9jTqed4AGG4r5oPIvvfDMdW4c=; b=P8ii2Ig+vYK5KNtnjjeHTolkl0bva67SsRdMLwusCsKw/yLEafMjb8eyUn9S6+hoPi QXcZjuZtF7X7pWiwYT4DTQv0Qk4swjTX/HIPjfMlClYvS+r3m6D9ydWBxEopn7wrxK5E Sd450K+GJFEY7eGp0tGo5lSMcdUYfkeTY2CIrjqkqp1/OdgXC35b6ofEPp3o1fZN58o3 3pgYnVflqeL/KPuT+nRnwOqsyaSpI+O4yy36l5OBEIRbaWddZV6+LhCTpv3uIhB2+R/Q 3V35l1SZAh9OUoAwZwf+WRIBZ8SIRL4k8WYdTT4SLtUdexutY/mw0nL5vmHGsmzy+jPW TlFw== X-Gm-Message-State: AOAM533eayDQD2LXjJISAyhQlhTDD3ZPSWzVpDc7HsdBgC6Jo6SBuyM7 vLRrxJlJs/yHNd7uESB/HLQp3AuzHVaEm279p1I= X-Received: by 2002:a17:90b:4c84:b0:1d2:cadc:4e4d with SMTP id my4-20020a17090b4c8400b001d2cadc4e4dmr43321277pjb.8.1651062705339; Wed, 27 Apr 2022 05:31:45 -0700 (PDT) MIME-Version: 1.0 References: <20220413055305.1768223-1-maninder1.s@samsung.com> <747830777.1512786.1650256482294@mail-kr5-3> In-Reply-To: From: Vimal Agrawal Date: Wed, 27 Apr 2022 18:01:34 +0530 Message-ID: Subject: Re: [PATCH 1/1] kallsyms: add kallsyms_show_value definition in all cases To: Luis Chamberlain Cc: Maninder Singh , Petr Mladek , "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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no 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 Hi Maninder, in sprint_module_info(), we need to take care of mod->init_layout addresses as well. Please test the patch against init symbols. Vimal On Wed, Apr 20, 2022 at 8:51 PM Luis Chamberlain wrote: > > On Mon, Apr 18, 2022 at 10:04:42AM +0530, Maninder Singh wrote: > > > 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. > > Please resend that patch, as I'm happy to route it in through > modules-next [0]. I use modules-testing *prior* to pushing to > modules-next, if 0-day does not complain after about a few days > then I push to modules-next and this gets merged to linux-next. > > You can send that patch and then this one and include in the subject > something like: > > [PATCH modules-next 1/1] > > Vimal, I'd like your review of these patches too. And after those > we can see where your change fits / if it is still needed. > > [0] https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git/log/?h=modules-next > > Luis