Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp106299imw; Wed, 13 Jul 2022 20:20:06 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tYusnJUxen+tnZM79t5rMq0WeZuqlCGSidHS1NkAN2anvhQ+g63R0uSE+Ck+fM7YUjJvTI X-Received: by 2002:a05:6a00:150d:b0:52b:1ffb:503c with SMTP id q13-20020a056a00150d00b0052b1ffb503cmr339365pfu.44.1657768806255; Wed, 13 Jul 2022 20:20:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657768806; cv=none; d=google.com; s=arc-20160816; b=e3xNHPAcFt0VXzoEHNyZStfrECdpRRmbaTIHN7IGaOqqjQLdjtFc6VFPWVxzl2vYAD LkU2apmBOGLCYJKMIm7T9T1K+sV8B0Kd+mjv9pMYumYb3fudbbQeuKF2za0tyJJfWVDI +Lh0SwN2vJJ8EPIlmc2Hx40R2NbClxJJ1kvLIqrwrKZ+sRFKh7jL2FGDd3TZSX24bO4d fQ3NUDrmHxQbSSqKpoplkLp/FMU/HUOcOYa+mxyXAWqaR6zp1A155+r8aIqQ0jQ7RHQ2 KwVL6dREgPO4A0h+OSyLRaR1HvAyWcV64Rp5BSeL5mTyVS2XNs+gZSX1gWiFQ+SSs2nK D4IA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=hTaOZjFRBv6RFGDWDwKTtSDz/X3owyE8oY863q6+qW0=; b=iBMLhvKikpY6cqzQoHcD6QeNoBbJ6e4dwsWWp0sbMhF4/k4BwEjUdyfoxKRs0X7RcF UlteeliA84nHSlwklI/R2h9t3y8O37kZ5sbl3pqFjvY4NE9zU/lOCjw/VCeoMwkB/qad nJQ0wnhyrjR5WAplkvj+uF6CH8r0PEihDcBAxH6f9wenltGsrLsNRfpj4ZIKZq75zWaw mNh6b6I+o/XJhec74XSv9dn0jPgz2mYNeNwYQRZy8Y/Vn6tMgIncq5faWXdQ5JySoNCX FtGOk4VcBXXmOAuIslQZSPbEfR7LLirXaWyYBs/NfrROzUZWw+FSKotuAYGafvyIQf/P Y63g== 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 om3-20020a17090b3a8300b001ef7fb19b87si4996429pjb.187.2022.07.13.20.19.30; Wed, 13 Jul 2022 20:20:06 -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 S231552AbiGNC7O (ORCPT + 99 others); Wed, 13 Jul 2022 22:59:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231926AbiGNC7J (ORCPT ); Wed, 13 Jul 2022 22:59:09 -0400 Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E62EC19C03 for ; Wed, 13 Jul 2022 19:59:07 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R761e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=xianting.tian@linux.alibaba.com;NM=1;PH=DS;RN=13;SR=0;TI=SMTPD_---0VJH7R-e_1657767542; Received: from localhost(mailfrom:xianting.tian@linux.alibaba.com fp:SMTPD_---0VJH7R-e_1657767542) by smtp.aliyun-inc.com; Thu, 14 Jul 2022 10:59:03 +0800 From: Xianting Tian To: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, alexandre.ghiti@canonical.com, guoren@kernel.org, anup@brainfault.org, mick@ics.forth.gr, rppt@kernel.org, heiko@sntech.de Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, huanyi.xj@alibaba-inc.com, Xianting Tian Subject: [PATCH V2 0/2] Improve vmcoreinfo and memory layout dump Date: Thu, 14 Jul 2022 10:58:59 +0800 Message-Id: <20220714025901.359695-1-xianting.tian@linux.alibaba.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,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 This patch series are the improvements for vmcoreinfo and memory layout dump. The first patch(1/2) is to add VM layout to vmcoreinfo, which can simlify the development of crash tool as ARM64 already did (arch/arm64/kernel/crash_core.c). The second patch(2/2) is to add MODULES to memory layout dump. Changes v1 -> v2: patch 1: add VA_BITS to vmcoreinfo as ARM64 does, not satp_mode. crash tool can read VA_BITS to determin the pagetable levels. patch 1,2: As MODULES area is only defined when CONFIG_64BIT=y for riscv64, so only use MODULES area when CONFIG_64BIT=y. Xianting Tian (2): RISC-V: Add arch_crash_save_vmcoreinfo support riscv: Add modules to virtual kernel memory layout dump arch/riscv/kernel/Makefile | 1 + arch/riscv/kernel/crash_core.c | 28 ++++++++++++++++++++++++++++ arch/riscv/mm/init.c | 3 +++ 3 files changed, 32 insertions(+) create mode 100644 arch/riscv/kernel/crash_core.c -- 2.17.1