Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp607998imi; Fri, 22 Jul 2022 05:53:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s1/b7rCkw/ypyvLkaVR4Ay1SZfL1DKPw2In9x19UwsIxEX6OSNzlChLFtDYUzGT+GrL5G1 X-Received: by 2002:aa7:de85:0:b0:43a:d89f:1c7b with SMTP id j5-20020aa7de85000000b0043ad89f1c7bmr519641edv.17.1658494399396; Fri, 22 Jul 2022 05:53:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658494399; cv=none; d=google.com; s=arc-20160816; b=ER7V80CzwsWy7geRXrYkpyFbb+BNlROUN5rADCvDrTh/Y69mCeI0roPhnRjSj+J44b MBQht1BLyBZMWe4AMTOfBi5SRFIlQ28L7v6cMTzUFYyOWGOKfwcghYL66VvvIeX3s10N w1wMX2tI7BN/S13lICMlFW8/5LHiaTYP+Cz+SWsU2Cp6hMTwNkMFCuI8yPerjn33ll0g G546a/lv4VjBHaQ0Rfuh/Fl3QXvhprjGWAARNK1CasSDf1ZvyonAEQaOLeiCkwL9YQqU w4Al7+Mf1parVuYFnJsznRR6e4e/IsFSKBHeLls/WE5bbcVyzo3315JIHBVpqNLWs9NM XYzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=M8k3ZsGPeEQv/3jnfKfWE8agLU89kxSHQwoTsahXyfU=; b=rQjWzySIzg8pWRyUE/lQLQiNYs35riH/YRVWaTyr4+dQu+iw1e1ebmlWRQbw6imvyS hnQlbU3r1jt8fI/IAc874Keoaeh/23nzf/txK6Yx+ssil+GBYqE/a0ukCxIWP3CG5ODV XR1AM2KqleFB5jDLLy0TjOvTMBwOOXg63IH+qeG90pdu3SFEGpGMpGqKdf3418MSZSHx GoD0n4VpwzXb+ib6FOeiF8fM4afwk9NZRqxJZ4My5WEIsEbG5g6geH05pEJiv/WSBtJQ ER9pWgWG54Mld/rQ3uqgcVHiXIxL1UrMW/prngfwOWKM70VXNf/3kZsvJ+bqIlCblNGX m9qQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b15-20020a0564021f0f00b0043bd2a5278csi1571474edb.493.2022.07.22.05.52.50; Fri, 22 Jul 2022 05:53:19 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233979AbiGVMtg (ORCPT + 99 others); Fri, 22 Jul 2022 08:49:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229832AbiGVMtf (ORCPT ); Fri, 22 Jul 2022 08:49:35 -0400 Received: from out30-57.freemail.mail.aliyun.com (out30-57.freemail.mail.aliyun.com [115.124.30.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6168997D79 for ; Fri, 22 Jul 2022 05:49:34 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=xianting.tian@linux.alibaba.com;NM=1;PH=DS;RN=16;SR=0;TI=SMTPD_---0VK557-E_1658494167; Received: from B-LB6YLVDL-0141.local(mailfrom:xianting.tian@linux.alibaba.com fp:SMTPD_---0VK557-E_1658494167) by smtp.aliyun-inc.com; Fri, 22 Jul 2022 20:49:28 +0800 Subject: Re: [PATCH 4/5] riscv: Add modules to virtual kernel memory layout dump To: Andreas Schwab Cc: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, anup@brainfault.org, heiko@sntech.de, guoren@kernel.org, mick@ics.forth.gr, alexandre.ghiti@canonical.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, crash-utility@redhat.com, huanyi.xj@alibaba-inc.com, heinrich.schuchardt@canonical.com, k-hagio-ab@nec.com, hschauhan@nulltrace.org References: <20220717101323.370245-1-xianting.tian@linux.alibaba.com> <20220717101323.370245-5-xianting.tian@linux.alibaba.com> <87wnc5xxsj.fsf@igel.home> From: tianxianting Message-ID: Date: Fri, 22 Jul 2022 20:49:27 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <87wnc5xxsj.fsf@igel.home> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 在 2022/7/22 下午6:10, Andreas Schwab 写道: > On Jul 17 2022, Xianting Tian wrote: > >> diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c >> index d466ec670e1f..2c4a64e97aec 100644 >> --- a/arch/riscv/mm/init.c >> +++ b/arch/riscv/mm/init.c >> @@ -135,6 +135,10 @@ static void __init print_vm_layout(void) >> (unsigned long)VMEMMAP_END); >> print_ml("vmalloc", (unsigned long)VMALLOC_START, >> (unsigned long)VMALLOC_END); >> +#ifdef CONFIG_64BIT >> + print_ml("modules", (unsigned long)MODULES_VADDR, >> + (unsigned long)MODULES_END); > #ifdef MODULES_VADDR ? Maybe CONFIG_64BIT is better, it shows more infos(64bit defined, 32bit not). If use MODULES_VADD, people may doubt which conditions MODULES_VADD is not defined? >